-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
35 lines (32 loc) · 1.01 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
module.exports = {
env: {
browser: true,
es2021: true,
amd: true,
node: true,
},
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
ignorePatterns: ['node_modules', '_build'],
overrides: [],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'prettier'],
rules: {
// typescript replacements
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
// typescript rules
'@typescript-eslint/no-namespace': ['error', { allowDeclarations: true }],
'@typescript-eslint/no-empty-interface': ['error', { allowSingleExtends: true }],
// prettier rules
'prettier/prettier': 'warn',
// general rules
// 'indent': ['error', 'tab', {SwitchCase: 1}],
// 'linebreak-style': ['error', 'unix'],
// 'quotes': ['error', 'single', {avoidEscape: true, allowTemplateLiterals: true}],
// 'semi': ['error', 'always']
},
};