-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
46 lines (39 loc) · 1.15 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
43
44
45
46
module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true,
},
ignorePatterns: ['**/dist/*'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
},
plugins: ['@typescript-eslint', 'simple-import-sort', 'lit'],
extends: [
'eslint:recommended',
'plugin:lit/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
quotes: ['error', 'single', { avoidEscape: true, allowTemplateLiterals: true }],
'prettier/prettier': 'warn',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-namespace': ['error', { allowDeclarations: true }],
'simple-import-sort/imports': [
'warn',
{
groups: [['^\\u0000'], ['^@?\\w'], ['^', '^@pdf\\/'], ['^\\.\\.?\\/']],
},
],
'simple-import-sort/exports': 'warn',
},
};