43 lines
1.0 KiB
JavaScript
43 lines
1.0 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
jest: true,
|
|
browser: true,
|
|
},
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
sourceType: "module",
|
|
requireConfigFile: false,
|
|
ecmaVersion: 2021,
|
|
},
|
|
plugins: ["prettier"],
|
|
extends: [
|
|
"prettier/prettier",
|
|
"eslint:recommended",
|
|
"plugin:prettier/recommended",
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
],
|
|
rules: {
|
|
semi: [2, "never"],
|
|
"prettier/prettier": ["warn", { semi: false, trailingComma: "es5" }],
|
|
"import/no-named-as-default": "off",
|
|
"no-undef": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
args: "all",
|
|
argsIgnorePattern: "^_",
|
|
caughtErrors: "all",
|
|
caughtErrorsIgnorePattern: "^_",
|
|
destructuredArrayIgnorePattern: "^_",
|
|
varsIgnorePattern: "^_",
|
|
ignoreRestSiblings: true,
|
|
},
|
|
],
|
|
},
|
|
}
|