eslint-config-react-app-new 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.js +32 -26
- package/jest.js +0 -1
- package/package.json +1 -1
package/base.js
CHANGED
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
'use strict';
|
|
9
|
-
|
|
10
8
|
// Fix eslint shareable config (https://github.com/eslint/eslint/issues/3458)
|
|
11
9
|
require('@rushstack/eslint-patch/modern-module-resolution');
|
|
12
10
|
|
|
@@ -15,36 +13,44 @@ require('@rushstack/eslint-patch/modern-module-resolution');
|
|
|
15
13
|
// to ensure that user-provided configs don't need this boilerplate.
|
|
16
14
|
|
|
17
15
|
module.exports = {
|
|
18
|
-
|
|
16
|
+
root: true,
|
|
19
17
|
|
|
20
|
-
|
|
18
|
+
parser: '@babel/eslint-parser',
|
|
21
19
|
|
|
22
|
-
|
|
20
|
+
plugins: ['react'],
|
|
23
21
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
env: {
|
|
23
|
+
browser: true,
|
|
24
|
+
commonjs: true,
|
|
25
|
+
es6: true,
|
|
26
|
+
jest: true,
|
|
27
|
+
node: true
|
|
28
|
+
},
|
|
31
29
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
parserOptions: {
|
|
31
|
+
sourceType: 'module',
|
|
32
|
+
requireConfigFile: false,
|
|
33
|
+
babelOptions: {
|
|
34
|
+
presets: [require.resolve('babel-preset-react-app-new/prod')],
|
|
35
|
+
plugins: [
|
|
36
|
+
[
|
|
37
|
+
'@babel/plugin-proposal-decorators',
|
|
38
|
+
{
|
|
39
|
+
legacy: true
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
]
|
|
43
|
+
}
|
|
37
44
|
},
|
|
38
|
-
},
|
|
39
45
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
46
|
+
settings: {
|
|
47
|
+
react: {
|
|
48
|
+
version: 'detect'
|
|
49
|
+
}
|
|
43
50
|
},
|
|
44
|
-
},
|
|
45
51
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
52
|
+
rules: {
|
|
53
|
+
'react/jsx-uses-vars': 'warn',
|
|
54
|
+
'react/jsx-uses-react': 'warn'
|
|
55
|
+
}
|
|
50
56
|
};
|
package/jest.js
CHANGED
|
@@ -29,7 +29,6 @@ module.exports = {
|
|
|
29
29
|
'jest/no-identical-title': 'error',
|
|
30
30
|
'jest/no-interpolation-in-snapshots': 'error',
|
|
31
31
|
'jest/no-jasmine-globals': 'error',
|
|
32
|
-
'jest/no-jest-import': 'error',
|
|
33
32
|
'jest/no-mocks-import': 'error',
|
|
34
33
|
'jest/valid-describe-callback': 'error',
|
|
35
34
|
'jest/valid-expect': 'error',
|