32 lines
831 B
JavaScript
32 lines
831 B
JavaScript
|
|
import globals from "globals";
|
||
|
|
import pluginJs from "@eslint/js";
|
||
|
|
import tsPlugin from "@typescript-eslint/eslint-plugin";
|
||
|
|
import tsParser from "@typescript-eslint/parser";
|
||
|
|
|
||
|
|
/** @type {import('eslint').Linter.Config[]} */
|
||
|
|
export default [
|
||
|
|
{
|
||
|
|
...pluginJs.configs.recommended,
|
||
|
|
files: ["src/**/*.{js,ts}"],
|
||
|
|
languageOptions: {
|
||
|
|
sourceType: "module",
|
||
|
|
globals: globals.node,
|
||
|
|
parser: tsParser,
|
||
|
|
parserOptions: {
|
||
|
|
project: "./tsconfig.json"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
plugins: {
|
||
|
|
"@typescript-eslint": tsPlugin
|
||
|
|
},
|
||
|
|
rules: {
|
||
|
|
...tsPlugin.configs.recommended.rules,
|
||
|
|
'@typescript-eslint/no-explicit-any': "off",
|
||
|
|
"@typescript-eslint/no-unused-vars": [
|
||
|
|
"error",
|
||
|
|
{args: "none", destructuredArrayIgnorePattern: "^_d?$", caughtErrors: "none"},
|
||
|
|
],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
];
|