+2
-2
lines changedFilter options
+2
-2
lines changed Original file line number Diff line number Diff line change
@@ -21,6 +21,8 @@ export function unicorn(): FlatESLintConfigItem[] {
21
21
'unicorn/no-new-buffer': 'error',
22
22
// Lowercase number formatting for octal, hex, binary (0x1'error' instead of 0X1'error')
23
23
'unicorn/number-literal-case': 'error',
24
+
// textContent instead of innerText
25
+
'unicorn/prefer-dom-node-text-content': 'error',
24
26
// includes over indexOf when checking for existence
25
27
'unicorn/prefer-includes': 'error',
26
28
// Prefer using the node: protocol
@@ -29,8 +31,6 @@ export function unicorn(): FlatESLintConfigItem[] {
29
31
'unicorn/prefer-number-properties': 'error',
30
32
// String methods startsWith/endsWith instead of more complicated stuff
31
33
'unicorn/prefer-string-starts-ends-with': 'error',
32
-
// textContent instead of innerText
33
-
'unicorn/prefer-text-content': 'error',
34
34
// Enforce throwing type error when throwing error while checking typeof
35
35
'unicorn/prefer-type-error': 'error',
36
36
// Use new when throwing error
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4