-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
41 lines (41 loc) · 1.14 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
module.exports = {
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'airbnb',
'plugin:import/typescript',
],
rules: {
'arrow-parens': [2, 'as-needed', { requireForBlockBody: true }],
'brace-style': [2, 'stroustrup'],
'function-paren-newline': 0,
'import/extensions': [2, 'never'],
'jsx-a11y/label-has-associated-control': [2, {}],
'jsx-quotes': [2, 'prefer-single'],
'no-console': 0,
'no-multi-assign': 0,
'no-multiple-empty-lines': [2, { max: 2, maxBOF: 0, maxEOF: 0 }],
'no-nested-ternary': 0,
'no-unused-vars': 0,
'object-curly-newline': [2, { multiline: true, consistent: true }],
'operator-linebreak': [2, 'after'],
radix: [2, 'as-needed'],
'react/jsx-filename-extension': [2, { extensions: ['.tsx'] }],
'react/jsx-one-expression-per-line': 0,
'react/prop-types': 0,
'react/react-in-jsx-scope': 0,
strict: [2, 'global'],
'@typescript-eslint/no-unused-vars': 2,
},
overrides: [
{ files: '*.ts' },
{
files: ['webpack.*.js'],
rules: {
'import/no-extraneous-dependencies': 0,
},
},
],
};