-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
27 lines (27 loc) · 1.04 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module.exports = {
"env": {
"node": true,
"jest": true,
"browser": true
},
"parser": "babel-eslint",
"extends": [
"airbnb",
"plugin:react/recommended", // Following the preset's recommendation: https://github.com/yannickcr/eslint-plugin-react#configuration
"plugin:prettier/recommended"
],
"plugins": [
"react-hooks" // https://www.npmjs.com/package/eslint-plugin-react-hooks
],
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/display-name": 0, // Comes from eslint-plugin-react's default recommendation.
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
"import/prefer-default-export": 0,
"linebreak-style": ["error", (process.platform === "win32" ? "windows" : "unix")],
"import/prefer-default-export": 0,
"react/jsx-one-expression-per-line": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
};