diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..3d4fc82 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,17 @@ +{ + "root": true, + "env": { + "node": true + }, + "parser": "@typescript-eslint/parser", + "plugins": ["@typescript-eslint", "prettier"], + "parserOptions": { + "ecmaVersion": 6, + "sourceType": "module" + }, + "extends": ["plugin:prettier/recommended"], + "rules": { + // 不符prettier的地标出警告 + "prettier/prettier": 1 + } +} diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index da8e964..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1,17 +0,0 @@ -module.exports = { - root: true, - env: { - node: true, - }, - parser: "@typescript-eslint/parser", - plugins: ["@typescript-eslint", "prettier"], - parserOptions: { - ecmaVersion: 6, - sourceType: "module", - }, - extends: ["plugin:prettier/recommended"], - rules: { - // 不符prettier的地标出警告 - "prettier/prettier": 1, - }, -}; diff --git a/config/server.js b/config/server.js index cb21d42..3cfe834 100644 --- a/config/server.js +++ b/config/server.js @@ -1,7 +1,7 @@ /* * @Author: Shirtiny * @Date: 2021-06-25 17:35:25 - * @LastEditTime: 2021-12-09 15:31:14 + * @LastEditTime: 2021-12-09 20:53:28 * @Description: */ "use strict"; diff --git a/package.json b/package.json index 2999b3a..913aaea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@shirtiny/ts-lib-template", - "version": "1.4.15", + "version": "1.4.16", "description": "ts-lib-template desc", "type": "module", "types": "./dist/types/main.d.ts", @@ -60,7 +60,6 @@ "camelcase": "^6.2.1", "dotenv-cli": "^4.0.0", "esbuild": "0.12.5", - "esbuild-plugin-inline-worker": "^0.1.1", "esbuild-plugin-time": "^1.0.0", "esbuild-sass-plugin": "^1.4.8", "eslint": "^7.28.0",