This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
44 lines (44 loc) · 1.54 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 = {
extends: [
'airbnb',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
'prettier',
],
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
typescript: {},
},
},
rules: {
'@typescript-eslint/indent': ['warn', 4, { VariableDeclarator: 'first' }],
'@typescript-eslint/no-explicit-any': 'off',
'array-bracket-spacing': ['error', 'never'],
'import/extensions': 'off',
'import/no-extraneous-dependencies': [2, { devDependencies: ['**/test.tsx', '**/test.ts'] }],
'indent': ['warn', 4, { VariableDeclarator: 'first' }],
'no-prototype-builtins': 'off',
'no-underscore-dangle': 'off',
'no-use-before-define': 'off',
'object-curly-newline': 'off',
'object-curly-spacing': ['error', 'always'],
'quote-props': ['error', 'consistent'],
'quotes': ['error', 'single'],
'react/jsx-closing-bracket-location': [1, {
selfClosing: 'tag-aligned',
nonEmpty: 'after-props',
}],
'react/jsx-filename-extension': [2, { extensions: ['.js', '.jsx', '.ts', '.tsx'] }],
'react/jsx-first-prop-new-line': 'off',
'react/jsx-indent': 'off',
'react/jsx-indent-props': 'off',
'react/jsx-one-expression-per-line': 'off',
'react/no-unescaped-entities': 'off'
},
};