-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.base.js
35 lines (35 loc) · 1.5 KB
/
.eslintrc.base.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
module.exports = {
ignorePatterns: ['.eslintrc.js'],
extends: ['airbnb-typescript', 'prettier', 'eslint:recommended'],
plugins: ['prettier'],
rules: {
'import/prefer-default-export': 'off',
'react/jsx-filename-extension': ['off'],
'import/extensions': ['off'],
'@typescript-eslint/no-shadow': ['off'],
'import/no-extraneous-dependencies': ['off'],
'@typescript-eslint/no-use-before-define': ['off'],
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'interface',
format: ['PascalCase'],
custom: {
regex: '^I[A-Z]',
match: true,
},
},
],
quotes: ['error', 'single', { avoidEscape: true }],
'spaced-comment': ['error', 'always', { markers: ['/'] }],
// see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
// see https://github.com/typescript-eslint/typescript-eslint/issues/2528
'no-undef': 'off',
// see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/return-await.md
'no-return-await': 'off',
// TODO: enable this rule (use 'error') and fix the code in googleUtils.ts
'@typescript-eslint/return-await': 'off',
},
};