File tree 5 files changed +10
-9
lines changed 5 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ module.exports = {
38
38
'ember-concurrency/no-perform-without-catch' : 'warn' ,
39
39
'ember-concurrency/require-task-name-suffix' : 'error' ,
40
40
41
+ 'unicorn/explicit-length-check' : [ 'error' , { 'non-zero' : 'not-equal' } ] ,
41
42
// disabled because we need `null` since JSON has no `undefined`
42
43
'unicorn/no-null' : 'off' ,
43
44
// disabled because this rule conflicts with prettier
@@ -84,7 +85,7 @@ module.exports = {
84
85
files : [ 'mirage/**/*.js' ] ,
85
86
rules : {
86
87
// disabled because of different `.find()` meaning
87
- 'unicorn/no-fn-reference-in-iterator ' : 'off' ,
88
+ 'unicorn/no-array-callback-reference ' : 'off' ,
88
89
} ,
89
90
} ,
90
91
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export default class CrateVersionController extends Controller {
81
81
versions . push ( version . getProperties ( 'id' , 'num' ) ) ;
82
82
} ) ;
83
83
}
84
- if ( extra . length > 0 ) {
84
+ if ( extra . length !== 0 ) {
85
85
versions . push ( {
86
86
id : null ,
87
87
num : 'Other' ,
@@ -136,7 +136,7 @@ export default class CrateVersionController extends Controller {
136
136
// if we know about a successful docs.rs build, we'll return a link to that
137
137
if ( this . loadDocsBuildsTask . lastSuccessful ) {
138
138
let docsBuilds = this . loadDocsBuildsTask . lastSuccessful . value ;
139
- if ( docsBuilds . length > 0 && docsBuilds [ 0 ] . build_status === true ) {
139
+ if ( docsBuilds . length !== 0 && docsBuilds [ 0 ] . build_status === true ) {
140
140
return `https://docs.rs/${ this . crate . name } /${ this . currentVersion . num } ` ;
141
141
}
142
142
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export function summary(schema) {
9
9
let most_recently_downloaded = crates . sort ( ( a , b ) => b . recent_downloads - a . recent_downloads ) . slice ( 0 , 10 ) ;
10
10
11
11
let num_crates = crates . length ;
12
- // eslint-disable-next-line unicorn/no-reduce
12
+ // eslint-disable-next-line unicorn/no-array- reduce
13
13
let num_downloads = crates . models . reduce ( ( sum , crate ) => sum + crate . downloads , 0 ) ;
14
14
15
15
let popular_categories = schema . categories
Original file line number Diff line number Diff line change 111
111
"eslint-plugin-ember-concurrency" : " 0.2.1" ,
112
112
"eslint-plugin-import-helpers" : " 1.1.0" ,
113
113
"eslint-plugin-prettier" : " 3.3.0" ,
114
- "eslint-plugin-unicorn" : " 24 .0.0" ,
114
+ "eslint-plugin-unicorn" : " 25 .0.0" ,
115
115
"loader.js" : " 4.7.0" ,
116
116
"normalize.css" : " 8.0.1" ,
117
117
"nyc" : " 15.1.0" ,
Original file line number Diff line number Diff line change 7390
7390
dependencies:
7391
7391
prettier-linter-helpers "^1.0.0"
7392
7392
7393
- eslint-plugin-unicorn@24 .0.0:
7394
- version "24 .0.0"
7395
- resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-24 .0.0.tgz#08017ccd7ac704777d459cff6e13a35f54cbcab1 "
7396
- integrity sha512-NfLjIZas/ZUwc3S+pUtbTRqgCkODxPEkJBJ5ZR8wIu90BmX4jmXp10hoOZMScR2CR1NYTtrx0OX4BQvBnbzZzA ==
7393
+ eslint-plugin-unicorn@25 .0.0:
7394
+ version "25 .0.0"
7395
+ resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-25 .0.0.tgz#b5718381ac615f2bcf7814e4acf0aac78b11a10f "
7396
+ integrity sha512-RuhPUrsKuRj0YGz8lMuh5Z5DJoC/hmUR6omvlquLlY6SYY+oZXMFyp83ckpqLMhbafqUx+JttWOPOjfP4W9Y+Q ==
7397
7397
dependencies:
7398
7398
ci-info "^2.0.0"
7399
7399
clean-regexp "^1.0.0"
You can’t perform that action at this time.
0 commit comments