-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.cjs
52 lines (52 loc) · 1.59 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
49
50
51
52
/**
* @type {import('@myparcel/eslint-config').ESLintConfig}
*/
module.exports = {
root: true,
overrides: [
{
files: ['./**/*.vue'],
extends: ['@myparcel-eslint/eslint-config-prettier-typescript-vue', '@myparcel-eslint/eslint-config-import'],
rules: {
'@typescript-eslint/no-misused-promises': 'off',
'vue/no-bare-strings-in-template': 'off',
'vue/no-undef-components': [
'error',
{
ignorePatterns: ['Content', 'ExternalLinkIcon', 'Layout', 'NavbarSearch', 'RouterLink', 'RouterView'],
},
],
},
},
{
files: ['./**/*.ts', './**/*.tsx'],
extends: ['@myparcel-eslint/eslint-config-prettier-typescript', '@myparcel-eslint/eslint-config-import'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'class-methods-use-this': 'off',
},
},
{
files: ['./**/*.js', './**/*.cjs', './**/*.mjs'],
parserOptions: {
sourceType: 'module',
},
extends: [
'@myparcel-eslint/eslint-config-node',
'@myparcel-eslint/eslint-config-esnext',
'@myparcel-eslint/eslint-config-prettier',
'@myparcel-eslint/eslint-config-import',
],
},
{
files: ['./**/*.spec.*', './**/*.test.*', './**/__tests__/**', './**/*Test.*'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-magic-numbers': 'off',
'max-len': 'off',
'max-lines-per-function': 'off',
},
},
],
};