Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
fix(javascript): Use require.resolve for shareable ESLint config
Browse files Browse the repository at this point in the history
  • Loading branch information
mvsde authored and mgrsskls committed Feb 27, 2023
1 parent ff4eaf6 commit d346d2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/stack-javascript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ And add a `.eslintrc.js`:
module.exports = {
root: true,
extends: [
"@factorial/stack-javascript/eslint",
require.resolve("@factorial/stack-javascript/eslint"),
],
};
```
Expand Down
2 changes: 1 addition & 1 deletion packages/stack-javascript/__tests__/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe("javascript/index", () => {
content: `module.exports = {
root: true,
extends: [
"@factorial/stack-javascript/eslint",
require.resolve("@factorial/stack-javascript/eslint"),
],
};
`,
Expand Down
2 changes: 1 addition & 1 deletion packages/stack-javascript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
content: `module.exports = {
root: true,
extends: [
"@factorial/stack-javascript/eslint",
require.resolve("@factorial/stack-javascript/eslint"),
],
};
`,
Expand Down

0 comments on commit d346d2b

Please sign in to comment.