-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
42 lines (42 loc) · 1.09 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
module.exports = {
root: true,
extends: [
'@side/base',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:jsdoc/recommended',
],
parser: '@typescript-eslint/parser',
// TODO: Move settings to lint-config base
settings: {
'import/extensions': ['.js', '.jsx', '.ts', '.tsx'],
'import/resolver': {
node: {
extensions: ['.js', '.json', '.jsx', '.ts', '.tsx'],
},
},
},
rules: {
'jsdoc/require-returns-type': 0,
'jsdoc/require-param-type': 0,
quotes: ['error', 'single', { avoidEscape: true }],
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
// Override airbnb extensions settings
// TODO: Move this to lint-config base
// Ensure consistent use of file extension within the import path
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
mjs: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
},
],
},
overrides: [],
};