24 lines
652 B
JavaScript
24 lines
652 B
JavaScript
/** @type {import('eslint').Linter.Config} */
|
|
module.exports = {
|
|
root: true,
|
|
env: { node: true, es2022: true },
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: { ecmaVersion: 2022, sourceType: "module", project: true },
|
|
plugins: ["@typescript-eslint"],
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"prettier",
|
|
],
|
|
ignorePatterns: ["dist/", "node_modules/", "*.cjs"],
|
|
overrides: [
|
|
{
|
|
files: ["**/*.ts"],
|
|
rules: {
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
|
|
},
|
|
},
|
|
],
|
|
};
|