-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
.eslintrc.js
53 lines (53 loc) · 1.34 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
module.exports = {
extends: ['rollup', 'plugin:import/typescript'],
overrides: [
{
files: ['*.ts'],
parserOptions: {
project: ['./tsconfig.eslint.json', './tsconfig.json'],
tsconfigRootDir: __dirname
},
rules: { '@typescript-eslint/no-unnecessary-type-assertion': 'error' }
}
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
rules: {
'@typescript-eslint/consistent-type-assertions': 'error',
'@typescript-eslint/consistent-type-definitions': 'error',
'@typescript-eslint/member-ordering': 'error',
'@typescript-eslint/no-inferrable-types': 'error',
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
args: 'after-used',
ignoreRestSiblings: true,
vars: 'local'
}
],
'import/extensions': [
'error',
'always',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never'
}
],
'import/no-named-export': 'off',
'import/no-namespace': 'off',
'no-unused-vars': 'off',
'prettier/prettier': [
'error',
{
arrowParens: 'always',
plugins: ['prettier-plugin-package'],
printWidth: 100,
singleQuote: true,
trailingComma: 'none'
}
]
}
};