|
1 | 1 | module.exports = { |
2 | | - 'parser': 'babel-eslint', |
3 | | - 'parserOptions': { |
4 | | - 'ecmaVersion': 6, |
5 | | - 'ecmaFeatures': { |
6 | | - 'jsx': true, |
7 | | - 'experimentalObjectRestSpread': true |
8 | | - } |
| 2 | + parser: "babel-eslint", |
| 3 | + parserOptions: { |
| 4 | + ecmaVersion: 6, |
| 5 | + ecmaFeatures: { |
| 6 | + jsx: true, |
| 7 | + experimentalObjectRestSpread: true, |
9 | 8 | }, |
10 | | - plugins: ['ghost', 'react'], |
11 | | - extends: [ |
12 | | - 'plugin:ghost/node', |
13 | | - 'plugin:ghost/ember', |
14 | | - 'plugin:react/recommended' |
15 | | - ], |
16 | | - "settings": { |
17 | | - "react": { |
18 | | - "createClass": "createReactClass", |
19 | | - "pragma": "React", |
20 | | - "version": "16.0", |
21 | | - "flowVersion": "0.53" |
22 | | - }, |
23 | | - "propWrapperFunctions": ["forbidExtraProps"] |
| 9 | + }, |
| 10 | + plugins: ["ghost", "react"], |
| 11 | + extends: [ |
| 12 | + "plugin:ghost/node", |
| 13 | + "plugin:ghost/ember", |
| 14 | + "plugin:react/recommended", |
| 15 | + "prettier", |
| 16 | + ], |
| 17 | + settings: { |
| 18 | + react: { |
| 19 | + createClass: "createReactClass", |
| 20 | + pragma: "React", |
| 21 | + version: "16.0", |
| 22 | + flowVersion: "0.53", |
24 | 23 | }, |
25 | | - "rules": { |
26 | | - "ghost/sort-imports-es6-autofix/sort-imports-es6": "off", |
27 | | - "ghost/ember/use-ember-get-and-set": "off", |
28 | | - "no-console": "off", |
29 | | - "no-inner-declarations": "off", |
30 | | - "valid-jsdoc": "off", |
31 | | - "require-jsdoc": "off", |
32 | | - "quotes": ["error", "backtick"], |
33 | | - "consistent-return": ["error"], |
34 | | - "arrow-body-style": [ |
35 | | - "error", |
36 | | - "as-needed", |
37 | | - { "requireReturnForObjectLiteral": true } |
38 | | - ], |
39 | | - "jsx-quotes": ["error", "prefer-double"], |
40 | | - "semi": ["error", "never"], |
41 | | - "object-curly-spacing": ["error", "always"], |
42 | | - "comma-dangle": [ |
43 | | - "error", |
44 | | - { |
45 | | - "arrays": "always-multiline", |
46 | | - "objects": "always-multiline", |
47 | | - "imports": "always-multiline", |
48 | | - "exports": "always-multiline", |
49 | | - "functions": "ignore" |
50 | | - } |
51 | | - ], |
52 | | - "react/prop-types": [ |
53 | | - "error", |
54 | | - { |
55 | | - "ignore": ["children"] |
56 | | - } |
57 | | - ] |
58 | | - } |
| 24 | + propWrapperFunctions: ["forbidExtraProps"], |
| 25 | + }, |
| 26 | + rules: { |
| 27 | + "ghost/sort-imports-es6-autofix/sort-imports-es6": "off", |
| 28 | + "ghost/ember/use-ember-get-and-set": "off", |
| 29 | + "no-console": "off", |
| 30 | + "no-inner-declarations": "off", |
| 31 | + "valid-jsdoc": "off", |
| 32 | + "require-jsdoc": "off", |
| 33 | + quotes: ["error", "backtick"], |
| 34 | + "consistent-return": ["error"], |
| 35 | + "arrow-body-style": [ |
| 36 | + "error", |
| 37 | + "as-needed", |
| 38 | + { requireReturnForObjectLiteral: true }, |
| 39 | + ], |
| 40 | + "jsx-quotes": ["error", "prefer-double"], |
| 41 | + semi: ["error", "never"], |
| 42 | + "object-curly-spacing": ["error", "always"], |
| 43 | + "comma-dangle": [ |
| 44 | + "error", |
| 45 | + { |
| 46 | + arrays: "always-multiline", |
| 47 | + objects: "always-multiline", |
| 48 | + imports: "always-multiline", |
| 49 | + exports: "always-multiline", |
| 50 | + functions: "ignore", |
| 51 | + }, |
| 52 | + ], |
| 53 | + "react/prop-types": [ |
| 54 | + "error", |
| 55 | + { |
| 56 | + ignore: ["children"], |
| 57 | + }, |
| 58 | + ], |
| 59 | + }, |
59 | 60 | }; |
0 commit comments