forked from Starlight-Dev-Team/fanbook-api-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
44 lines (41 loc) · 1.45 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
/* eslint-disable quote-props */
const process = require('process');
const production = process.env.NODE_ENV === 'production';
module.exports = {
root: true,
env: {
node: true,
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: 'plugin:@typescript-eslint/recommended',
parserOptions: {
project: ['./tsconfig.json'],
ecmaVersion: 11,
sourceType: 'module',
},
rules: {
'@typescript-eslint/comma-dangle': [2, 'always-multiline'],
'@typescript-eslint/object-curly-spacing': [2, 'always'],
'@typescript-eslint/member-delimiter-style': [2, {
'multiline': { 'delimiter': 'semi', 'requireLast': true },
'singleline': { 'delimiter': 'semi', 'requireLast': true },
}],
'@typescript-eslint/naming-convention': [0],
'@typescript-eslint/no-confusing-void-expression': [0],
'@typescript-eslint/no-debugger': production ? [2] : [0],
'@typescript-eslint/no-explicit-any': [0],
'@typescript-eslint/no-floating-promises': [0],
'@typescript-eslint/promise-function-async': [0],
'@typescript-eslint/quotes': [2, 'single'],
'@typescript-eslint/semi': [2, 'always'],
'@typescript-eslint/space-before-function-paren': [2, 'never'],
'@typescript-eslint/strict-boolean-expressions': [2, {
'allowString': true,
'allowNumber': true,
'allowNullableObject': true,
'allowNullableBoolean': true,
'allowNullableString': true,
'allowNullableNumber': true,
}],
}
};