-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
47 lines (38 loc) · 1.14 KB
/
.eslintrc.cjs
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
/* eslint-disable no-unused-vars, @typescript-eslint/no-unused-vars */
const OFF = 0;
const WARNING = 1;
const ERROR = 2;
// https://eslint.org/docs/latest/use/configure/configuration-files
module.exports = {
root: true,
env: {
es6: true,
node: true,
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'unicorn'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/strict',
'plugin:@typescript-eslint/stylistic',
'plugin:unicorn/recommended',
'prettier',
],
settings: {},
overrides: [],
rules: {
'@typescript-eslint/default-param-last': ERROR,
'@typescript-eslint/ban-types': [ERROR, {types: {object: false, '{}': false}}],
'@typescript-eslint/no-dynamic-delete': OFF,
'@typescript-eslint/no-empty-interface': [
ERROR,
{
allowSingleExtends: true,
},
],
'@typescript-eslint/no-explicit-any': [ERROR, {fixToUnknown: true, ignoreRestArgs: true}],
'@typescript-eslint/no-shadow': ERROR,
'@typescript-eslint/prefer-literal-enum-member': [ERROR, {allowBitwiseExpressions: true}],
'unicorn/prevent-abbreviations': OFF,
},
};