-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
41 lines (35 loc) · 1.21 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
module.exports = {
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
plugins: ['prettier', '@typescript-eslint', 'simple-import-sort'],
env: {
node: true,
mocha: true,
},
rules: {
strict: ['error', 'global'],
'prettier/prettier': ['error', { tabWidth: 4, useTabs: false }],
'array-bracket-spacing': ['off'],
camelcase: ['error', { properties: 'always', allow: ['(.*?)__factory'] }],
'eol-last': ['error', 'always'],
'max-len': ['error', 150, 2, { ignoreComments: true }],
// @typescript-eslint/comma-dangle
// 'comma-dangle': [
// 'error',
// {
// arrays: 'always-multiline',
// objects: 'always-multiline',
// imports: 'never',
// exports: 'never',
// functions: 'never'
// },
// ],
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'no-tabs': ['error', { allowIndentationTabs: true }],
indent: ['error', 4],
},
parserOptions: {
ecmaVersion: 2020,
},
};