From 752a0447f2f267221a06a3c486480eff697a97a5 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 20 May 2024 00:15:10 +0300 Subject: [PATCH] feature: wisdom: eslint v9.3.0 --- .eslintrc.json | 10 ---------- .github/workflows/nodejs.yml | 2 +- .npmignore | 1 + .nycrc.json | 3 ++- eslint.config.js | 3 +++ package.json | 3 +-- 6 files changed, 8 insertions(+), 14 deletions(-) delete mode 100644 .eslintrc.json create mode 100644 eslint.config.js diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index e9c96de..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": [ - "plugin:n/recommended", - "plugin:putout/recommended" - ], - "plugins": [ - "putout", - "n" - ] -} diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index c926a70..f85f8cb 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -12,7 +12,7 @@ jobs: node-version: - 18.x - 20.x - - 21.x + - 22.x steps: - uses: actions/checkout@v4 - uses: oven-sh/setup-bun@v1 diff --git a/.npmignore b/.npmignore index 915ca56..df375df 100644 --- a/.npmignore +++ b/.npmignore @@ -2,3 +2,4 @@ *.spec.js yarn-error.log coverage +*.config.* diff --git a/.nycrc.json b/.nycrc.json index df171b2..bd520eb 100644 --- a/.nycrc.json +++ b/.nycrc.json @@ -4,7 +4,8 @@ "exclude": [ "**/*.spec.js", "**/fixture", - "**/*.*.js" + "**/*.*.js", + "**/*.config.*" ], "branches": 100, "lines": 100, diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..ea90e3c --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,3 @@ +import {safeAlign} from 'eslint-plugin-putout/config'; + +export default safeAlign; diff --git a/package.json b/package.json index 7feb5a1..98da28b 100644 --- a/package.json +++ b/package.json @@ -57,8 +57,7 @@ "devDependencies": { "c8": "^9.1.0", "escover": "^4.1.0", - "eslint": "^8.1.0", - "eslint-plugin-n": "^16.0.1", + "eslint": "^9.3.0", "eslint-plugin-putout": "^22.3.1", "madrun": "^10.0.1", "mock-import": "^4.0.3",