Skip to content

Commit c923c95

Browse files
committed
updated eslint packages to fix #2078
1 parent 06a607f commit c923c95

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

.eslintrc

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,26 @@
99
"react/prop-types": 0,
1010
"react/no-find-dom-node": 0,
1111
"react/display-name": 0,
12-
"no-console": 0
12+
"no-console": 0,
13+
"no-prototype-builtins": 0
1314
},
1415
"env": {
1516
"node": true,
1617
"browser": true,
1718
"es6": true,
1819
"jasmine": true
1920
},
20-
"parser": "babel-eslint",
21+
"parser": "@babel/eslint-parser",
22+
"parserOptions": {
23+
"requireConfigFile": false
24+
},
2125
"plugins": [
22-
"react",
23-
"import"
26+
"react",
27+
"import"
2428
],
2529
"extends": [
2630
"eslint:recommended",
2731
"plugin:import/errors",
2832
"plugin:react/recommended"
2933
]
30-
}
34+
}

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@
3636
],
3737
"devDependencies": {
3838
"@babel/cli": "^7.0.0",
39-
"@babel/core": "^7.1.2",
39+
"@babel/core": "^7.16.0",
40+
"@babel/eslint-parser": "^7.16.3",
4041
"@babel/plugin-proposal-class-properties": "^7.1.0",
4142
"@babel/polyfill": "^7.0.0",
4243
"@babel/preset-env": "^7.1.0",
4344
"@babel/preset-react": "^7.0.0",
4445
"autoprefixer": "^7.1.2",
4546
"babel-core": "^7.0.0-bridge.0",
46-
"babel-eslint": "^9.0.0",
4747
"babel-jest": "^24.8.0",
4848
"babel-loader": "^8.0.4",
4949
"babel-preset-airbnb": "^2.1.1",
@@ -53,9 +53,9 @@
5353
"enzyme": "^3.2.0",
5454
"enzyme-adapter-react-16": "^1.1.0",
5555
"es5-shim": "^4.5.9",
56-
"eslint": "^5.9.0",
57-
"eslint-plugin-import": "^2.9.0",
58-
"eslint-plugin-react": "^6.3.0",
56+
"eslint": "^8.4.1",
57+
"eslint-plugin-import": "^2.25.3",
58+
"eslint-plugin-react": "^7.27.1",
5959
"express": "^4.14.0",
6060
"foundation-apps": "^1.2.0",
6161
"gulp": "^4.0.0",
@@ -65,13 +65,12 @@
6565
"jquery": "^3.2.1",
6666
"js-beautify": "^1.7.5",
6767
"json-loader": "^0.5.4",
68-
"lint-staged": "^7.0.3",
68+
"lint-staged": "^12.1.2",
6969
"opn": "^5.4.0",
7070
"postcss-loader": "^1.3.3",
7171
"prettier": "^1.14.3",
7272
"raf": "^3.4.0",
7373
"react": "^16.0.0",
74-
"react-addons-test-utils": "^15.6.2",
7574
"react-dom": "^16.0.0",
7675
"react-test-renderer": "^16.0.0",
7776
"sinon": "^2.1.0",

0 commit comments

Comments
 (0)