-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
48 lines (48 loc) · 1.04 KB
/
.eslintrc.cjs
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
/*
Required modules for this config:
yarn add -D\
eslint\
@typescript-eslint/parser\
@typescript-eslint/eslint-plugin\
eslint-plugin-import
*/
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
env: {
browser: true,
commonjs: true,
node: true,
es6: true,
},
plugins: ['@typescript-eslint', 'import'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
overrides: [
{
files: ['*.js*', '*.ts*'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{ argsIgnorePattern: '^_' },
],
},
},
],
rules: {
'comma-dangle': ['warn', 'always-multiline'],
semi: ['warn', 'always'],
'no-console': ['warn'],
'import/order': [
'warn',
{
alphabetize: { order: 'asc', caseInsensitive: true },
},
],
},
};