-
Notifications
You must be signed in to change notification settings - Fork 76
/
.eslintrc.js
43 lines (36 loc) · 1.1 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
module.exports = {
// Specifies the ESLint parser
parser: '@typescript-eslint/parser',
// Which files to not lint
ignorePatterns: ['webpack*', 'dist*'],
parserOptions: {
// Allows for the parsing of modern ECMAScript features
ecmaVersion: 2020,
// Allows for the use of imports
sourceType: 'module',
},
// The base rules this project extends from
extends: [
// Uses the recommended rules from the @typescript-eslint/eslint-plugin
'plugin:@typescript-eslint/recommended',
],
// additional function from 3rd parties
plugins: ['deprecate'],
// Rules in addition to the base
rules: {
// Deprecated code rules
'deprecate/function': 2,
'deprecate/import': 2,
'deprecate/member-expression': 2,
// Eslint overrides
curly: ['error', 'all'],
quotes: ['error', 'single', { avoidEscape: true }],
'max-lines-per-function': ['error', 80],
// Typescript overrides
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{ vars: 'all', args: 'none', ignoreRestSiblings: false },
],
},
};