| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,9 +8,13 @@ | |||
| 8 | 8 | ["universal-import", { | |
| 9 | 9 | "babelServer": true | |
| 10 | 10 | }], | |
| 11 | + ["css-modules-transform", { | ||
| 12 | + "generateScopedName": "[name]-[local]-[hash:base64:5]" | ||
| 13 | + }], | ||
| 11 | 14 | "transform-runtime", | |
| 12 | 15 | "transform-decorators-legacy", | |
| 13 | 16 | "babel-plugin-transform-class-properties" | |
| 14 | 17 | ], | |
| 18 | + "comments": false, | ||
| 15 | 19 | "sourceMaps": true | |
| 16 | 20 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,34 @@ | |||
| 1 | + { | ||
| 2 | + "parser": "babel-eslint", | ||
| 3 | + "plugins": [ | ||
| 4 | + "react" | ||
| 5 | + ], | ||
| 6 | + "extends": [ | ||
| 7 | + "eslint:recommended" | ||
| 8 | + ], | ||
| 9 | + "env": { | ||
| 10 | + "browser": true, | ||
| 11 | + "commonjs": true, | ||
| 12 | + "es6": true, | ||
| 13 | + "node": true | ||
| 14 | + }, | ||
| 15 | + "parserOptions": { | ||
| 16 | + "ecmaFeatures": { | ||
| 17 | + "jsx": true | ||
| 18 | + }, | ||
| 19 | + "sourceType": "module" | ||
| 20 | + }, | ||
| 21 | + "rules": { | ||
| 22 | + "no-const-assign": "warn", | ||
| 23 | + "no-this-before-super": "warn", | ||
| 24 | + "no-undef": "warn", | ||
| 25 | + "no-unreachable": "warn", | ||
| 26 | + "no-unused-vars": "warn", | ||
| 27 | + "constructor-super": "warn", | ||
| 28 | + "valid-typeof": "warn", | ||
| 29 | + "strict": 0, | ||
| 30 | + "react/jsx-uses-react": "error", | ||
| 31 | + "react/jsx-uses-vars": "error", | ||
| 32 | + "react/prop-types": [1] | ||
| 33 | + } | ||
| 34 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,16 +14,11 @@ | |||
| 14 | 14 | { | |
| 15 | 15 | "type": "node", | |
| 16 | 16 | "request": "launch", | |
| 17 | - "name": "nodemon & babel", | ||
| 18 | - "runtimeExecutable": "nodemon", | ||
| 19 | - "program": "${workspaceFolder}/server/app.js", | ||
| 20 | - "args": [ | ||
| 21 | - "--exec", | ||
| 22 | - "babel-node" | ||
| 23 | - ], | ||
| 24 | - "restart": true, | ||
| 25 | - "console": "integratedTerminal", | ||
| 26 | - "internalConsoleOptions": "neverOpen" | ||
| 17 | + "name": "Launch production", | ||
| 18 | + "program": "${workspaceFolder}/dist/server/server.js", | ||
| 19 | + "env": { | ||
| 20 | + "NODE_ENV": "production", | ||
| 21 | + } | ||
| 27 | 22 | }, | |
| 28 | 23 | ] | |
| 29 | 24 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,7 +30,7 @@ https://medium.com/airbnb-engineering/server-rendering-code-splitting-and-lazy-l | |||
| 30 | 30 | ||
| 31 | 31 | Then use *Visual studio code* to debug isomorphic react. | |
| 32 | 32 | ||
| 33 | -  | ||
| 33 | +  | ||
| 34 | 34 | ||
| 35 | 35 | ## Expectation | |
| 36 | 36 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments