-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
38 lines (38 loc) · 970 Bytes
/
.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
module.exports = {
root: true,
env: {
node: true
},
extends: [
'airbnb-base',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:jest/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
sourceType: 'module'
},
plugins: ['@typescript-eslint', 'jest'],
rules: {
'import/extensions': 0,
'import/prefer-default-export': 0,
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
'import/no-extraneous-dependencies': ['error', { devDependencies: ['test/**/*.ts', 'scripts/**/*'] }],
'camelcase': 0,
},
settings: {
'import/extensions': ['.js', '.ts',],
'import/parsers': {
'@typescript-eslint/parser': ['.ts']
},
'import/resolver': {
node: {
extensions: ['.js', '.ts',]
}
},
},
ignorePatterns: ['dist/**', '.eslintrc.js', 'jest.config.js', 'src/types/generated/**']
}