38 lines
772 B
JavaScript
38 lines
772 B
JavaScript
import js from "@eslint/js";
|
|
import globals from "globals";
|
|
import tsParser from "@typescript-eslint/parser";
|
|
import tsPlugin from "@typescript-eslint/eslint-plugin";
|
|
|
|
export default [
|
|
{
|
|
ignores: ["dist/**", "node_modules/**"]
|
|
},
|
|
js.configs.recommended,
|
|
{
|
|
files: ["**/*.{ts,tsx}"],
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
parserOptions: {
|
|
ecmaVersion: "latest",
|
|
sourceType: "module"
|
|
},
|
|
globals: {
|
|
...globals.node
|
|
}
|
|
},
|
|
plugins: {
|
|
"@typescript-eslint": tsPlugin
|
|
},
|
|
rules: {
|
|
...tsPlugin.configs.recommended.rules,
|
|
"no-undef": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
argsIgnorePattern: "^_"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
];
|