From ccf608a52ee9710c6585de5e6fc6fae930b497bf Mon Sep 17 00:00:00 2001 From: coderiaser Date: Sun, 10 May 2026 22:51:18 +0300 Subject: [PATCH] chore: lint --- .github/workflows/nodejs.yml | 2 +- .nycrc.json | 2 +- eslint.config.js | 12 ------------ 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 50222dd9..b9ed9cb5 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -41,7 +41,7 @@ jobs: - name: Typos run: typos --write-changes - name: Commit fixes - uses: EndBug/add-and-commit@v9 + uses: EndBug/add-and-commit@v10 continue-on-error: true with: message: "chore: ${{ env.NAME }}: actions: lint ☘️" diff --git a/.nycrc.json b/.nycrc.json index 36d6b4cb..1fe174f3 100644 --- a/.nycrc.json +++ b/.nycrc.json @@ -1,5 +1,5 @@ { - "check-coverage": false, + "checkCoverage": false, "all": false, "exclude": [ "**/*.spec.js", diff --git a/eslint.config.js b/eslint.config.js index b38d3e2e..cf9a67d8 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,6 +1,5 @@ import {safeAlign} from 'eslint-plugin-putout'; import {defineConfig} from 'eslint/config'; -import n from 'eslint-plugin-n'; import globals from 'globals'; import {matchToFlat} from '@putout/eslint-flat'; @@ -12,23 +11,12 @@ export const match = { 'client/dom/index.*': { 'no-multi-spaces': 'off', }, - '{client,static}/**/*.{js,mjs}': { - 'n/no-extraneous-require': 'off', - 'n/no-unsupported-features/node-builtins': 'off', - }, - 'bin/cloudcmd.js': { - 'no-console': 'off', - }, }; export default defineConfig([ safeAlign, { ignores: ['**/fixture'], rules: { 'key-spacing': 'off', - 'n/prefer-node-protocol': 'error', - }, - plugins: { - n, }, }, { files: ['{client,common,static}/**/*.js'],