-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
34 lines (34 loc) · 1.12 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2023
},
env: {
browser: true,
node: true,
es6: true
},
rules: {
quotes: ['error', 'single', { avoidEscape: true }],
semi: ['error', 'always'],
'comma-dangle': ['error', 'never'],
'func-names': ['error', 'never'],
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
'no-empty': ['error', { allowEmptyCatch: true }],
'space-before-function-paren': [
'error',
{ anonymous: 'never', named: 'never', asyncArrow: 'always' }
],
'import/prefer-default-export': 'off',
'import/no-useless-path-segments': 'off',
'@typescript-eslint/no-empty-interface': ['error', { allowSingleExtends: true }],
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/semi': 'error',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-inferrable-types': 'off'
}
};