@blueking/eslint-config-bk 3.0.0-beta.3 → 3.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * Tencent is pleased to support the open source community by making
3
3
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
4
4
  *
5
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
5
+ * Copyright (C) 2021 Tencent. All rights reserved.
6
6
  *
7
7
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
8
8
  *
@@ -23,9 +23,10 @@
23
23
  * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24
24
  * IN THE SOFTWARE.
25
25
  */
26
- const { defineConfig } = require('eslint/config');
27
- const baseConfig = require('./tencent/base');
28
- const prettierConfig = require('./tencent/prettier');
26
+ // ESM rewrite
27
+ import { defineConfig } from 'eslint/config';
28
+
29
+ import baseConfig from './tencent/base.js';
29
30
 
30
31
  // base
31
- module.exports = defineConfig([baseConfig, prettierConfig]);
32
+ export default defineConfig([baseConfig]);
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@blueking/eslint-config-bk",
3
- "version": "3.0.0-beta.3",
3
+ "version": "3.0.0-beta.4",
4
4
  "description": "ESLint configuration for BlueKing projects",
5
5
  "main": "index.js",
6
+ "type": "module",
6
7
  "exports": {
7
8
  ".": "./index.js",
8
9
  "./ts": "./ts.js",
@@ -19,12 +20,12 @@
19
20
  "@typescript-eslint/eslint-plugin": "^8.26.1",
20
21
  "@typescript-eslint/parser": "^8.26.1",
21
22
  "eslint": "^9.22.0",
22
- "eslint-config-prettier": "^10.1.1",
23
- "eslint-plugin-prettier": "^5.2.3",
23
+ "eslint-plugin-import": "^2.31.0",
24
+ "eslint-plugin-simple-import-sort": "^12.1.1",
24
25
  "eslint-plugin-vue": "^10.0.0",
25
26
  "typescript-eslint": "^8.26.1",
26
27
  "vue-eslint-parser": "^10.1.1",
27
- "eslint-plugin-import": "^2.31.0"
28
+ "eslint-plugin-oxlint": "^1.6.0"
28
29
  },
29
30
  "author": "bkfe",
30
31
  "license": "MIT"