-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
30 lines (30 loc) · 873 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
module.exports = {
// Specifies the ESLint parser
parser: '@typescript-eslint/parser',
extends: ['plugin:@typescript-eslint/recommended', 'prettier'],
parserOptions: {
// Allows for the parsing of modern ECMAScript features
ecmaVersion: 2019,
// Allows for the use of imports
sourceType: 'module',
},
rules: {
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
'@typescript-eslint/consistent-indexed-object-style': 'error',
'comma-spacing': 'off',
'@typescript-eslint/comma-spacing': ['error'],
'@typescript-eslint/consistent-type-imports': ['error'],
'sort-imports': 1,
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
vars: 'all',
args: 'after-used',
ignoreRestSiblings: true,
argsIgnorePattern: '^_',
},
],
},
}