forked from tnfe/tntweb-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
40 lines (40 loc) · 934 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
38
39
40
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
extends: ['plugin:react/recommended', "react-app"],
env: {
jest: true,
},
globals: {
JSX: true,
React: true
},
settings: {
react: {
version: 'detect',
},
},
rules: {
// eqeqeq: 0,
// 'constructor-super': 0,
// 'no-plusplus': 0,
// 'no-underscore-dangle': 0,
// 'max-len': ['error', { code: 300 }],
'linebreak-style': ["off", "windows"],
camelcase: 0,
'@typescript-eslint/explicit-member-accessibility': 0,
'@typescript-eslint/prefer-optional-chain': 0,
'react/display-name': 0,
'no-param-reassign': 0,
'import/prefer-default-export': 0,
'arrow-body-style': 0,
'function-paren-newline': 0,
'object-curly-spacing': 0,
'arrow-parens': 0,
/**
* allow
* return name.split('').reverse().join('');
*/
'newline-per-chained-call': 0,
},
};