Skip to content

Commit 20c9859

Browse files
Update dependency eslint-plugin-unicorn to v42 (#364)
1 parent d156896 commit 20c9859

File tree

5 files changed

+44
-17
lines changed

5 files changed

+44
-17
lines changed

.changeset/plenty-radios-cough.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
'@cloudfour/eslint-plugin': major
3+
---
4+
5+
Update dependency `eslint-plugin-unicorn` to `v42`
6+
7+
**New Rules**
8+
9+
- [`@cloudfour/unicorn/no-unreadable-iife`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v42.0.0/docs/rules/no-unreadable-iife.md)
10+
- [`@cloudfour/unicorn/no-useless-switch-case`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v42.0.0/docs/rules/no-useless-switch-case.md)
11+
- [`@cloudfour/unicorn/prefer-modern-math-apis`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v42.0.0/docs/rules/prefer-modern-math-apis.md)
12+
- [`@cloudfour/unicorn/prefer-native-coercion-functions`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v42.0.0/docs/rules/prefer-native-coercion-functions.md)
13+
14+
**Newly Enabled Rules**
15+
16+
- [`@cloudfour/unicorn/no-unreadable-iife`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v42.0.0/docs/rules/no-unreadable-iife.md)
17+
- [`@cloudfour/unicorn/no-useless-switch-case`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v42.0.0/docs/rules/no-useless-switch-case.md)
18+
- [`@cloudfour/unicorn/prefer-modern-math-apis`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v42.0.0/docs/rules/prefer-modern-math-apis.md)
19+
- [`@cloudfour/unicorn/prefer-native-coercion-functions`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v42.0.0/docs/rules/prefer-native-coercion-functions.md)
20+
21+
**Reconfigured Rules**
22+
23+
- [`@cloudfour/unicorn/template-indent`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v42.0.0/docs/rules/template-indent.md)
24+
```diff
25+
- "warn"
26+
+ "error"
27+
```

fixtures/eslint/lib/linter/linter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ class Linter {
12231223
const enabledEnvs = Object.keys(resolvedEnvConfig)
12241224
.filter((envName) => resolvedEnvConfig[envName])
12251225
.map((envName) => getEnv(slots, envName))
1226-
.filter((env) => env);
1226+
.filter(Boolean);
12271227

12281228
const parserOptions = resolveParserOptions(
12291229
parserName,

fixtures/eslint/lib/linter/node-event-generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function getPossibleTypes(parsedSelector) {
5555
case 'compound': {
5656
const typesForComponents = parsedSelector.selectors
5757
.map(getPossibleTypes)
58-
.filter((typesForComponent) => typesForComponent);
58+
.filter(Boolean);
5959

6060
// If all of the components could match any type, then the compound could also match any type.
6161
if (typesForComponents.length === 0) {

package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"eslint-plugin-jsdoc": "^39.0.0",
3838
"eslint-plugin-n": "^15.0.1",
3939
"eslint-plugin-promise": "^6.0.0",
40-
"eslint-plugin-unicorn": "^41.0.0"
40+
"eslint-plugin-unicorn": "^42.0.0"
4141
},
4242
"peerDependencies": {
4343
"eslint": "^8.0.0"

0 commit comments

Comments
 (0)