-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
32 lines (32 loc) · 969 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
module.exports = {
env: {
browser: true,
},
extends: ['airbnb-base'],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['eslint-plugin-import-order-alphabetical', 'html', 'import'],
rules: {
'class-methods-use-this': 0,
'guard-for-in': 0,
'implicit-arrow-linebreak': 0,
'import/no-extraneous-dependencies': ['error', { devDependencies: ['test/**/**', 'webpack.config.js'] }],
'import/prefer-default-export': 0,
'import-order-alphabetical/order': [
'error',
{
groups: [['builtin', 'external'], ['internal', 'parent', 'sibling', 'index']],
'newlines-between': 'always',
},
],
'max-len': ['error', { code: 120 }],
'no-continue': 0,
'no-param-reassign': 0,
'no-restricted-syntax': ['error', 'WithStatement'],
'no-underscore-dangle': 0,
'no-unused-expressions': ['error', { allowTaggedTemplates: true }],
'no-useless-escape': 0,
},
};