Skip to content

Commit 40dbeac

Browse files
committed
[Tests] ensure all entry points parse
1 parent 8e6363c commit 40dbeac

File tree

4 files changed

+35
-0
lines changed

4 files changed

+35
-0
lines changed

packages/eslint-config-airbnb-base/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
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 numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
});

packages/eslint-config-airbnb/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
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 numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
});

0 commit comments

Comments
 (0)