Skip to content

Commit

Permalink
feat(eslint-config): require-extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed Jan 31, 2024
1 parent 3486060 commit 53f6f50
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"eslint": "^8.56.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-require-extensions": "^0.1.3",
"jest": "^29.7.0",
"prettier": "^3.2.4",
"typescript": "^5.3.3"
Expand Down
3 changes: 2 additions & 1 deletion packages/eslint-config/eslint-config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
// "plugin:@typescript-eslint/stylistic-type-checked",
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:require-extensions/recommended',
],
env: {
'shared-node-browser': true,
Expand All @@ -21,7 +22,7 @@ module.exports = {
ecmaVersion: 2023,
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'import'],
plugins: ['@typescript-eslint', 'import', 'require-extensions'],
settings: {
'import/resolver': {
typescript: {
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"eslint": "^8.56.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-require-extensions": "^0.1.3",
"typescript": "^5.3.3"
},
"peerDependencies": {
Expand Down
11 changes: 11 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ __metadata:
eslint: "npm:^8.56.0"
eslint-import-resolver-typescript: "npm:^3.6.1"
eslint-plugin-import: "npm:^2.29.1"
eslint-plugin-require-extensions: "npm:^0.1.3"
typescript: "npm:^5.3.3"
peerDependencies:
"@typescript-eslint/eslint-plugin": ">6.0.0"
Expand Down Expand Up @@ -2312,6 +2313,7 @@ __metadata:
eslint: "npm:^8.56.0"
eslint-import-resolver-typescript: "npm:^3.6.1"
eslint-plugin-import: "npm:^2.29.1"
eslint-plugin-require-extensions: "npm:^0.1.3"
jest: "npm:^29.7.0"
prettier: "npm:^3.2.4"
typescript: "npm:^5.3.3"
Expand Down Expand Up @@ -3700,6 +3702,15 @@ __metadata:
languageName: node
linkType: hard

"eslint-plugin-require-extensions@npm:^0.1.3":
version: 0.1.3
resolution: "eslint-plugin-require-extensions@npm:0.1.3"
peerDependencies:
eslint: "*"
checksum: 79aec6ac25139edd7e085c40dae0e7699b66a0f253333a80e5a2857762f258d8cf8c89fc873b9ada7c9d8d7722c0386164783eb979361c5bc02c5e7fc1175403
languageName: node
linkType: hard

"eslint-scope@npm:^7.2.2":
version: 7.2.2
resolution: "eslint-scope@npm:7.2.2"
Expand Down

0 comments on commit 53f6f50

Please sign in to comment.