33 lines
728 B
JavaScript
33 lines
728 B
JavaScript
import eslint from "@eslint/js";
|
|
import tseslint from "@typescript-eslint/eslint-plugin";
|
|
import tsparser from "@typescript-eslint/parser";
|
|
import globals from "globals";
|
|
|
|
export default [
|
|
eslint.configs.recommended,
|
|
{
|
|
files: ["src/**/*.ts"],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.node,
|
|
},
|
|
parser: tsparser,
|
|
parserOptions: {
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
},
|
|
},
|
|
plugins: {
|
|
"@typescript-eslint": tseslint,
|
|
},
|
|
rules: {
|
|
...tseslint.configs.recommended.rules,
|
|
"no-unused-vars": "off",
|
|
"@typescript-eslint/no-unused-vars": "warn",
|
|
},
|
|
},
|
|
{
|
|
ignores: ["dist/**", "lib/**", "node_modules/**"],
|
|
},
|
|
];
|