Skip to content

Commit

Permalink
chore: enable import/no-unresolved rule for commonjs (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
donotlb authored Oct 22, 2024
1 parent 9c4aa08 commit 067cf40
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"eslint": "^8.57.0",
"zx": "^8.1.3"
},
"version": "0.3.2"
"version": "0.3.3"
}
2 changes: 1 addition & 1 deletion packages/eslint-config-base/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }],
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-base/package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"homepage": "https://github.com/ArcBlock/eslint-config#readme",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-ts/package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"homepage": "https://github.com/ArcBlock/eslint-config#readme",
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.mjs'],
extensions: ['.js', '.jsx', '.mjs', '.cjs'],
},
},
},
Expand Down Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"homepage": "https://github.com/ArcBlock/eslint-config#readme",
Expand Down

0 comments on commit 067cf40

Please sign in to comment.