-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
96 lines (96 loc) · 2.54 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
rules: {
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': ['error', { vars: 'local' }],
'@typescript-eslint/indent': ['error', 2],
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/member-delimiter-style': [
'error',
{
multiline: {
delimiter: 'semi',
requireLast: true,
},
singleline: {
delimiter: 'semi',
requireLast: false,
},
},
],
'@typescript-eslint/prefer-namespace-keyword': 'error',
'@typescript-eslint/semi': ['error', 'always'],
'@typescript-eslint/type-annotation-spacing': 'error',
'arrow-parens': ['error', 'always'],
'brace-style': ['error', '1tbs'],
'comma-dangle': ['error', 'always-multiline'],
'jsdoc/check-alignment': 'error',
'jsdoc/check-indentation': 'error',
'linebreak-style': 'off',
'newline-per-chained-call': [
'error',
{
ignoreChainWithDepth: 3,
},
],
'no-extra-semi': 'error',
'no-irregular-whitespace': 'error',
'no-multiple-empty-lines': [
'error',
{
max: 1,
maxBOF: 1,
},
],
'no-null/no-null': 'off',
'no-trailing-spaces': 'error',
'eol-last': ['error', 'always'],
'no-var': 'error',
'prefer-const': 'error',
'quote-props': ['error', 'as-needed'],
'spaced-comment': [
'error',
'always',
{
markers: ['/'],
},
],
'no-extra-boolean-cast': 'off',
'simple-import-sort/imports': [
'error',
{
groups: [
// Side effect imports.
['^\\u0000'],
// Package imports.
['^@?\\w'],
// Parent imports. Put `..` last.
['^\\.\\.(?!/?$)', '^\\.\\./?$'],
// Other relative imports. Put same-folder imports and `.` last.
['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'],
],
},
],
},
plugins: [
'prettier',
'eslint-plugin-no-null',
'eslint-plugin-jsdoc',
'@typescript-eslint',
'eslint-plugin-prettier',
'simple-import-sort',
],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier', 'plugin:prettier/recommended'],
ignorePatterns: ['.eslintrc.js'],
};