-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
34 lines (34 loc) · 900 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
// http://eslint.org/docs/user-guide/configuring
module.exports = {
env: {
browser: true,
},
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
},
plugins: [
'html',
],
extends: 'airbnb-base',
root: true,
rules: {
'comma-dangle': ['error', 'always-multiline'],
'indent': ['error', 2],
'space-before-function-paren': ['error', 'never'],
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, // allow debugger in development
'quotes': ['error', 'single', {
'allowTemplateLiterals': true,
'avoidEscape': true,
}],
// 'semi': ['error', 'never'],
'func-names': ['error', 'never'],
'import/extensions': ['error', 'always', {
'js': 'never', // don't require .js extension when importing
}],
'import/no-extraneous-dependencies': [
'error',
{ 'devDependencies': true }
]
},
};