-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
49 lines (49 loc) · 1.33 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
module.exports = {
root: true,
overrides: [
{
files: ['./src/**/*.ts'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['./src/tsconfig.json'],
},
},
{
files: ['./tests/**/*.test.ts'],
parserOptions: {
project: ['./tests/tsconfig.json'],
},
rules: {
'@typescript-eslint/quotes': 'off',
},
},
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['./tsconfig-base.json'],
},
plugins: [
'@typescript-eslint',
'prettier',
],
extends: [
'airbnb-typescript',
'prettier',
],
rules: {
'prettier/prettier': 2,
'no-nested-ternary': 'off',
'max-len': [1, 160],
'@typescript-eslint/object-curly-spacing': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'import/extensions': 0,
'import/no-extraneous-dependencies': 0,
'react/jsx-filename-extension': 0,
'no-unused-vars': ['error', { args: 'after-used', argsIgnorePattern: '^_*' }],
'@typescript-eslint/no-unused-vars': ['error', { args: 'after-used', argsIgnorePattern: '^_*' }],
'no-unused-expressions': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/quotes': ['error', 'single', { allowTemplateLiterals: true }],
'@typescript-eslint/keyword-spacing': 'off',
},
};