forked from eugene-manuilov/typeorm-uml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
35 lines (31 loc) · 870 Bytes
/
.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
exports.env = {
es2020: true,
node: true,
jest: true,
};
exports.parser = '@typescript-eslint/parser';
exports.parserOptions = {
ecmaVersion: 11,
sourceType: 'module'
};
exports.extends = [
'standard',
];
exports.plugins = [
'@typescript-eslint',
];
exports.rules = {
'@typescript-eslint/no-unused-vars': [ 'error' ],
'array-bracket-spacing': [ 'error', 'always' ],
'comma-dangle': [ 'error', { arrays: 'always-multiline', objects: 'always-multiline' } ],
'indent': [ 'error', 'tab', { SwitchCase: 1 } ],
'no-console': 'error',
'no-tabs': 'off',
'no-unused-vars': 'off',
'no-useless-constructor': 'off',
'padded-blocks': [ 'error', { classes: 'always' } ],
'semi': [ 'error', 'always' ],
'space-before-function-paren': [ 'error', { named: 'never' } ],
'space-in-parens': [ 'error', 'always' ],
'template-curly-spacing': [ 'error', 'always' ],
};