forked from hyochan/hackatalk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
54 lines (54 loc) · 1.37 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
module.exports = {
extends: ['standard', 'plugin:react/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
settings: {
react: {
createClass: 'createReactClass',
pragma: 'React',
version: 'detect',
},
},
env: {
browser: true,
jest: true,
},
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
},
rules: {
indent: ['error', 2],
'no-unused-vars': 0,
'jsx-quotes': ['error', 'prefer-single'],
// '@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/interface-name-prefix': 'warn',
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
'no-console': 'error',
'react/jsx-uses-vars': [2],
'max-len': ['error', { code: 100 }],
'comma-dangle': ['error', 'always-multiline'],
semi: [2, 'always'],
'arrow-parens': ['error', 'always'],
'space-before-function-paren': ['error', 'never'],
'no-new-object': 'error',
'no-array-constructor': 'error',
'sort-imports': [
2,
{
ignoreCase: false,
ignoreMemberSort: false,
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
},
],
'space-before-function-paren': [
'error',
{
anonymous: 'never',
named: 'never',
asyncArrow: 'always',
},
],
'react/prop-types': 0,
},
};