forked from syroegkin/swagger-markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
44 lines (44 loc) · 1.09 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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
extends: [
'airbnb-base',
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
],
rules: {
'no-plusplus': 0,
'class-methods-use-this': 0,
'no-underscore-dangle': 0,
'no-continue': 0,
'no-param-reassign': 0,
'no-bitwise': 0,
'import/no-unresolved': 0,
'import/prefer-default-export': 0,
'import/extensions': 0,
'@typescript-eslint/interface-name-prefix': 0,
'func-names': 0,
'no-console': 0,
'no-await-in-loop': 0,
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
'no-useless-constructor': 0,
'@typescript-eslint/no-useless-constructor': ['error'],
indent: 'off',
'@typescript-eslint/indent': ['error', 2],
},
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
},
{
files: '*.spec.js',
rules: {
'no-unused-expressions': 'off',
},
},
],
};