-
Notifications
You must be signed in to change notification settings - Fork 20
/
.eslintrc.js
50 lines (49 loc) · 1.26 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
47
48
49
50
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
extends: ["@toruslabs/vue"],
parser: "vue-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
sourceType: "module",
ecmaVersion: 2022,
project: "./tsconfig.json",
},
ignorePatterns: ["*.cjs", "*.config.js", "vite.config.ts", "importLocales.js", "__generated__", ".eslintrc.js", "crisp.js", "tests/setup.js"],
rules: {
"@typescript-eslint/no-explicit-any": 1,
camelcase: 0,
"no-new": 0,
"vue/multi-word-component-names": 0,
"@typescript-eslint/naming-convention": [
"error",
{
selector: "typeLike",
format: ["camelCase", "UPPER_CASE", "PascalCase"],
},
],
quotes: 0,
"@typescript-eslint/quotes": [2, "double"],
"no-console": 2,
"@typescript-eslint/comma-dangle": 0,
"mocha/no-global-tests": ["off"],
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"import/extensions": 0,
"prettier/prettier": [
2,
{
singleQuote: false,
printWidth: 150,
semi: true,
trailingComma: "es5",
},
],
},
settings: {
"import/resolver": {
typescript: {
project: "./tsconfig.json",
},
},
},
};