Skip to content

Commit

Permalink
made all d.ts rules work for all ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
Mephisto5558 committed Dec 5, 2024
1 parent 06278b6 commit 2b20023
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
5 changes: 3 additions & 2 deletions configs/@typescript-eslint.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@
"warn",
{
"ignore": [
1,
-1
-1,
0,
1
],
"ignoreDefaultValues": true,
"ignoreClassFieldInitialValues": true,
Expand Down
2 changes: 1 addition & 1 deletion configs/eslint.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-loop-func": "off", // Handled by `@typescript-eslint/no-loop-func`
"no-magic-numbers": "off", // Handled by `custom/no-magic-numbers`
"no-magic-numbers": "off", // Handled by `@typescript-eslint/no-magic-numbers`
"no-multi-assign": "error",
"no-multi-str": "error",
"no-negated-condition": "off", // Handled by `unicorn/no-negated-condition` because unicorn has an autofix option for it
Expand Down
6 changes: 0 additions & 6 deletions configs/sonarjs-html.jsonc
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
"alt-text": "warn",
"anchor-has-content": "warn", // Seems to not work
"anchor-is-valid": "error",
"label-has-associated-control": "warn",
"media-has-caption": "warn",
"mouse-events-a11y": "warn",
"object-alt-content": "warn",
"table-header": "warn",
"table-header-reference": "warn"
Expand Down
6 changes: 3 additions & 3 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ export default [
}
},
{
name: 'eslint-config:d.ts',
files: ['**/*.d.ts'],
name: 'eslint-config:ts',
files: ['**/*.ts'],
rules: {
// D.TS-Only rules
// TS-Only rules
'no-undef': 'off',
'no-shadow': 'off',
'no-use-before-define': 'off',
Expand Down

0 comments on commit 2b20023

Please sign in to comment.