-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path.eslintrc.js
More file actions
32 lines (31 loc) · 775 Bytes
/
.eslintrc.js
File metadata and controls
32 lines (31 loc) · 775 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
32
module.exports = {
extends: ['eslint:recommended', 'prettier'],
parser: 'babel-eslint',
plugins: ['import', 'prettier'],
env: {
node: true,
es6: true,
},
root: true,
rules: {
'prettier/prettier': [
'error',
{ trailingComma: 'es5', singleQuote: true, tabWidth: 2, },
],
'prefer-const': 'error',
'import/order': [
'error',
{
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
},
],
'no-unused-vars': ['error', { vars: 'all', args: 'none' }],
'no-underscore-dangle': 'off',
'no-param-reassign': 'off',
'no-console': 'off',
'no-warning-comments': ['warn', { terms: ['fixme'], location: 'start' }],
},
parserOptions: {
sourceType: "module"
}
};