File tree Expand file tree Collapse file tree 5 files changed +44
-17
lines changed
fixtures/eslint/lib/linter Expand file tree Collapse file tree 5 files changed +44
-17
lines changed Original file line number Diff line number Diff line change 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+ ```
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments