/
.eslintrc.js
31 lines (30 loc) · 955 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
const jsExtensions = ['.js', '.jsx'];
const tsExtensions = ['.ts', '.tsx'];
const allExtensions = jsExtensions.concat(tsExtensions);
module.exports = {
extends: [
'airbnb-base',
'plugin:@typescript-eslint/recommended',
'plugin:jest/recommended',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
],
rules: {
'import/no-extraneous-dependencies': ['error', { devDependencies: ['test/**/*.ts'] }],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'max-len': ['error', { code: 100 }], // 120 is too much for macbook
'import/prefer-default-export': 'off', // typescript community doesn't like default exports
},
settings: {
'import/extensions': allExtensions,
'import/parsers': {
'@typescript-eslint/parser': tsExtensions,
},
'import/resolver': {
node: {
extensions: allExtensions,
},
},
},
};