forked from yahoo/react-stickynode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
36 lines (36 loc) · 858 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
module.exports = {
extends: ['eslint:recommended', 'plugin:react/recommended'],
plugins: ['react'],
settings: {
react: {
version: 'detect',
},
},
env: {
browser: true,
es2021: true,
mocha: true,
node: true,
jest: true,
protractor: true,
},
parserOptions: {
ecmaVersion: 2021,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
rules: {
'no-fallthrough': 0,
'valid-jsdoc': [2, { requireReturn: false }],
'react/jsx-key': 1,
'react/jsx-no-undef': 2,
'react/jsx-uses-react': 2,
'react/jsx-uses-vars': 2,
'react/no-deprecated': 2,
'react/no-string-refs': 0,
'react/prop-types': 0,
'react/react-in-jsx-scope': 0,
},
};