-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
33 lines (33 loc) · 1.02 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
ignorePatterns: [
'coverage',
'build',
'node_modules',
],
rules: {
'no-multi-spaces': 'error',
'comma-dangle': ['error', 'always-multiline'],
indent: ['error', 2],
quotes: ['error', 'single', { avoidEscape: true }],
'arrow-parens': ['error', 'as-needed'],
'array-bracket-spacing': ['error', 'never'],
'object-curly-spacing': ['error', 'always', { objectsInObjects: false, arraysInObjects: false }],
'quote-props': ['error', 'as-needed'],
'keyword-spacing': 'error',
'comma-spacing': ['error', { before: false, after: true }],
'@typescript-eslint/semi': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/member-delimiter-style': ['error'],
},
globals: {
module: true,
},
};