|
3 | 3 | // ║╣ ╚═╗║ ║║║║ ║ ├┬┘│
|
4 | 4 | // o╚═╝╚═╝╩═╝╩╝╚╝ ╩ ┴└─└─┘
|
5 | 5 | // A set of basic code conventions designed to encourage quality and consistency
|
6 |
| - // across your Sails app's code base. These rules are checked against |
| 6 | + // across your app's code base. These rules are checked against |
7 | 7 | // automatically any time you run `npm test`.
|
8 | 8 | //
|
9 | 9 | // > An additional eslintrc override file is included in the `assets/` folder
|
10 | 10 | // > right out of the box. This is specifically to allow for variations in acceptable
|
11 | 11 | // > global variables between front-end JavaScript code designed to run in the browser
|
12 | 12 | // > vs. backend code designed to run in a Node.js/Sails process.
|
13 | 13 | //
|
14 |
| - // > Note: If you're using mocha, you'll want to add an extra override file to your |
15 |
| - // > `test/` folder so that eslint will tolerate mocha-specific globals like `before` |
16 |
| - // > and `describe`. |
17 |
| - // Designed for ESLint v4. |
18 | 14 | // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
19 | 15 | // For more information about any of the rules below, check out the relevant
|
20 | 16 | // reference page on eslint.org. For example, to get details on "no-sequences",
|
21 |
| - // you would visit `http://eslint.org/docs/rules/no-sequences`. If you're unsure |
22 |
| - // or could use some advice, come by https://sailsjs.com/support. |
| 17 | + // you would visit `http://eslint.org/docs/rules/no-sequences`. |
23 | 18 | // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
24 | 19 |
|
25 | 20 | "settings": {
|
|
195 | 190 | "allowTemplateLiterals": true
|
196 | 191 | }
|
197 | 192 | ],
|
198 |
| - "react/static-property-placement": "off", |
199 |
| - "react/jsx-one-expression-per-line": "off", |
200 | 193 | "react/destructuring-assignment": "off",
|
201 |
| - "react/jsx-no-literals": "off", |
| 194 | + "react/forbid-component-props": "off", |
| 195 | + "react/forbid-prop-types": "off", |
| 196 | + "react/jsx-handler-names": "off", |
| 197 | + "react/jsx-indent-props": "off", |
| 198 | + "react/jsx-max-depth": "off", |
202 | 199 | "react/jsx-max-props-per-line": "off",
|
| 200 | + "react/jsx-no-bind": "off", |
| 201 | + "react/jsx-no-literals": "off", |
| 202 | + "react/jsx-one-expression-per-line": "off", |
203 | 203 | "react/jsx-sort-props": "off",
|
204 |
| - "react/jsx-max-depth": "off", |
| 204 | + "react/no-multi-comp": "off", |
205 | 205 | "react/no-unescaped-entities": "off",
|
206 |
| - "react/jsx-indent-props": "off", |
207 | 206 | "react/no-set-state": "off",
|
| 207 | + "react/static-property-placement": "off", |
| 208 | + "react/react-in-jsx-scope": "off", |
208 | 209 | "react/require-optimization": "off",
|
209 |
| - "no-irregular-whitespace": "off", |
210 |
| - "react/forbid-component-props": "off", |
211 |
| - "react/jsx-no-bind": "off", |
212 |
| - "react/forbid-prop-types": "off", |
213 |
| - "react/no-multi-comp": "off", |
214 |
| - "react/jsx-handler-names": "off", |
215 | 210 | "no-inner-declarations": "off",
|
| 211 | + "no-irregular-whitespace": "off", |
216 | 212 | "semi": [
|
217 | 213 | "warn",
|
218 | 214 | "always"
|
|
0 commit comments