36 lines
685 B
JavaScript
36 lines
685 B
JavaScript
// @ts-check
|
|
import globals from "globals";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
export default tseslint.config(
|
|
{
|
|
ignores: ["**/node_modules/", "**/main.js"],
|
|
},
|
|
...tseslint.configs.recommended,
|
|
{
|
|
plugins: {
|
|
"@typescript-eslint": tseslint.plugin,
|
|
},
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.node,
|
|
},
|
|
parser: tseslint.parser,
|
|
ecmaVersion: 5,
|
|
sourceType: "module",
|
|
},
|
|
rules: {
|
|
"no-unused-vars": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
args: "none",
|
|
},
|
|
],
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
"no-prototype-builtins": "off",
|
|
"@typescript-eslint/no-empty-function": "off",
|
|
},
|
|
},
|
|
);
|