mirror of
https://github.com/LewdLeah/Auto-Cards.git
synced 2025-07-08 06:30:27 -04:00
updated workspace
Signed-off-by: Magic <magicoflolis@tuta.io>
This commit is contained in:
parent
1800cafee7
commit
e9d2900142
15 changed files with 908 additions and 12 deletions
|
@ -9,6 +9,8 @@ export default tseslint.config([
|
|||
tseslint.configs.recommended,
|
||||
eslintConfigPrettier,
|
||||
{
|
||||
files: ["**/*.js"],
|
||||
ignores: ["utils/**"],
|
||||
rules: {
|
||||
"no-undef": "off",
|
||||
"no-var": "error",
|
||||
|
@ -18,18 +20,23 @@ export default tseslint.config([
|
|||
"prefer-regex-literals": ["error", { disallowRedundantWrapping: true }],
|
||||
quotes: ["error", "double", { avoidEscape: true, allowTemplateLiterals: false }],
|
||||
"space-before-blocks": ["error", "always"]
|
||||
}
|
||||
},
|
||||
{
|
||||
files: ["context.js", "input.js", "library.js", "output.js"],
|
||||
},
|
||||
languageOptions: {
|
||||
ecmaVersion: "latest",
|
||||
sourceType: "script",
|
||||
globals: globals.es2024
|
||||
globals: globals.es2022
|
||||
}
|
||||
},
|
||||
{
|
||||
files: ["tools/*.js", "utils/**/*.js"],
|
||||
files: ["utils/**/*.js"],
|
||||
rules: {
|
||||
"no-var": "error",
|
||||
"prefer-const": ["error", { destructuring: "all" }],
|
||||
"prefer-promise-reject-errors": "error",
|
||||
"prefer-regex-literals": ["error", { disallowRedundantWrapping: true }],
|
||||
quotes: ["error", "double", { avoidEscape: true, allowTemplateLiterals: false }],
|
||||
"space-before-blocks": ["error", "always"]
|
||||
},
|
||||
languageOptions: {
|
||||
ecmaVersion: "latest",
|
||||
sourceType: "module",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue