|
9 | 9 | module.exports = {
|
10 | 10 | extends: [
|
11 | 11 | './packages/eslint-config-fb-strict/index.js',
|
12 |
| - 'plugin:import/errors' |
| 12 | + 'plugin:import/errors', |
13 | 13 | ],
|
14 |
| - parser: 'babel-eslint', |
15 |
| - rules: { |
16 |
| - 'computed-property-spacing': 0, |
17 |
| - 'flowtype/boolean-style': 2, |
18 |
| - 'flowtype/no-primitive-constructor-types': 2, |
19 |
| - 'flowtype/require-valid-file-annotation': 2, |
20 |
| - 'max-len': 0, |
21 |
| - 'no-multiple-empty-lines': 1, |
22 |
| - 'import/no-duplicates': 2, |
23 |
| - 'import/no-unresolved': [2, {ignore: ['^types/']}], |
24 |
| - // This has to be disabled until all type and module imports are combined |
25 |
| - // https://github.com/benmosher/eslint-plugin-import/issues/645 |
26 |
| - 'import/order': 0, |
27 |
| - // These has to be disabled until the whole code base is converted to ESM |
28 |
| - 'import/default': 0, |
29 |
| - 'import/named': 0, |
30 |
| - 'unicorn/filename-case': [2, {case: 'snakeCase'}] |
31 |
| - }, |
32 |
| - plugins: ['markdown', 'import', 'unicorn'], |
33 | 14 | overrides: [
|
34 | 15 | // to make it more suitable for running on code examples in docs/ folder
|
35 | 16 | {
|
36 | 17 | files: ['*.md'],
|
37 | 18 | rules: {
|
38 |
| - 'react/react-in-jsx-scope': 0, |
39 |
| - 'react/jsx-no-undef': 0, |
| 19 | + 'consistent-return': 0, |
| 20 | + 'import/no-unresolved': 0, |
40 | 21 | 'jest/no-focused-tests': 0,
|
41 |
| - 'jest/valid-expect': 0, |
42 | 22 | 'jest/no-identical-title': 0,
|
| 23 | + 'jest/valid-expect': 0, |
43 | 24 | 'no-undef': 0,
|
44 | 25 | 'no-unused-vars': 0,
|
45 |
| - 'consistent-return': 0, |
46 |
| - 'import/no-unresolved': 0, |
| 26 | + 'react/jsx-no-undef': 0, |
| 27 | + 'react/react-in-jsx-scope': 0, |
47 | 28 | 'sort-keys': 0,
|
48 |
| - 'unicorn/filename-case': 0 |
49 |
| - } |
| 29 | + 'unicorn/filename-case': 0, |
| 30 | + }, |
50 | 31 | },
|
51 | 32 | {
|
52 | 33 | files: ['examples/**/*'],
|
53 | 34 | rules: {
|
54 | 35 | 'babel/func-params-comma-dangle': 0,
|
55 |
| - 'import/order': 0, |
56 | 36 | 'import/no-unresolved': [2, {ignore: ['^react-native$']}],
|
57 |
| - 'unicorn/filename-case': 0 |
58 |
| - } |
| 37 | + 'import/order': 0, |
| 38 | + 'unicorn/filename-case': 0, |
| 39 | + }, |
59 | 40 | },
|
60 | 41 | {
|
61 | 42 | files: ['scripts/**/*', 'integration_tests/**/*'],
|
62 | 43 | rules: {
|
63 | 44 | 'babel/func-params-comma-dangle': 0,
|
64 |
| - 'unicorn/filename-case': 0 |
65 |
| - } |
| 45 | + 'unicorn/filename-case': 0, |
| 46 | + }, |
66 | 47 | },
|
67 | 48 | {
|
68 |
| - files: ['**/__mocks__/**/*', 'website/**/*', '**/jest-runtime/**/*', '**/src/Console*'], |
| 49 | + files: [ |
| 50 | + '**/__mocks__/**/*', |
| 51 | + 'website/**/*', |
| 52 | + '**/jest-runtime/**/*', |
| 53 | + '**/src/Console*', |
| 54 | + ], |
69 | 55 | rules: {
|
70 |
| - 'unicorn/filename-case': 0 |
71 |
| - } |
72 |
| - } |
73 |
| - ] |
| 56 | + 'unicorn/filename-case': 0, |
| 57 | + }, |
| 58 | + }, |
| 59 | + ], |
| 60 | + parser: 'babel-eslint', |
| 61 | + plugins: ['markdown', 'import', 'unicorn'], |
| 62 | + rules: { |
| 63 | + 'computed-property-spacing': 0, |
| 64 | + 'flowtype/boolean-style': 2, |
| 65 | + 'flowtype/no-primitive-constructor-types': 2, |
| 66 | + 'flowtype/require-valid-file-annotation': 2, |
| 67 | + 'import/default': 0, |
| 68 | + 'import/named': 0, |
| 69 | + 'import/no-duplicates': 2, |
| 70 | + 'import/no-unresolved': [2, {ignore: ['^types/']}], |
| 71 | + // This has to be disabled until all type and module imports are combined |
| 72 | + // https://github.com/benmosher/eslint-plugin-import/issues/645 |
| 73 | + 'import/order': 0, |
| 74 | + // These has to be disabled until the whole code base is converted to ESM |
| 75 | + 'max-len': 0, |
| 76 | + 'no-multiple-empty-lines': 1, |
| 77 | + 'unicorn/filename-case': [2, {case: 'snakeCase'}], |
| 78 | + }, |
74 | 79 | };
|
0 commit comments