-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
46 lines (46 loc) · 1.39 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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: ['.eslintrc.cjs'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': ['warn', { 'argsIgnorePattern': '^type$' }],
'semi': ['error', 'always'],
'comma-dangle': ['error', 'always-multiline'],
'arrow-parens': ['error', 'always'],
'arrow-spacing': 'error',
'block-spacing': 'error',
'brace-style': 'error',
'comma-spacing': 'error',
'func-call-spacing': 'error',
'rest-spread-spacing': 'error',
'object-curly-spacing': ['error', 'always'],
'indent': ['error', 2],
'key-spacing': 'error',
'keyword-spacing': 'error',
'space-before-function-paren': 'error',
'new-parens': 'error',
'quotes': ['error', 'single'],
'space-before-blocks': 'error',
'space-in-parens': 'error',
'eqeqeq': ['error', 'smart']
},
};