Skip to content

Commit 1c29c3e

Browse files
committed
chore: add ESLint disable comments for unused variables and loss of precision
1 parent 32ef3e9 commit 1c29c3e

File tree

6 files changed

+7
-3
lines changed

6 files changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
operating-system: [ubuntu-latest, windows-latest]
18-
node-version: [14, 16, 18, 20, 22]
18+
node-version: [18, 20, 22, 24, 25]
1919
name: Node.js ${{ matrix.node-version }} Test on ${{ matrix.operating-system }}
2020

2121
steps:

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ temp/
105105
*.sw?
106106

107107
# CI/CD
108-
.github/
109108
.appveyor.yml
110109
.travis.yml
111110
.circleci/

src/helper/cmd.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-unused-vars */
12
'use strict';
23

34
const os = require('os');

src/helper/str.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable no-extend-native */
1+
22
'use strict';
33

44
const os = require('os');

src/lib/os-locale.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ async function osLocale(options = defaultOptions) {
114114
} else {
115115
locale = await getUnixLocale();
116116
}
117+
// eslint-disable-next-line no-unused-vars
117118
} catch (e) {
118119
// ignore
119120
}
@@ -141,6 +142,7 @@ function osLocaleSync(options = defaultOptions) {
141142
} else {
142143
locale = getUnixLocaleSync();
143144
}
145+
// eslint-disable-next-line no-unused-vars
144146
} catch (e) {
145147
// ignore
146148
}

tests/is.tests.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ describe('is test case', function () {
3030

3131
it('test case for number', function () {
3232
expect(is.number(1.123)).to.be.true;
33+
// eslint-disable-next-line no-loss-of-precision
3334
expect(is.number(1111111111111111111111111)).to.be.true;
3435
expect(is.number('123')).to.be.false;
3536

@@ -39,6 +40,7 @@ describe('is test case', function () {
3940

4041
it('test case for integer', function () {
4142
expect(is.integer(1.123)).to.be.false;
43+
// eslint-disable-next-line no-loss-of-precision
4244
expect(is.integer(1111111111111111111111111)).to.be.true;
4345
expect(is.integer('123')).to.be.false;
4446
});

0 commit comments

Comments
 (0)