forked from qntln/react-canvas
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
39 lines (38 loc) · 868 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
const prettierConfig = require('./.prettierrc.js')
module.exports = {
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
env: {
browser: true,
es6: true,
node: true
},
extends: ['airbnb', 'prettier', 'prettier/react'],
plugins: ['prettier'],
rules: {
'prettier/prettier': [2, prettierConfig],
'no-param-reassign': 0,
'no-underscore-dangle': 0,
'no-plusplus': 0,
'no-restricted-syntax': 0,
'import/prefer-default-export': 0,
'react/prefer-stateless-function': 0,
'react/destructuring-assignment': 0,
'import/no-extraneous-dependencies': [
'error',
{ devDependencies: ['stories/**/*'] }
],
'jsx-a11y/mouse-events-have-key-events': 0
},
settings: {
react: {
version: 'detect'
}
}
}