-
Notifications
You must be signed in to change notification settings - Fork 202
/
.eslintrc.js
53 lines (48 loc) · 1.21 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: ['yoctol-base', 'plugin:@typescript-eslint/recommended', 'prettier'],
env: {
node: true,
jest: true,
jasmine: true,
},
plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
rules: {
camelcase: 'off',
'no-useless-constructor': 'off',
'import/no-extraneous-dependencies': 'off',
'import/extensions': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': 'error',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
'@typescript-eslint/no-useless-constructor': 'error',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': 'warn',
},
overrides: [
{
files: ['examples/**/*.js'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
},
{
files: ['packages/**/*.ts'],
rules: {
'tsdoc/syntax': 'warn',
},
},
],
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
typescript: {},
},
},
};