Skip to content

Commit e164acd

Browse files
committed
fix: include no-debug in exported rules
1 parent 022368a commit e164acd

File tree

4 files changed

+27
-16
lines changed

4 files changed

+27
-16
lines changed

lib/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
const rules = {
44
'await-async-query': require('./rules/await-async-query'),
55
'no-await-sync-query': require('./rules/no-await-sync-query'),
6+
'no-debug': require('./rules/no-debug'),
67
};
78

89
const recommendedRules = {

tests/__snapshots__/index.js.snap renamed to tests/__snapshots__/index.test.js.snap

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`shareable configs should export proper "angular" config 1`] = `
3+
exports[`should export proper "angular" config 1`] = `
44
Object {
55
"plugins": Array [
66
"testing-library",
@@ -13,7 +13,7 @@ Object {
1313
}
1414
`;
1515

16-
exports[`shareable configs should export proper "react" config 1`] = `
16+
exports[`should export proper "react" config 1`] = `
1717
Object {
1818
"plugins": Array [
1919
"testing-library",
@@ -26,7 +26,7 @@ Object {
2626
}
2727
`;
2828

29-
exports[`shareable configs should export proper "recommended" config 1`] = `
29+
exports[`should export proper "recommended" config 1`] = `
3030
Object {
3131
"plugins": Array [
3232
"testing-library",
@@ -38,7 +38,7 @@ Object {
3838
}
3939
`;
4040

41-
exports[`shareable configs should export proper "vue" config 1`] = `
41+
exports[`should export proper "vue" config 1`] = `
4242
Object {
4343
"plugins": Array [
4444
"testing-library",
@@ -50,3 +50,11 @@ Object {
5050
},
5151
}
5252
`;
53+
54+
exports[`should export proper rules 1`] = `
55+
Array [
56+
"await-async-query",
57+
"no-await-sync-query",
58+
"no-debug",
59+
]
60+
`;

tests/index.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/index.test.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
'use strict';
2+
3+
const { configs, rules } = require('../lib');
4+
5+
it('should export proper rules', () => {
6+
expect(Object.keys(rules)).toMatchSnapshot();
7+
});
8+
9+
it.each(['recommended', 'angular', 'react', 'vue'])(
10+
'should export proper "%s" config',
11+
configName => {
12+
expect(configs[configName]).toMatchSnapshot();
13+
}
14+
);

0 commit comments

Comments
 (0)