-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
37 lines (35 loc) · 967 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
36
37
module.exports = {
env: {
browser: true,
node: true,
es6: true
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'prettier',
'plugin:prettier/recommended'
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
plugins: ['@typescript-eslint', 'prettier', 'simple-import-sort'],
rules: {
'@typescript-eslint/indent': 0,
'@typescript-eslint/no-empty-interface': ['off'],
'@typescript-eslint/camelcase': ['off'],
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'no-console': ['error', { allow: ['info', 'warn', 'error'] }],
'default-case': 'error',
eqeqeq: ['error', 'always', { null: 'ignore' }],
'no-empty-function': ['error', { allow: ['constructors'] }],
'no-unused-vars': ['off'],
semi: ['error', 'always']
}
};