-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslintrc.js
37 lines (37 loc) · 904 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
module.exports = {
env: {
jest: true,
},
extends: ['airbnb-base'],
ignorePatterns: ['dist/**/*.js', 'node_modules'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['./tsconfig.eslint.json'],
},
plugins: ['@typescript-eslint'],
rules: {
// I disable no-continue rule.
// 'continue' statement is usable for me to early return.
// 'no-continue' rule prevent me from do early return and
// make me write long codes in a if block.
'no-continue': 'off',
// eslint failed with the error 'Missing file extension "ts"'.
// But I can't write extension '.ts'. So I disable the rule.
'import/extensions': [
'error',
'always',
{
ts: 'never',
},
],
// ++ is famous.
'no-plusplus': 'off',
},
settings: {
'import/resolver': {
node: {
extensions: ['.ts'],
},
},
},
};