File tree 3 files changed +11
-5
lines changed
3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 11
11
self/report-message-format :
12
12
- error
13
13
- ' ^[^a-z].*\.$'
14
+ node/no-unpublished-require :
15
+ - error
16
+ - allowModules : ['espree', 'esutils']
Original file line number Diff line number Diff line change 5
5
6
6
'use strict' ;
7
7
8
+ /* eslint max-len: ["error", 128, { "ignoreComments": true }]*/
9
+
8
10
// ------------------------------------------------------------------------------
9
11
// Requirements
10
12
// ------------------------------------------------------------------------------
@@ -534,12 +536,12 @@ module.exports = {
534
536
const comment = node . value . trim ( ) ;
535
537
536
538
return (
537
- node . type === 'Line' && comment . indexOf ( 'eslint-' ) === 0 ||
538
- node . type === 'Block' && (
539
+ ( node . type === 'Line' && comment . indexOf ( 'eslint-' ) === 0 ) ||
540
+ ( node . type === 'Block' && (
539
541
comment . indexOf ( 'global ' ) === 0 ||
540
542
comment . indexOf ( 'eslint ' ) === 0 ||
541
543
comment . indexOf ( 'eslint-' ) === 0
542
- )
544
+ ) )
543
545
) ;
544
546
} ,
545
547
@@ -1282,8 +1284,8 @@ module.exports = {
1282
1284
const MINUS_TOKENS = new Set ( [ '-' , '--' ] ) ;
1283
1285
1284
1286
return ! (
1285
- PLUS_TOKENS . has ( leftToken . value ) && PLUS_TOKENS . has ( rightToken . value ) ||
1286
- MINUS_TOKENS . has ( leftToken . value ) && MINUS_TOKENS . has ( rightToken . value )
1287
+ ( PLUS_TOKENS . has ( leftToken . value ) && PLUS_TOKENS . has ( rightToken . value ) ) ||
1288
+ ( MINUS_TOKENS . has ( leftToken . value ) && MINUS_TOKENS . has ( rightToken . value ) )
1287
1289
) ;
1288
1290
}
1289
1291
return true ;
Original file line number Diff line number Diff line change 37
37
"eslint-plugin-self" : " ^1.0.1" ,
38
38
"espree" : " ^3.4.3" ,
39
39
"estraverse" : " ^4.2.0" ,
40
+ "esutils" : " ^2.0.2" ,
40
41
"lodash" : " ^4.17.2" ,
41
42
"mocha" : " ^2.4.5"
42
43
},
You can’t perform that action at this time.
0 commit comments