From 75d50b710cfe270c31dc46067f499d08113de3fd Mon Sep 17 00:00:00 2001 From: Nathan Sarang-Walters Date: Tue, 23 Jul 2024 16:11:41 -0700 Subject: [PATCH 1/3] Move ESLint configuration to eslint.config.js --- eslint.config.js | 11 +++++++++++ package.json | 6 ------ 2 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 eslint.config.js diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 000000000..0e0076da0 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,11 @@ +// @ts-check +import { defineConfig, pvtnbr } from 'lintroll'; + +export default defineConfig([ + { + ignores: ['tests/fixtures'], + }, + ...pvtnbr({ + node: true, + }), +]); diff --git a/package.json b/package.json index 31546ae4d..b3d5e153c 100644 --- a/package.json +++ b/package.json @@ -115,11 +115,5 @@ "type-fest": "^4.20.1", "type-flag": "^3.0.0", "typescript": "^5.5.2" - }, - "eslintConfig": { - "extends": "@pvtnbr", - "ignorePatterns": [ - "tests/fixtures" - ] } } From 21ed5c666254818bf00382989662323717714225 Mon Sep 17 00:00:00 2001 From: Nathan Sarang-Walters Date: Tue, 23 Jul 2024 16:14:09 -0700 Subject: [PATCH 2/3] Simplify config --- eslint.config.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 0e0076da0..b4f98799a 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,11 +1,4 @@ // @ts-check -import { defineConfig, pvtnbr } from 'lintroll'; +import { pvtnbr } from 'lintroll'; -export default defineConfig([ - { - ignores: ['tests/fixtures'], - }, - ...pvtnbr({ - node: true, - }), -]); +export default pvtnbr({ node: true }); From 96d6545ea45fc19e6c5a73fdb35f0893b7098442 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Wed, 24 Jul 2024 11:04:04 +0900 Subject: [PATCH 3/3] config file is unnecessary --- eslint.config.js | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 eslint.config.js diff --git a/eslint.config.js b/eslint.config.js deleted file mode 100644 index b4f98799a..000000000 --- a/eslint.config.js +++ /dev/null @@ -1,4 +0,0 @@ -// @ts-check -import { pvtnbr } from 'lintroll'; - -export default pvtnbr({ node: true });