forked from microsoft/overreact-core
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
40 lines (40 loc) · 849 Bytes
/
.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
28
29
30
31
32
33
34
35
36
37
38
39
40
module.exports = {
root: true,
env: {
node: true,
es6: true,
},
parser: 'babel-eslint',
extends: [
'react-app',
'react-app/jest',
'airbnb',
],
plugins: [
'react',
'react-hooks',
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
sourceType: 'module',
},
rules: {
// https://github.com/facebook/react/tree/master/packages/eslint-plugin-react-hooks
// Let's play by the Rules of Hooks
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'linebreak-style': 0,
'import/prefer-default-export': 0,
'no-underscore-dangle': 0,
'no-prototype-builtins': 0,
'react/jsx-filename-extension': ['error', {
extensions: ['.js'],
}],
'arrow-parens': ['error', 'as-needed'],
},
globals: {
chrome: 'readonly',
},
};