mirror of
https://github.com/LewdLeah/Auto-Cards.git
synced 2025-07-06 13:40:26 -04:00
Delete eslint.config.js
This commit is contained in:
parent
769a167a09
commit
3a94bc3cdb
1 changed files with 0 additions and 42 deletions
|
@ -1,42 +0,0 @@
|
|||
// @ts-check
|
||||
import globals from "globals";
|
||||
import eslint from "@eslint/js";
|
||||
import eslintConfigPrettier from "eslint-config-prettier/flat";
|
||||
import tseslint from "typescript-eslint";
|
||||
|
||||
export default tseslint.config([
|
||||
eslint.configs.recommended,
|
||||
tseslint.configs.recommended,
|
||||
eslintConfigPrettier,
|
||||
{
|
||||
rules: {
|
||||
"no-undef": "off",
|
||||
"no-var": "error",
|
||||
"no-useless-escape": "off",
|
||||
"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"]
|
||||
}
|
||||
},
|
||||
{
|
||||
files: ["context.js", "input.js", "library.js", "output.js"],
|
||||
languageOptions: {
|
||||
ecmaVersion: "latest",
|
||||
sourceType: "script",
|
||||
globals: globals.es2024
|
||||
}
|
||||
},
|
||||
{
|
||||
files: ["tools/*.js", "utils/**/*.js"],
|
||||
languageOptions: {
|
||||
ecmaVersion: "latest",
|
||||
sourceType: "module",
|
||||
globals: {
|
||||
...globals.es2024,
|
||||
...globals.node
|
||||
}
|
||||
}
|
||||
}
|
||||
]);
|
Loading…
Add table
Add a link
Reference in a new issue