|
1 | 1 | const { peerDependencies } = require('./package.json');
|
2 | 2 |
|
3 | 3 | module.exports = {
|
4 |
| - root: true, |
5 |
| - parser: 'babel-eslint', |
6 |
| - |
7 |
| - parserOptions: { |
8 |
| - ecmaVersion: 2019, |
9 |
| - ecmaFeatures: { |
10 |
| - impliedStrict: true |
11 |
| - }, |
12 |
| - }, |
13 |
| - |
14 |
| - plugins: [ |
15 |
| - 'prefer-arrow', |
16 |
| - ], |
17 |
| - |
18 |
| - env: { |
19 |
| - node: true, |
20 |
| - es6: true, |
21 |
| - browser: true, |
22 |
| - }, |
23 |
| - |
24 |
| - settings: { |
25 |
| - react: { |
26 |
| - version: 'detect', |
27 |
| - }, |
28 |
| - }, |
29 | 4 |
|
30 | 5 | extends: [
|
31 |
| - 'eslint:recommended', |
32 |
| - 'plugin:react/recommended', |
33 |
| - 'airbnb-base', |
| 6 | + '@edwmurph/eslint-config', |
| 7 | + '@edwmurph/eslint-config/react', |
34 | 8 | ],
|
35 | 9 |
|
36 | 10 | rules: {
|
37 |
| - 'import/no-unresolved': ["error", { ignore: Object.keys(peerDependencies) }], |
38 |
| - 'react/prop-types': [0], |
39 |
| - 'no-console': [0], |
40 |
| - 'class-methods-use-this': [0], |
41 |
| - 'object-curly-spacing': ['error', 'always'], |
42 |
| - 'no-trailing-spaces': ['error'], |
43 |
| - 'no-irregular-whitespace': ['error'], |
44 |
| - 'no-await-in-loop': ['off'], |
45 |
| - 'object-curly-newline': [0], |
46 |
| - semi: [ 'error', 'always' ], |
47 |
| - indent: ['error', 2], |
48 |
| - 'prefer-arrow/prefer-arrow-functions': [ |
49 |
| - 'error', |
50 |
| - { |
51 |
| - disallowPrototype: true, |
52 |
| - singleReturnOnly: false, |
53 |
| - classPropertiesAllowed: false, |
54 |
| - } |
55 |
| - ] |
| 11 | + 'import/no-unresolved': ['error', { ignore: Object.keys(peerDependencies) }], |
56 | 12 | },
|
57 | 13 | };
|
0 commit comments