purgecode
Version:
A safe, smart code-cleaning utility for JavaScript/TypeScript projects
35 lines (33 loc) • 826 B
JavaScript
import js from "@eslint/js";
import tseslint from "@typescript-eslint/eslint-plugin";
import tsparser from "@typescript-eslint/parser";
export default [
js.configs.recommended,
{
files: ["src/**/*.ts"],
languageOptions: {
parser: tsparser,
ecmaVersion: 2022,
sourceType: "module",
globals: {
console: "readonly",
process: "readonly",
},
},
plugins: {
"@typescript-eslint": tseslint,
},
rules: {
...tseslint.configs.recommended.rules,
"@typescript-eslint/no-unused-vars": [
"warn",
{ argsIgnorePattern: "^_" },
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "warn",
},
},
{
ignores: ["lib/", "dist/", "node_modules/", "*.js"],
},
];