File tree 4 files changed +35
-0
lines changed
eslint-config-airbnb-base
4 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"prelint" : " editorconfig-tools check * rules/* test/*" ,
8
8
"lint" : " eslint --report-unused-disable-directives ." ,
9
+ "pretests-only" : " node ./test/requires" ,
9
10
"tests-only" : " babel-tape-runner ./test/test-*.js" ,
10
11
"prepublish" : " (in-install || eslint-find-rules --unused) && (not-in-publish || npm test) && safe-publish-latest" ,
11
12
"pretest" : " npm run --silent lint" ,
Original file line number Diff line number Diff line change
1
+ /* eslint
2
+ strict: 0,
3
+ global-require: 0,
4
+ */
5
+
6
+ 'use strict' ;
7
+
8
+ const test = require ( 'tape' ) ;
9
+
10
+ test ( 'all entry points parse' , ( t ) => {
11
+ t . doesNotThrow ( ( ) => require ( '..' ) , 'index does not throw' ) ;
12
+ t . doesNotThrow ( ( ) => require ( '../legacy' ) , 'legacy does not throw' ) ;
13
+ t . doesNotThrow ( ( ) => require ( '../whitespace' ) , 'whitespace does not throw' ) ;
14
+
15
+ t . end ( ) ;
16
+ } ) ;
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"prelint" : " editorconfig-tools check * rules/* test/*" ,
8
8
"lint" : " eslint ." ,
9
+ "pretests-only" : " node ./test/requires" ,
9
10
"tests-only" : " babel-tape-runner ./test/test-*.js" ,
10
11
"prepublish" : " (in-install || eslint-find-rules --unused) && (not-in-publish || npm test) && safe-publish-latest" ,
11
12
"pretest" : " npm run --silent lint" ,
Original file line number Diff line number Diff line change
1
+ /* eslint
2
+ strict: 0,
3
+ global-require: 0,
4
+ */
5
+
6
+ 'use strict' ;
7
+
8
+ const test = require ( 'tape' ) ;
9
+
10
+ test ( 'all entry points parse' , ( t ) => {
11
+ t . doesNotThrow ( ( ) => require ( '..' ) , 'index does not throw' ) ;
12
+ t . doesNotThrow ( ( ) => require ( '../base' ) , 'base does not throw' ) ;
13
+ t . doesNotThrow ( ( ) => require ( '../legacy' ) , 'legacy does not throw' ) ;
14
+ t . doesNotThrow ( ( ) => require ( '../whitespace' ) , 'whitespace does not throw' ) ;
15
+
16
+ t . end ( ) ;
17
+ } ) ;
You can’t perform that action at this time.
0 commit comments