Skip to content

Commit 44b4899

Browse files
committed
chore: standardize exports
1 parent 1e1320e commit 44b4899

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/rules/files.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
The above copyright notice and this permission notice shall be
99
included in all copies or substantial portions of this Source Code Form.
1010
*/
11-
const files = (props, { filesReadme, filesLicense }) => {
11+
const process = (props, { filesReadme, filesLicense }) => {
1212
const filesIndex = props.findIndex((prop) => prop.key.value === 'files');
1313

1414
if (filesIndex >= 0) {
@@ -39,4 +39,4 @@ const files = (props, { filesReadme, filesLicense }) => {
3939
return props;
4040
};
4141

42-
module.exports = { files };
42+
module.exports = { files: process };

lib/rules/scripts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
The above copyright notice and this permission notice shall be
99
included in all copies or substantial portions of this Source Code Form.
1010
*/
11-
const sort = (props) => {
11+
const process = (props) => {
1212
const scriptsIndex = props.findIndex((prop) => prop.key.value === 'scripts');
1313

1414
if (scriptsIndex >= 0) {
@@ -23,4 +23,4 @@ const sort = (props) => {
2323
return props;
2424
};
2525

26-
module.exports = { scripts: sort };
26+
module.exports = { scripts: process };

0 commit comments

Comments
 (0)