File tree Expand file tree Collapse file tree 4 files changed +2286
-6233
lines changed
packages/eslint-config-react Expand file tree Collapse file tree 4 files changed +2286
-6233
lines changed Original file line number Diff line number Diff line change 11{
22 "root": true,
3- "parser": "@babel/eslint-parser",
43 "env": {
54 "browser": true,
65 "jest": true
76 },
8- "extends": "./packages/eslint-config-react/index.js",
97 "rules": {
108 "import/no-extraneous-dependencies": [
119 "error",
1513 ]
1614 },
1715 "overrides": [
16+ {
17+ "parser": "@babel/eslint-parser",
18+ "files": ["*.js", "*.mjs"],
19+ "extends": "./packages/eslint-config-react/index.js"
20+ },
1821 {
1922 "files": ["*.ts", "*.tsx"],
2023 "parserOptions": {
Original file line number Diff line number Diff line change 2222 "eslint-config-airbnb" : " 19.0.4" ,
2323 "eslint-config-airbnb-typescript" : " 17.0.0" ,
2424 "eslint-config-prettier" : " 8.5.0" ,
25+ "eslint-plugin-deprecation" : " ^1.3.2" ,
2526 "eslint-plugin-eslint-comments" : " 3.2.0" ,
2627 "eslint-plugin-import" : " 2.26.0" ,
2728 "eslint-plugin-jsx-a11y" : " 6.6.1" ,
Original file line number Diff line number Diff line change @@ -6,8 +6,9 @@ module.exports = {
66 'plugin:@typescript-eslint/recommended-requiring-type-checking' ,
77 require . resolve ( './shared' ) ,
88 ] ,
9- plugins : [ '@typescript-eslint' ] ,
9+ plugins : [ 'deprecation' , ' @typescript-eslint'] ,
1010 rules : {
11+ 'deprecation/deprecation' : 'warn' ,
1112 // https://github.com/typescript-eslint/typescript-eslint/issues/4619
1213 '@typescript-eslint/no-misused-promises' : [
1314 'error' ,
You can’t perform that action at this time.
0 commit comments