-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
56 lines (54 loc) · 1.61 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
/* eslint-disable no-unused-vars */
const OFF = 0;
const WARN = 1;
const ERROR = 2;
module.exports = {
root: true,
env: {
browser: true,
es2021: true
},
extends: 'standard-with-typescript',
overrides: [
],
parserOptions: {
project: './tsconfig.eslint.json',
ecmaVersion: 'latest',
sourceType: 'module'
},
rules: {
'@typescript-eslint/semi': [ERROR, 'always'],
'@typescript-eslint/comma-dangle': OFF,
'@typescript-eslint/member-delimiter-style': OFF,
'@typescript-eslint/consistent-indexed-object-style': OFF,
'@typescript-eslint/explicit-function-return-type': OFF,
'@typescript-eslint/strict-boolean-expressions': OFF,
'@typescript-eslint/space-before-function-paren': [ERROR, {
'anonymous': 'never',
'named': 'never',
'asyncArrow': 'always'
}],
'@typescript-eslint/restrict-template-expressions': OFF,
'@typescript-eslint/restrict-plus-operands': [ERROR, {
checkCompoundAssignments: false,
allowAny: true
}],
'@typescript-eslint/consistent-type-assertions': OFF,
'@typescript-eslint/consistent-type-definitions': OFF,
'@typescript-eslint/prefer-optional-chain': OFF,
'@typescript-eslint/no-unnecessary-type-assertion': OFF,
'no-console': ERROR,
'no-multiple-empty-lines': [ERROR, { max: 2 }],
'import/no-duplicates': OFF,
'quote-props': OFF,
'operator-linebreak': OFF,
'no-use-before-define': OFF,
// Handled by typescript
'semi': OFF,
'comma-dangle': OFF,
'space-before-function-paren': OFF,
'no-redeclare': OFF,
'no-unused-vars': OFF,
'no-undef': OFF,
},
};