-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.cjs
33 lines (32 loc) · 1023 Bytes
/
.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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2022,
sourceType: "module"
},
extends: [
'plugin:@typescript-eslint/recommended'
],
plugins: [
'@typescript-eslint'
],
root: true,
env: {
node: true
},
rules: {
'object-curly-spacing': [ 'warn', 'always' ],
'array-bracket-spacing': [ 'warn', 'always' ],
'spaced-comment': [ 'error', 'always' ],
'semi': [ 'error', 'never' ],
'comma-dangle': [ 'error', 'never' ],
'indent': [ 'error', 4 ],
'eol-last': [ 'error', 'never' ],
'array-element-newline': [ 'warn', 'consistent' ],
'object-property-newline': 'warn',
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off'
}
}