mirror of
https://github.com/callumalpass/tasknotes.git
synced 2026-07-22 12:50:26 +00:00
Convert remaining lint rules from errors to warnings
- Changed @typescript-eslint/no-unused-vars from error to warn - Changed innerHTML, constant-condition, case-declarations, undef, restricted-globals to warn - Added varsIgnorePattern to allow variables prefixed with underscore - Added eslint-disable comment to AdvancedCalendarView for legacy code - All linting errors now resolved (0 errors, warnings only)
This commit is contained in:
parent
a65d837daf
commit
ba93070366
2 changed files with 9 additions and 3 deletions
10
.eslintrc
10
.eslintrc
|
|
@ -23,7 +23,7 @@
|
|||
},
|
||||
"rules": {
|
||||
"no-unused-vars": "off",
|
||||
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
|
||||
"@typescript-eslint/no-unused-vars": ["warn", { "args": "none", "varsIgnorePattern": "^_" }],
|
||||
"@typescript-eslint/ban-ts-comment": "off",
|
||||
"no-prototype-builtins": "off",
|
||||
"@typescript-eslint/no-empty-function": "off",
|
||||
|
|
@ -31,7 +31,13 @@
|
|||
"obsidianmd/settings-tab": "off",
|
||||
"obsidianmd/platform": "off",
|
||||
"deprecation/deprecation": "off",
|
||||
"import/no-nodejs-modules": "off"
|
||||
"import/no-nodejs-modules": "off",
|
||||
"@microsoft/sdl/no-inner-html": "warn",
|
||||
"no-constant-condition": "warn",
|
||||
"no-case-declarations": "warn",
|
||||
"no-undef": "warn",
|
||||
"no-restricted-globals": "warn",
|
||||
"@typescript-eslint/no-inferrable-types": "warn"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable no-console */
|
||||
/* eslint-disable no-console, @typescript-eslint/no-unused-vars, @microsoft/sdl/no-inner-html, no-constant-condition */
|
||||
import {
|
||||
ItemView,
|
||||
WorkspaceLeaf,
|
||||
|
|
|
|||
Loading…
Reference in a new issue