Skip to content

Commit

Permalink
fix(unicorn): rename prefer-text-content -> `prefer-dom-node-text-c…
Browse files Browse the repository at this point in the history
  • Loading branch information
coderwyd committed Oct 7, 2023
1 parent ff4ae7e commit b3c4d31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/configs/unicorn.ts
Expand Up @@ -21,6 +21,8 @@ export function unicorn(): FlatESLintConfigItem[] {
'unicorn/no-new-buffer': 'error',
// Lowercase number formatting for octal, hex, binary (0x1'error' instead of 0X1'error')
'unicorn/number-literal-case': 'error',
// textContent instead of innerText
'unicorn/prefer-dom-node-text-content': 'error',
// includes over indexOf when checking for existence
'unicorn/prefer-includes': 'error',
// Prefer using the node: protocol
Expand All @@ -29,8 +31,6 @@ export function unicorn(): FlatESLintConfigItem[] {
'unicorn/prefer-number-properties': 'error',
// String methods startsWith/endsWith instead of more complicated stuff
'unicorn/prefer-string-starts-ends-with': 'error',
// textContent instead of innerText
'unicorn/prefer-text-content': 'error',
// Enforce throwing type error when throwing error while checking typeof
'unicorn/prefer-type-error': 'error',
// Use new when throwing error
Expand Down

0 comments on commit b3c4d31

Please sign in to comment.