-
Notifications
You must be signed in to change notification settings - Fork 27
/
.eslintrc.js
36 lines (36 loc) · 995 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
35
36
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
'import',
'@stylistic/js',
'@stylistic/ts',
],
env: {
browser: true,
},
rules: {
'comma-dangle': ['error', 'always-multiline'],
'import/order': ['error', {
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
groups: [
['builtin', 'external'],
],
'newlines-between': 'always',
}],
'no-var': 'error',
'prefer-const': 'error',
'@stylistic/js/jsx-quotes': ['error', 'prefer-double'],
'@stylistic/js/max-len': ['error', { code: 140, ignoreStrings: true }],
'@stylistic/ts/indent': ['error', 2],
'@stylistic/ts/no-extra-semi': 'error',
'@stylistic/ts/quote-props': ['error', 'as-needed'],
'@stylistic/ts/quotes': ['error', 'single', { avoidEscape: true }],
'@stylistic/ts/semi': ['error', 'always'],
},
ignorePatterns: ['node_modules', '**/*.css.d.ts'],
};