-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
43 lines (43 loc) · 1.35 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
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended'
],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
project: './src/ts/tsconfig.json',
'ecmaFeatures': {
'jsx': true
}
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-angle-bracket-type-assertion': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',
'react/jsx-closing-bracket-location': 1,
'react/jsx-closing-tag-location': 1,
'react/jsx-filename-extension': [1, {'extensions': ['.tsx'] }],
'react/jsx-no-bind': [1, { 'allowArrowFunctions': true }],
'react/jsx-pascal-case': 1,
'react/no-multi-comp': [1, { 'ignoreStateless': true }],
'react/prefer-es6-class': 1,
'react/prefer-stateless-function': 1,
'react/require-render-return': 1,
'react/self-closing-comp': 1,
'prettier/prettier': 'error',
},
settings: {
react: {
version: 'detect'
}
},
env: {
browser: true,
node: true
}
}