Skip to content

Commit 2c4abc9

Browse files
committed
Adjust history section
1 parent e46d903 commit 2c4abc9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/rules/required-node/require-funding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ Enabling this rule will result in an error being generated if `funding` is missi
3535

3636
## History
3737

38-
* Introduced in version 1.0.0
38+
* Introduced in version 5.0.0

src/rules/require-funding.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const LintIssue = require('./../LintIssue');
1+
const LintIssue = require('../LintIssue');
22

33
const lintId = 'require-funding';
44
const nodeName = 'funding';
@@ -15,5 +15,5 @@ const lint = (packageJsonData, severity) => {
1515

1616
module.exports = {
1717
lint,
18-
ruleType
18+
ruleType,
1919
};

test/unit/rules/require-funding.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const ruleModule = require('./../../../src/rules/require-funding');
1+
const ruleModule = require('../../../src/rules/require-funding');
22

33
const {lint, ruleType} = ruleModule;
44

@@ -12,7 +12,7 @@ describe('require-funding Unit Tests', () => {
1212
describe('when package.json has node', () => {
1313
test('true should be returned', () => {
1414
const packageJsonData = {
15-
funding: 'funding'
15+
funding: 'funding',
1616
};
1717
const response = lint(packageJsonData, 'error');
1818

0 commit comments

Comments
 (0)