-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
88 lines (88 loc) · 2.61 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
},
plugins: ['@typescript-eslint', 'import', 'unused-imports', 'jsdoc'],
ignorePatterns: ['node_modules/', '*.snap'],
extends: [
'airbnb/base',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:jsdoc/recommended',
'plugin:prettier/recommended',
'prettier',
],
rules: {
camelcase: 'off',
'import/extensions': 'off',
'import/order': [
'error',
{
alphabetize: { caseInsensitive: true, order: 'asc' },
groups: [
['external', 'builtin'],
['internal', 'index', 'sibling', 'parent'],
],
'newlines-between': 'always',
},
],
'@typescript-eslint/await-thenable': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'jsdoc/check-tag-names': 'off',
'jsdoc/empty-tags': 'off',
'jsdoc/no-undefined-types': 'off',
'jsdoc/require-param-type': 'off',
'jsdoc/require-returns-type': 'off',
'no-console': ['error', { allow: ['error'] }],
'no-underscore-dangle': 'off',
'object-curly-spacing': ['error', 'always'],
'unused-imports/no-unused-imports': 'error',
'unused-imports/no-unused-imports-ts': 'error',
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
'func-names': 'off',
'import/no-extraneous-dependencies': 'off',
'import/prefer-default-export': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/control-has-associated-label': 'off',
'jsx-a11y/label-has-associated-control': 'off',
'no-console': 'error',
'no-empty': 'off',
quotes: [2, 'single', { avoidEscape: true }],
'max-len': [
'error',
{
code: 250,
ignoreStrings: true,
ignoreUrls: true,
tabWidth: 2,
},
],
},
settings: {
'import/resolver': {
typescript: {},
alias: {
map: [
['@sr-actions', './src/actions'],
['@sr-services', './src/services'],
['@sr-tests', './src/tests'],
['@sr-triggers', './src/triggers'],
],
extensions: ['.ts', '.js', '.json'],
},
},
},
}