-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
92 lines (87 loc) · 2.33 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
const { resolve } = require;
const OFF = 0;
const WARN = 1;
const ERROR = 2;
module.exports = {
env: {
browser: true,
es6: true,
node: true,
mocha: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:unicorn/recommended',
'prettier',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2021,
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
settings: {
'import/resolver': {
node: {
extensions: ['.ts', '.tsx', '.js', '.json'],
},
typescript: {
project: [
resolve('./src/tsconfig.json'),
resolve('./scripts/tsconfig.json'),
resolve('./test/tsconfig.json'),
],
},
},
},
rules: {
'import/extensions': OFF,
'@typescript-eslint/explicit-function-return-type': OFF,
'@typescript-eslint/no-explicit-any': OFF,
'@typescript-eslint/no-non-null-assertion': OFF,
'unicorn/consistent-function-scoping': OFF,
'unicorn/filename-case': [
ERROR,
{
cases: {
camelCase: true,
pascalCase: true,
},
},
],
'unicorn/import-style': OFF,
'unicorn/no-abusive-eslint-disable': OFF,
'unicorn/no-array-for-each': OFF,
'unicorn/no-null': OFF,
'unicorn/no-process-exit': OFF,
'unicorn/prefer-module': OFF,
'unicorn/prefer-node-protocol': OFF,
'unicorn/prevent-abbreviations': OFF,
'func-names': OFF,
'max-classes-per-file': OFF,
'no-bitwise': OFF,
'no-console': OFF,
'no-param-reassign': OFF,
'no-plusplus': OFF,
'no-unused-expressions': OFF,
},
overrides: [
{
files: ['test/**/*.ts'],
rules: {
'import/prefer-default-export': OFF,
},
},
{
files: ['scripts/**/*.ts'],
rules: {
'import/no-extraneous-dependencies': OFF,
},
},
],
};