-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
54 lines (53 loc) · 1.65 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
/* eslint-env node */
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
extends: [
"plugin:vue/vue3-recommended",
"eslint:all",
"@vue/eslint-config-typescript",
"@vue/eslint-config-prettier/skip-formatting",
"plugin:prettier/recommended",
],
overrides: [
{
extends: ["plugin:cypress/recommended"],
files: ["cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}", "cypress/support/**/*.{js,ts,jsx,tsx}"],
},
],
parserOptions: {
ecmaVersion: "latest",
},
root: true,
rules: {
"@typescript-eslint/no-shadow": ["error"],
// Don't force capitalized comments
"capitalized-comments": ["off"],
// Only force func names if needed
"func-names": ["error", "as-needed"],
// Allow both function declarations and expressions
"func-style": "off",
// Exclude some commonly used iterators
"id-length": ["error", { exceptions: ["i", "j", "k"] }],
// Disable max-params
"max-params": "off",
// Disable max-statements
"max-statements": "off",
// Enforce separate lines for multiline comments
"multiline-comment-style": ["error", "separate-lines"],
// Allow use of "continue"
"no-continue": "off",
// Allow magic numbers
"no-magic-numbers": "off",
// Disable no-shadow because of upstream bug
// Allow negated conditions
"no-negated-condition": "off",
// https://github.com/typescript-eslint/tslint-to-eslint-config/issues/856
"no-shadow": "off",
// Force separate var declaration
"one-var": ["error", "never"],
// Disable sorting rules
"sort-imports": "off",
"sort-keys": "off",
"sort-vars": "off",
},
};