-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
65 lines (65 loc) · 1.59 KB
/
.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
module.exports = {
env: {
browser: true,
},
extends: [
'eslint:recommended',
'airbnb-base',
'standard',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/standard',
'prettier/@typescript-eslint',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: false,
},
sourceType: 'module',
},
plugins: ['import', '@typescript-eslint'],
rules: {
'lines-between-class-members': 'off',
/*
* https://github.com/typescript-eslint/typescript-eslint/issues/389#issuecomment-478389548
*/
'@typescript-eslint/no-for-in-array': 'off',
'@typescript-eslint/no-unnecessary-qualifier': 'off',
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
'@typescript-eslint/promise-function-async': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
// ======================================================
'arrow-parens': ['error', 'as-needed'],
'no-param-reassign': ['error', { props: false }],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
camelcase: 'off',
'@typescript-eslint/camelcase': [
'error',
{
allow: ['^\\$_'],
},
],
},
globals: {
window: true,
document: true,
},
settings: {
'import/resolver': {
webpack: {
config: 'webpack.config.js',
},
},
'import/extensions': ['.js', '.ts'],
},
};