-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
46 lines (45 loc) · 1.31 KB
/
.eslintrc.js
File metadata and controls
46 lines (45 loc) · 1.31 KB
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
const OFF = 'off'
const ERROR = 'error'
const WARN = 'warn'
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'import'],
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'object-curly-spacing': [ERROR, 'always'],
'semi': [ERROR, 'never'],
'no-unused-vars': OFF,
'quote-props': [ERROR, 'consistent-as-needed'],
'no-debugger': ERROR,
'arrow-parens': [ERROR, 'as-needed'],
'@typescript-eslint/no-unused-vars': [ERROR],
'@typescript-eslint/no-namespace': OFF,
'import/order': [ERROR, {
groups: [
'builtin',
'external',
['type', 'internal', 'sibling'],
'index',
],
'pathGroupsExcludedImportTypes': ['builtin'],
'newlines-between': 'always',
'pathGroups': [
{ pattern: 'config/**', group: 'internal' },
{ pattern: 'exceptions/**', group: 'internal' },
{ pattern: 'modules/**', group: 'internal' },
{ pattern: 'services/**', group: 'internal' },
{ pattern: 'utils/**', group: 'internal' },
{ pattern: 'web/**', group: 'internal' },
],
}]
},
}