-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.eslintrc.js
More file actions
executable file
·31 lines (31 loc) · 885 Bytes
/
.eslintrc.js
File metadata and controls
executable file
·31 lines (31 loc) · 885 Bytes
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
module.exports = {
extends: ['airbnb-base', 'prettier'],
parser: 'babel-eslint',
env: {
browser: true,
},
rules: {
'no-restricted-globals': 'off',
'no-unused-expressions': ['error', { allowTernary: true , allowShortCircuit:true }],
'no-bitwise': ['error', { allow: ['~', '>>'] }],
'implicit-arrow-linebreak': 'off',
'arrow-body-style': 'off',
'arrow-parens': ['error', 'as-needed'],
'no-prototype-builtins': 0,
'no-underscore-dangle': 'off',
'no-mixed-operators': 'off',
'no-undef': 0,
'no-unused-vars': [0, {'vars': 'all', 'args': 'after-used'}],
'import/extensions': 0,
'import/prefer-default-export': 0,
'prettier/prettier': 'error',
},
settings: {
'import/resolver': {
node: {
moduleDirectory: ['node_modules', 'bower_components'],
},
},
},
plugins: ['html', 'prettier'],
};