Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(unicorn): rename prefer-text-content -> `prefer-dom-node-text-c… #271

Merged
merged 1 commit into from
Oct 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/configs/unicorn.ts
Original file line number Diff line number Diff line change
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