-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
104 lines (99 loc) · 1.98 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution');
/**
* Rules: https://eslint.org/docs/latest/use/configure/rules
*/
module.exports = {
root: true,
extends: [
'eslint:recommended',
'./eslint-plugins/.eslintrc-ts.cjs',
'./eslint-plugins/.eslintrc.vue.cjs',
'./eslint-plugins/.eslintrc.import-plugin.cjs',
'./eslint-plugins/.eslintrc-auto-import.json',
],
rules: {
camelcase: 'warn',
// https://typescript-eslint.io/rules/no-unused-vars/
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
},
],
// https://typescript-eslint.io/rules/lines-between-class-members/
'@typescript-eslint/lines-between-class-members': [
'warn',
'always',
{
exceptAfterOverload: true,
exceptAfterSingleLine: false,
},
],
'spaced-comment': [
'warn',
'always',
{
line: {
markers: ['/'],
exceptions: ['-', '+'],
},
block: {
markers: ['!'],
exceptions: ['*'],
balanced: true,
},
},
],
},
overrides: [
{
files: ['cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}'],
extends: ['plugin:cypress/recommended'],
},
],
parserOptions: {
ecmaVersion: 'latest',
},
// for in lint-staged
ignorePatterns: [
'*.min.*',
'*.d.ts',
'dist',
'LICENSE*',
'output',
'out',
'coverage',
'node_modules',
'public',
'temp',
'src/assets',
'package-lock.json',
'pnpm-lock.yaml',
'yarn.lock',
'*.css',
'*.scss',
'*.png',
'*.svg',
'*.ico',
'*.toml',
'*.patch',
'*.txt',
'*.crt',
'*.key',
'*.json',
'*.jsonc',
'*.json5',
'*.yml',
'*.yaml',
'Dockerfile',
'Jenkinsfile*',
'.eslintrc-auto-import.json',
'auto-imports.d.ts',
'components.d.ts',
'nginx/',
'environments/',
'index.html',
'README.md',
],
};