From 3106c8aad19490672b8b0e8012b64ffc5448d4b9 Mon Sep 17 00:00:00 2001 From: Aleksey Kovalevsky Date: Thu, 6 Jul 2023 12:03:04 +0300 Subject: [PATCH] seekingalpha-javascript-style ver. 5.9.0 --- .eslintignore | 2 +- .eslintrc.js => .eslintrc.cjs | 0 package.json | 7 ++++--- prettier.config.js | 6 ++++-- 4 files changed, 9 insertions(+), 6 deletions(-) rename .eslintrc.js => .eslintrc.cjs (100%) diff --git a/.eslintignore b/.eslintignore index 757ff1c1..a5f10738 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,2 +1,2 @@ node_modules -!.eslintrc.js \ No newline at end of file +!.eslintrc.cjs diff --git a/.eslintrc.js b/.eslintrc.cjs similarity index 100% rename from .eslintrc.js rename to .eslintrc.cjs diff --git a/package.json b/package.json index f1c773c1..d6ab47e7 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "seekingalpha-javascript-style", - "version": "5.8.0", + "version": "5.9.0", "description": "Set of linting rules, guides and best practices for best Javascript code", "main": "index.js", + "type": "module", "engines": { "node": ">= 18" }, @@ -43,7 +44,7 @@ ] }, "devDependencies": { - "@seekingalpha/prettier-config-samw": "1.1.0", + "@seekingalpha/prettier-config-samw": "1.2.0", "eslint": "8.44.0", "eslint-config-seekingalpha-base": "6.10.0", "eslint-config-seekingalpha-node": "5.41.1", @@ -55,6 +56,6 @@ "eslint-plugin-unicorn": "47.0.0", "husky": "8.0.3", "lint-staged": "13.2.3", - "prettier": "2.8.8" + "prettier": "3.0.0" } } diff --git a/prettier.config.js b/prettier.config.js index 5a3ee379..5fefb71c 100644 --- a/prettier.config.js +++ b/prettier.config.js @@ -1,5 +1,7 @@ -const config = require('@seekingalpha/prettier-config-samw'); +// eslint-disable-next-line node/no-unsupported-features/es-syntax +import config from '@seekingalpha/prettier-config-samw'; -module.exports = { +// eslint-disable-next-line import/no-anonymous-default-export, import/no-default-export, node/no-unsupported-features/es-syntax +export default { ...config, };