mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +00:00
30 lines
852 B
JavaScript
30 lines
852 B
JavaScript
import { defineConfig } from "eslint/config";
|
|
import tsPlugin from "@typescript-eslint/eslint-plugin";
|
|
import tsParser from "@typescript-eslint/parser";
|
|
|
|
export default defineConfig([
|
|
{
|
|
ignores: ["docs/.vitepress/**", ".output/**", ".nuxt/**", "dist/**"],
|
|
},
|
|
{
|
|
files: ["server/lib/**/*.ts", "server/routes/**/*.ts", "server/tasks/**/*.ts", "tests/**/*.ts"],
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
parserOptions: {
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
},
|
|
},
|
|
plugins: {
|
|
"@typescript-eslint": tsPlugin,
|
|
},
|
|
rules: {
|
|
...tsPlugin.configs.recommended.rules,
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
|
|
],
|
|
"@typescript-eslint/explicit-function-return-type": "warn",
|
|
},
|
|
},
|
|
]);
|