Skip to content

Commit 0d7c0b4

Browse files
committed
chore(unicorn): rename prefer-text-content -> prefer-dom-node-text-content
1 parent 1bd03cd commit 0d7c0b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/configs/unicorn.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)