mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-28 19:26:09 +01:00
🚨
This commit is contained in:
parent
7fdd50737c
commit
8c536058c0
11 changed files with 13 additions and 17 deletions
|
|
@ -2,9 +2,9 @@ import typescriptEslint from "@typescript-eslint/eslint-plugin";
|
|||
import globals from "globals";
|
||||
import tsParser from "@typescript-eslint/parser";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import {fileURLToPath} from "node:url";
|
||||
import js from "@eslint/js";
|
||||
import { FlatCompat } from "@eslint/eslintrc";
|
||||
import {FlatCompat} from "@eslint/eslintrc";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
|
@ -39,11 +39,10 @@ export default [{
|
|||
|
||||
rules: {
|
||||
semi: [2, "always"],
|
||||
|
||||
quotes: [2, "double", {
|
||||
avoidEscape: true,
|
||||
}],
|
||||
|
||||
"@typescript-eslint/no-unused-vars": ["warn", {caughtErrors: "none"}],
|
||||
"no-async-promise-executor": "off",
|
||||
"no-prototype-builtins": "off",
|
||||
"no-useless-escape": "off",
|
||||
|
|
@ -54,6 +53,5 @@ export default [{
|
|||
"@typescript-eslint/explicit-module-boundary-types": "off",
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
"@typescript-eslint/no-require-imports": "off",
|
||||
"@typescript-eslint/no-unused-vars": "off",
|
||||
},
|
||||
}];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue