-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
44 lines (43 loc) · 1.05 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
module.exports = {
parser: '@typescript-eslint/parser',
env: {
jest: true,
},
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
project: './tsconfig.eslint.json',
// Using __dirname to solve this issue:
// https://github.com/typescript-eslint/typescript-eslint/issues/251
tsconfigRootDir: __dirname,
},
rules: {
indent: ['error', 2, { SwitchCase: 1 }],
'react/prop-types': 0,
'@typescript-eslint/prefer-interface': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',
"arrow-body-style": [2, "as-needed"],
quotes: ["error", "single", { "allowTemplateLiterals": true }]
},
overrides: [
{
files: ['*.js'],
rules: {
'@typescript-eslint/explicit-function-return-type': [0],
'@typescript-eslint/explicit-module-boundary-types': [0],
},
},
],
settings: {
react: {
version: 'detect',
},
},
};