From b6f1a685c7722975db3594827daae62a21d418fd Mon Sep 17 00:00:00 2001 From: vilicvane Date: Sat, 28 Oct 2023 00:06:08 +0800 Subject: [PATCH] (magicspace-update) --- .eslintrc.json | 8 ++++---- .vscode/settings.json | 3 +++ package.json | 5 +++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index c064cfb..cd8b56c 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -10,15 +10,15 @@ "extends": ["plugin:@mufan/javascript"], "overrides": [ { - "files": "**/*.{js,cjs}", + "files": "**/*.{js,mjs}", "parserOptions": { - "sourceType": "script" + "sourceType": "module" } }, { - "files": "**/*.mjs", + "files": "**/*.cjs", "parserOptions": { - "sourceType": "module" + "sourceType": "script" } } ] diff --git a/.vscode/settings.json b/.vscode/settings.json index 0a78b87..7296f03 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,6 +7,9 @@ }, "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.rulers": [80], + "files.associations": { + "boilerplate.json": "jsonc" + }, "files.eol": "\n", "files.insertFinalNewline": true, "files.trimTrailingWhitespace": true, diff --git a/package.json b/package.json index cb8938b..5e82d19 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "repository": "https://github.com/makeflow/mufan-code-boilerplates.git", "license": "MIT", "author": "Chengdu Mufan Technology Co., Ltd.", + "type": "module", "exports": { "./general": { "types": "./general/bld/library/index.d.ts", @@ -26,8 +27,8 @@ "tslib": "^2.6.2" }, "devDependencies": { - "@mufan/eslint-plugin": "^0.2.5", - "eslint": "^8.51.0", + "@mufan/eslint-plugin": "^0.2.13", + "eslint": "^8.52.0", "prettier": "^3.0.3", "rimraf": "^5.0.5", "run-in-every": "^0.2.0",