From 7104425cefcbe11837c270f59db85db34d04371e Mon Sep 17 00:00:00 2001 From: achingbrain Date: Sat, 10 Jun 2023 09:10:16 +0200 Subject: [PATCH] chore: fix linting [This commit](https://github.com/standard/eslint-config-standard/commit/9673e0bb5a04d0d4b04333e33731514210a16664) to eslint-config-standard altered the `no-multiple-empty-lines` rule so update to the new linting rules. --- src/check-project/check-licence-files.js | 1 - src/check-project/check-monorepo-readme.js | 1 - src/check-project/check-readme.js | 1 - src/cmds/lint-package-json.js | 1 - src/cmds/lint.js | 1 - test/fixtures/dependency-check/pass/index.js | 1 - test/fixtures/js+ts/src/some.js | 1 - test/fixtures/tests/context-access.js | 1 - test/utils/get-port.js | 1 - 9 files changed, 9 deletions(-) diff --git a/src/check-project/check-licence-files.js b/src/check-project/check-licence-files.js index f69dfe911..557f5dac8 100644 --- a/src/check-project/check-licence-files.js +++ b/src/check-project/check-licence-files.js @@ -1,4 +1,3 @@ - /* eslint-disable no-console */ import path from 'path' diff --git a/src/check-project/check-monorepo-readme.js b/src/check-project/check-monorepo-readme.js index 9d4c09bb7..df8eaa392 100644 --- a/src/check-project/check-monorepo-readme.js +++ b/src/check-project/check-monorepo-readme.js @@ -1,4 +1,3 @@ - /* eslint-disable no-console */ import path from 'path' diff --git a/src/check-project/check-readme.js b/src/check-project/check-readme.js index 485704201..53c7b2917 100644 --- a/src/check-project/check-readme.js +++ b/src/check-project/check-readme.js @@ -1,4 +1,3 @@ - /* eslint-disable no-console,complexity */ import path from 'path' diff --git a/src/cmds/lint-package-json.js b/src/cmds/lint-package-json.js index 15768f72b..6c65ed9c2 100644 --- a/src/cmds/lint-package-json.js +++ b/src/cmds/lint-package-json.js @@ -1,4 +1,3 @@ - import path from 'path' import { fileURLToPath } from 'url' import { execa } from 'execa' diff --git a/src/cmds/lint.js b/src/cmds/lint.js index 1e9bc5aca..b016882f9 100644 --- a/src/cmds/lint.js +++ b/src/cmds/lint.js @@ -1,4 +1,3 @@ - import { loadUserConfig } from '../config/user.js' import lintCmd from '../lint.js' diff --git a/test/fixtures/dependency-check/pass/index.js b/test/fixtures/dependency-check/pass/index.js index f59a0f0dd..830031de3 100644 --- a/test/fixtures/dependency-check/pass/index.js +++ b/test/fixtures/dependency-check/pass/index.js @@ -1,4 +1,3 @@ - /* eslint-disable no-unused-vars */ // @ts-ignore diff --git a/test/fixtures/js+ts/src/some.js b/test/fixtures/js+ts/src/some.js index 94ca68d21..f4a5271d9 100644 --- a/test/fixtures/js+ts/src/some.js +++ b/test/fixtures/js+ts/src/some.js @@ -1,4 +1,3 @@ - export const main = () => { } diff --git a/test/fixtures/tests/context-access.js b/test/fixtures/tests/context-access.js index 3f188ba0d..78ccb9bcd 100644 --- a/test/fixtures/tests/context-access.js +++ b/test/fixtures/tests/context-access.js @@ -1,3 +1,2 @@ - // export something from the global scope export default Uint8Array diff --git a/test/utils/get-port.js b/test/utils/get-port.js index c4a2a08fe..7c93a2960 100644 --- a/test/utils/get-port.js +++ b/test/utils/get-port.js @@ -1,4 +1,3 @@ - /* eslint-env mocha */ import { expect } from '../../utils/chai.js'