diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a276bd..e25218e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.3.3 (October 22, 2024) + +- chore: enable import/no-unresolved rule for commonjs + ## 0.3.2 (June 28, 2024) - chore(deps): update deps diff --git a/package.json b/package.json index 28f020c..2371065 100644 --- a/package.json +++ b/package.json @@ -12,5 +12,5 @@ "eslint": "^8.57.0", "zx": "^8.1.3" }, - "version": "0.3.2" + "version": "0.3.3" } diff --git a/packages/eslint-config-base/index.js b/packages/eslint-config-base/index.js index 6000bf7..243abb2 100644 --- a/packages/eslint-config-base/index.js +++ b/packages/eslint-config-base/index.js @@ -46,7 +46,7 @@ module.exports = { rules: { 'class-methods-use-this': 'off', 'import/no-extraneous-dependencies': ['error', { devDependencies: true }], - 'import/no-unresolved': ['error', { caseSensitive: true }], + 'import/no-unresolved': ['error', { commonjs: true, caseSensitive: true }], 'require-await': 'error', 'no-console': ['error', { allow: ['warn', 'error'] }], 'no-param-reassign': ['error', { props: false }], diff --git a/packages/eslint-config-base/package.json b/packages/eslint-config-base/package.json index ae9ddc5..1b4a91c 100644 --- a/packages/eslint-config-base/package.json +++ b/packages/eslint-config-base/package.json @@ -1,6 +1,6 @@ { "name": "@arcblock/eslint-config-base", - "version": "0.3.2", + "version": "0.3.3", "description": "Arcblock's ESLint config base", "author": "zhanghan ", "homepage": "https://github.com/ArcBlock/eslint-config#readme", diff --git a/packages/eslint-config-ts/package.json b/packages/eslint-config-ts/package.json index 717bd7a..03db3a6 100644 --- a/packages/eslint-config-ts/package.json +++ b/packages/eslint-config-ts/package.json @@ -1,6 +1,6 @@ { "name": "@arcblock/eslint-config-ts", - "version": "0.3.2", + "version": "0.3.3", "description": "Arcblock's base config for ESLint & Typescript", "author": "wangshijun ", "homepage": "https://github.com/ArcBlock/eslint-config#readme", diff --git a/packages/eslint-config/index.js b/packages/eslint-config/index.js index 7817e66..7c7cb99 100644 --- a/packages/eslint-config/index.js +++ b/packages/eslint-config/index.js @@ -10,7 +10,7 @@ module.exports = { settings: { 'import/resolver': { node: { - extensions: ['.js', '.jsx', '.mjs'], + extensions: ['.js', '.jsx', '.mjs', '.cjs'], }, }, }, @@ -55,7 +55,7 @@ module.exports = { 'require-await': 'error', 'class-methods-use-this': 'off', 'import/no-extraneous-dependencies': ['error', { devDependencies: true }], - 'import/no-unresolved': ['error', { caseSensitive: true }], + 'import/no-unresolved': ['error', { commonjs: true, caseSensitive: true }], 'import/extensions': 'off', 'jsx-a11y/click-events-have-key-events': 'off', 'jsx-a11y/no-static-element-interactions': 'off', diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 77d62b8..c48a1ed 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -1,6 +1,6 @@ { "name": "@arcblock/eslint-config", - "version": "0.3.2", + "version": "0.3.3", "description": "Arcblock's ESLint config for react", "author": "zhanghan ", "homepage": "https://github.com/ArcBlock/eslint-config#readme",