Skip to content

Commit be7ad0c

Browse files
chore: simplify ESLint config (#266)
1 parent 90ac4b4 commit be7ad0c

File tree

3 files changed

+372
-485
lines changed

3 files changed

+372
-485
lines changed

.eslintrc

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,13 @@
11
{
2-
"env": {
3-
"browser": true,
4-
"es6": true
5-
},
6-
"parserOptions": {
7-
"ecmaFeatures": {
8-
"jsx": true
9-
},
10-
"ecmaVersion": 2019,
11-
"sourceType": "module"
12-
},
13-
"globals": {
14-
"Atomics": "readonly",
15-
"SharedArrayBuffer": "readonly"
16-
},
17-
"plugins": ["import", "jsx-a11y", "react", "react-hooks", "prettier"],
18-
"extends": ["airbnb", "prettier", "next", "next/core-web-vitals"],
2+
"plugins": ["prettier"],
3+
"extends": ["next", "next/core-web-vitals", "prettier"],
194
"rules": {
205
"prettier/prettier": "error",
216
"camelcase": "off",
227
"import/prefer-default-export": "off",
23-
"react/prop-types": "off",
248
"react/jsx-filename-extension": "off",
259
"react/jsx-props-no-spreading": "off",
2610
"react/no-unused-prop-types": "off",
27-
"react/react-in-jsx-scope": "off",
2811
"react/require-default-props": "off",
2912
"import/extensions": [
3013
"error",
@@ -68,15 +51,5 @@
6851
]
6952
}
7053
}
71-
],
72-
"settings": {
73-
"import/resolver": {
74-
"typescript": {
75-
"project": "."
76-
}
77-
},
78-
"react": {
79-
"version": "detect"
80-
}
81-
}
54+
]
8255
}

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,10 @@
4242
"commitizen": "4.2.4",
4343
"cz-conventional-changelog": "3.3.0",
4444
"eslint": "7.32.0",
45-
"eslint-config-airbnb": "18.2.1",
4645
"eslint-config-next": "11.1.2",
4746
"eslint-config-prettier": "8.3.0",
4847
"eslint-import-resolver-typescript": "2.5.0",
49-
"eslint-plugin-import": "2.23.4",
50-
"eslint-plugin-jsx-a11y": "6.4.1",
5148
"eslint-plugin-prettier": "4.0.0",
52-
"eslint-plugin-react": "7.24.0",
53-
"eslint-plugin-react-hooks": "4.2.0",
5449
"husky": "7.0.2",
5550
"lint-staged": "11.2.0",
5651
"prettier": "2.4.1",

0 commit comments

Comments
 (0)