You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/prefer-at.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Prefer `.at()` method for index access and `String#charAt()`
2
2
3
-
🚫 This rule is _disabled_ in the ✅ `recommended`[config](https://github.com/sindresorhus/eslint-plugin-unicorn#preset-configs).
3
+
💼 This rule is enabled in the ✅ `recommended`[config](https://github.com/sindresorhus/eslint-plugin-unicorn#preset-configs).
4
4
5
5
🔧💡 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) and manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
Copy file name to clipboardExpand all lines: readme.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,7 @@ If you don't use the preset, ensure you use the same `env` and `parserOptions` c
115
115
|[prefer-array-flat-map](docs/rules/prefer-array-flat-map.md)| Prefer `.flatMap(…)` over `.map(…).flat()`. | ✅ | 🔧 ||
116
116
|[prefer-array-index-of](docs/rules/prefer-array-index-of.md)| Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item. | ✅ | 🔧 | 💡 |
117
117
|[prefer-array-some](docs/rules/prefer-array-some.md)| Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast}(…)`. | ✅ | 🔧 | 💡 |
118
-
|[prefer-at](docs/rules/prefer-at.md)| Prefer `.at()` method for index access and `String#charAt()`. || 🔧 | 💡 |
118
+
|[prefer-at](docs/rules/prefer-at.md)| Prefer `.at()` method for index access and `String#charAt()`. |✅| 🔧 | 💡 |
119
119
|[prefer-blob-reading-methods](docs/rules/prefer-blob-reading-methods.md)| Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`. | ✅ |||
120
120
|[prefer-code-point](docs/rules/prefer-code-point.md)| Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`. | ✅ || 💡 |
121
121
|[prefer-date-now](docs/rules/prefer-date-now.md)| Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch. | ✅ | 🔧 ||
@@ -124,7 +124,7 @@ If you don't use the preset, ensure you use the same `env` and `parserOptions` c
124
124
|[prefer-dom-node-dataset](docs/rules/prefer-dom-node-dataset.md)| Prefer using `.dataset` on DOM elements over calling attribute methods. | ✅ | 🔧 ||
|[prefer-includes](docs/rules/prefer-includes.md)| Prefer `.includes()` over `.indexOf()` and `Array#some()` when checking for existence or non-existence. | ✅ | 🔧 | 💡 |
130
130
|[prefer-json-parse-buffer](docs/rules/prefer-json-parse-buffer.md)| Prefer reading a JSON file as a buffer. || 🔧 ||
@@ -147,7 +147,7 @@ If you don't use the preset, ensure you use the same `env` and `parserOptions` c
147
147
|[prefer-set-has](docs/rules/prefer-set-has.md)| Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence. | ✅ | 🔧 | 💡 |
148
148
|[prefer-set-size](docs/rules/prefer-set-size.md)| Prefer using `Set#size` instead of `Array#length`. | ✅ | 🔧 ||
149
149
|[prefer-spread](docs/rules/prefer-spread.md)| Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`. | ✅ | 🔧 | 💡 |
150
-
|[prefer-string-replace-all](docs/rules/prefer-string-replace-all.md)| Prefer `String#replaceAll()` over regex searches with the global flag. || 🔧 ||
150
+
|[prefer-string-replace-all](docs/rules/prefer-string-replace-all.md)| Prefer `String#replaceAll()` over regex searches with the global flag. |✅| 🔧 ||
151
151
|[prefer-string-slice](docs/rules/prefer-string-slice.md)| Prefer `String#slice()` over `String#substr()` and `String#substring()`. | ✅ | 🔧 ||
0 commit comments