File tree Expand file tree Collapse file tree 4 files changed +35
-0
lines changed
eslint-config-airbnb-base Expand file tree Collapse file tree 4 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 66 "scripts" : {
77 "prelint" : " editorconfig-tools check * rules/* test/*" ,
88 "lint" : " eslint --report-unused-disable-directives ." ,
9+ "pretests-only" : " node ./test/requires" ,
910 "tests-only" : " babel-tape-runner ./test/test-*.js" ,
1011 "prepublish" : " (in-install || eslint-find-rules --unused) && (not-in-publish || npm test) && safe-publish-latest" ,
1112 "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 66 "scripts" : {
77 "prelint" : " editorconfig-tools check * rules/* test/*" ,
88 "lint" : " eslint ." ,
9+ "pretests-only" : " node ./test/requires" ,
910 "tests-only" : " babel-tape-runner ./test/test-*.js" ,
1011 "prepublish" : " (in-install || eslint-find-rules --unused) && (not-in-publish || npm test) && safe-publish-latest" ,
1112 "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