-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
59 lines (59 loc) · 1.22 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/** @type {import('eslint').Linter.BaseConfig} */
module.exports = {
settings: {
react: {
version: 'detect',
}
},
env: {
browser: true,
es2021: true,
'jest/globals': true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 12,
sourceType: 'module',
project: './tsconfig.json'
},
plugins: [
'react',
'jest',
'@typescript-eslint'
],
rules: {
'no-console': 2,
'react/prop-types': 0,
'@typescript-eslint/ban-ts-comment': 0,
'eqeqeq': 2,
'indent': [2, 2],
'no-empty': 1,
'no-implicit-coercion': 2,
'no-unused-expressions': 1,
'no-unused-vars': 0,
'space-infix-ops': 1,
'prefer-const': 2,
'curly': [1, 'multi-line'],
'semi': 1,
'comma-dangle': [1, {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'never',
exports: 'never',
functions: 'never',
}],
'object-curly-spacing': 1,
'sort-imports': [1, {
ignoreCase: true,
}],
}
};