File tree Expand file tree Collapse file tree 9 files changed +54
-589
lines changed Expand file tree Collapse file tree 9 files changed +54
-589
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 7
7
8
8
'use strict' ;
9
9
10
+ require ( './patch' ) ;
11
+
10
12
// This file contains the minimum ESLint configuration required for Create
11
13
// React App support, and is used as the `baseConfig` for `eslint-loader`
12
14
// to ensure that user-provided configs don't need this boilerplate.
Original file line number Diff line number Diff line change 7
7
8
8
'use strict' ;
9
9
10
+ require ( './patch' ) ;
11
+
10
12
// Inspired by https://github.com/airbnb/javascript but less opinionated.
11
13
12
14
// We use eslint-loader so even warnings are very visible.
Original file line number Diff line number Diff line change 7
7
8
8
'use strict' ;
9
9
10
+ require ( './patch' ) ;
11
+
10
12
// We use eslint-loader so even warnings are very visible.
11
13
// This is why we prefer to use "WARNING" level for potential errors,
12
14
// and we try not to use "ERROR" level at all.
Original file line number Diff line number Diff line change 14
14
"files" : [
15
15
" base.js" ,
16
16
" index.js" ,
17
- " jest.js"
17
+ " jest.js" ,
18
+ " patch.js"
18
19
],
19
- "devDependencies" : {
20
- "@babel/eslint-parser" : " ^7.14.7"
21
- },
22
20
"peerDependencies" : {
21
+ "eslint" : " ^7.30.0"
22
+ },
23
+ "dependencies" : {
24
+ "@babel/core" : " 7.14.2" ,
23
25
"@babel/eslint-parser" : " ^7.14.7" ,
26
+ "@rushstack/eslint-patch" : " ^1.0.6" ,
24
27
"@typescript-eslint/eslint-plugin" : " ^4.0.0" ,
25
28
"@typescript-eslint/parser" : " ^4.0.0" ,
26
29
"babel-preset-react-app" : " ^10.0.0" ,
27
- "eslint " : " ^7.30.0 " ,
30
+ "confusing-browser-globals " : " ^1.0.10 " ,
28
31
"eslint-plugin-flowtype" : " ^5.2.0" ,
29
32
"eslint-plugin-import" : " ^2.22.0" ,
30
33
"eslint-plugin-jest" : " ^24.0.0" ,
33
36
"eslint-plugin-react-hooks" : " ^4.0.8" ,
34
37
"eslint-plugin-testing-library" : " ^3.9.0"
35
38
},
36
- "peerDependenciesMeta" : {
37
- "eslint-plugin-jest" : {
38
- "optional" : true
39
- },
40
- "eslint-plugin-testing-library" : {
41
- "optional" : true
42
- }
43
- },
44
- "dependencies" : {
45
- "confusing-browser-globals" : " ^1.0.10"
46
- },
47
39
"engines" : {
48
- "node" : " ^10.12.0 || >=12 .0.0"
40
+ "node" : " >=14 .0.0"
49
41
}
50
42
}
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Copyright (c) 2015-present, Facebook, Inc.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ 'use strict' ;
9
+
10
+ // Fix eslint shareable config (https://github.com/eslint/eslint/issues/3458)
11
+ require ( '@rushstack/eslint-patch/modern-module-resolution' ) ;
Original file line number Diff line number Diff line change 36
36
"devDependencies" : {
37
37
"@babel/code-frame" : " 7.12.13" ,
38
38
"@babel/core" : " 7.14.2" ,
39
- "@babel/eslint-parser" : " ^7.14.7" ,
40
39
"anser" : " 1.4.10" ,
41
40
"babel-jest" : " ^26.6.0" ,
42
41
"babel-loader" : " 8.2.2" ,
46
45
"cross-env" : " 7.0.3" ,
47
46
"eslint" : " ^7.30.0" ,
48
47
"eslint-config-react-app" : " ^6.0.0" ,
49
- "eslint-plugin-flowtype" : " ^5.2.0" ,
50
- "eslint-plugin-import" : " ^2.22.1" ,
51
- "eslint-plugin-jest" : " ^24.1.0" ,
52
- "eslint-plugin-jsx-a11y" : " ^6.3.1" ,
53
- "eslint-plugin-react" : " ^7.21.5" ,
54
- "eslint-plugin-react-hooks" : " ^4.2.0" ,
55
- "eslint-plugin-testing-library" : " ^3.9.2" ,
56
48
"flow-bin" : " ^0.116.0" ,
57
49
"html-entities" : " 1.3.1" ,
58
50
"jest" : " 26.6.0" ,
Original file line number Diff line number Diff line change 29
29
"types" : " ./lib/react-app.d.ts" ,
30
30
"dependencies" : {
31
31
"@babel/core" : " 7.14.2" ,
32
- "@babel/eslint-parser" : " ^7.14.7" ,
33
32
"@pmmmwh/react-refresh-webpack-plugin" : " 0.5.0-rc.0" ,
34
33
"@svgr/webpack" : " 5.5.0" ,
35
- "@typescript-eslint/eslint-plugin" : " ^4.5.0" ,
36
- "@typescript-eslint/parser" : " ^4.5.0" ,
37
34
"babel-jest" : " ^26.6.0" ,
38
35
"babel-loader" : " 8.2.2" ,
39
36
"babel-plugin-named-asset-import" : " ^0.3.7" ,
48
45
"dotenv-expand" : " 5.1.0" ,
49
46
"eslint" : " ^7.30.0" ,
50
47
"eslint-config-react-app" : " ^6.0.0" ,
51
- "eslint-plugin-flowtype" : " ^5.2.0" ,
52
- "eslint-plugin-import" : " ^2.22.1" ,
53
- "eslint-plugin-jest" : " ^24.1.0" ,
54
- "eslint-plugin-jsx-a11y" : " ^6.3.1" ,
55
- "eslint-plugin-react" : " ^7.21.5" ,
56
- "eslint-plugin-react-hooks" : " ^4.2.0" ,
57
- "eslint-plugin-testing-library" : " ^3.9.2" ,
58
48
"eslint-webpack-plugin" : " ^2.5.4" ,
59
49
"file-loader" : " ^6.2.0" ,
60
50
"fs-extra" : " ^10.0.0" ,
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ function verifyPackageTree() {
23
23
// These are packages most likely to break in practice.
24
24
// See https://github.com/facebook/create-react-app/issues/1795 for reasons why.
25
25
// I have not included Babel here because plugins typically don't import Babel (so it's not affected).
26
- '@babel/eslint-parser' ,
27
26
'babel-jest' ,
28
27
'babel-loader' ,
29
28
'jest' ,
You can’t perform that action at this time.
0 commit comments