File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ export function unicorn(): FlatESLintConfigItem[] {
2121 'unicorn/no-new-buffer' : 'error' ,
2222 // Lowercase number formatting for octal, hex, binary (0x1'error' instead of 0X1'error')
2323 'unicorn/number-literal-case' : 'error' ,
24+ // textContent instead of innerText
25+ 'unicorn/prefer-dom-node-text-content' : 'error' ,
2426 // includes over indexOf when checking for existence
2527 'unicorn/prefer-includes' : 'error' ,
2628 // Prefer using the node: protocol
@@ -29,8 +31,6 @@ export function unicorn(): FlatESLintConfigItem[] {
2931 'unicorn/prefer-number-properties' : 'error' ,
3032 // String methods startsWith/endsWith instead of more complicated stuff
3133 'unicorn/prefer-string-starts-ends-with' : 'error' ,
32- // textContent instead of innerText
33- 'unicorn/prefer-text-content' : 'error' ,
3434 // Enforce throwing type error when throwing error while checking typeof
3535 'unicorn/prefer-type-error' : 'error' ,
3636 // Use new when throwing error
You can’t perform that action at this time.
0 commit comments