forked from devoffarg/DevOff-Desafio-5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
37 lines (37 loc) · 929 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
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: [
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'airbnb',
],
parser: 'babel-eslint',
plugins: [
'react',
'react-hooks',
],
settings: {
'import/resolver': {
alias: {
extensions: ['.js', '.jsx'],
map: [
['~', './'],
],
},
},
},
rules: {
'max-len': ['error', { code: 120, ignoreUrls: true }],
'no-underscore-dangle': ['error', { allow: ['__'] }], // ramda's placeholder
indent: ['error', 2, { ignoredNodes: ['TemplateLiteral'] }], // babel-eslint error
'template-curly-spacing': 'off', // babel-eslint error
'import/prefer-default-export': 'off',
'react/jsx-props-no-spreading': 'off',
'react/jsx-uses-react': 'off', // new jsx transform
'react/react-in-jsx-scope': 'off', // new jsx transform
},
};