-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
34 lines (34 loc) · 948 Bytes
/
.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
module.exports = {
extends: [
'eslint:recommended',
'plugin:n/recommended',
'plugin:regexp/recommended',
'plugin:unicorn/recommended',
// Make sure to put prettier last, so it gets the chance to override other configs.
'@vue/prettier',
],
parserOptions: {
ecmaVersion: 2021,
},
overrides: [
{
files: ['**/*.ts'],
extends: ['plugin:@typescript-eslint/recommended'],
rules: {
'@typescript-eslint/no-explicit-any': 0,
},
},
],
rules: {
'n/no-missing-import': 0,
'unicorn/prevent-abbreviations': 0,
'unicorn/filename-case': 0,
'unicorn/no-array-reduce': 0,
'unicorn/prefer-object-from-entries': 0,
'regexp/no-super-linear-backtracking': 0,
'regexp/no-useless-non-capturing-group': 0,
},
// ref: https://eslint.org/docs/user-guide/migrating-to-7.0.0#default-ignore-patterns-have-changed
ignorePatterns: ['.eslintrc.*'],
root: true,
};