chore: move tsrules to the ts override to fix json lint errors

This commit is contained in:
Miodec 2024-02-13 13:03:20 +01:00
parent d735578189
commit 145065e092

View file

@ -25,11 +25,7 @@
"plugin:json/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
// "plugin:@typescript-eslint/recommended-requiring-type-checking"
"plugin:@typescript-eslint/strict"
"prettier"
],
"plugins": ["json", "require-path-exists", "@typescript-eslint"],
"rules": {
@ -60,11 +56,16 @@
{
// enable the rule specifically for TypeScript files
"files": ["*.ts", "*.tsx"],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/strict"
// "plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": ["error"],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-empty-function": "warn",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^(_|e|event)", "varsIgnorePattern": "^_" }
@ -92,7 +93,7 @@
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module",
"project": ["**/tsconfig.json"]
"project": "**/tsconfig.json"
}
},
{