diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e01e5b6..6bb6316 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: operating-system: [ubuntu-latest, windows-latest] - node-version: [14, 16, 18, 20, 22] + node-version: [18, 20, 22, 24, 25] name: Node.js ${{ matrix.node-version }} Test on ${{ matrix.operating-system }} steps: diff --git a/.gitignore b/.gitignore index a7dc843..d839e6e 100644 --- a/.gitignore +++ b/.gitignore @@ -105,7 +105,6 @@ temp/ *.sw? # CI/CD -.github/ .appveyor.yml .travis.yml .circleci/ diff --git a/src/helper/cmd.js b/src/helper/cmd.js index 7800904..e9df036 100644 --- a/src/helper/cmd.js +++ b/src/helper/cmd.js @@ -1,3 +1,4 @@ +/* eslint-disable no-unused-vars */ 'use strict'; const os = require('os'); diff --git a/src/helper/str.js b/src/helper/str.js index fdabf77..1050164 100644 --- a/src/helper/str.js +++ b/src/helper/str.js @@ -1,4 +1,4 @@ -/* eslint-disable no-extend-native */ + 'use strict'; const os = require('os'); diff --git a/src/lib/os-locale.js b/src/lib/os-locale.js index b1927f4..8b1fe5b 100644 --- a/src/lib/os-locale.js +++ b/src/lib/os-locale.js @@ -114,6 +114,7 @@ async function osLocale(options = defaultOptions) { } else { locale = await getUnixLocale(); } + // eslint-disable-next-line no-unused-vars } catch (e) { // ignore } @@ -141,6 +142,7 @@ function osLocaleSync(options = defaultOptions) { } else { locale = getUnixLocaleSync(); } + // eslint-disable-next-line no-unused-vars } catch (e) { // ignore } diff --git a/tests/is.tests.js b/tests/is.tests.js index 1a16d50..7b26923 100644 --- a/tests/is.tests.js +++ b/tests/is.tests.js @@ -30,6 +30,7 @@ describe('is test case', function () { it('test case for number', function () { expect(is.number(1.123)).to.be.true; + // eslint-disable-next-line no-loss-of-precision expect(is.number(1111111111111111111111111)).to.be.true; expect(is.number('123')).to.be.false; @@ -39,6 +40,7 @@ describe('is test case', function () { it('test case for integer', function () { expect(is.integer(1.123)).to.be.false; + // eslint-disable-next-line no-loss-of-precision expect(is.integer(1111111111111111111111111)).to.be.true; expect(is.integer('123')).to.be.false; });