-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
41 lines (41 loc) · 834 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
41
// [REF]: https://medium.freecodecamp.org/these-tools-will-help-you-write-clean-code-da4b5401f68e
module.exports = {
env: {
es6: true,
browser: true,
node: true,
},
extends: [
'airbnb',
'plugin:jest/recommended',
'jest-enzyme',
"prettier",
"prettier/react",
"prettier/standard"
],
plugins: [
'babel',
'import',
'jsx-a11y',
'react',
'prettier',
],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
rules: {
"no-param-reassign": "off",
'comma-dangle': ['error', 'never'],
'no-plusplus': 'off',
'indent': ['error', 6],
"react/jsx-filename-extension": "off",
"react/forbid-prop-types": "off",
"react/destructuring-assignment": "off",
'prettier/prettier': 'error'
}
};