24 lines
608 B
JavaScript
24 lines
608 B
JavaScript
import eslintJs from "@eslint/js";
|
|||
|
|
import prettier from "eslint-config-prettier";
|
||
|
|
import globals from "globals";
|
||
|
|
import tseslint from "typescript-eslint";
|
||
|
|
|
||
|
|
export default tseslint.config(
|
||
|
|
{ ignores: ["dist/**", "node_modules/**", "coverage/**"] },
|
||
|
|
eslintJs.configs.recommended,
|
||
|
|
...tseslint.configs.recommended,
|
||
|
|
{
|
||
|
|
files: ["**/*.ts"],
|
||
|
|
languageOptions: {
|
||
|
|
globals: globals.node,
|
||
|
|
},
|
||
|
|
rules: {
|
||
|
|
"no-unused-vars": "off",
|
||
|
|
"@typescript-eslint/no-unused-vars": [
|
||
|
|
"error",
|
||
|
|
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
|
||
|
|
],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
prettier,
|
||
|
|
);
|