Skip to content

Commit

Permalink
fix: move things around and do not include reset by default
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed May 25, 2024
1 parent 6f8e839 commit f782f97
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 12 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Create a `tsconfig.json` file in your project root with the following content:
"extends": ["@epic-web/config/typescript"],
"include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
"compilerOptions": {
"types": ["@epic-web/config/reset.d.ts"],
"paths": {
"#app/*": ["./app/*"],
"#tests/*": ["./tests/*"]
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './configs/eslint.js'
export { default } from './eslint.js'
File renamed without changes.
12 changes: 3 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,12 @@
},
"exports": {
".": "./index.js",
"./prettier": "./configs/prettier.js",
"./prettier": "./prettier.js",
"./typescript": "./typescript.json",
"./reset.d.ts": "./reset.d.ts",
"./eslint": "./configs/eslint.js"
"./eslint": "./eslint.js"
},
"files": [
"./index.js",
"./typescript.json",
"./reset.d.ts",
"./configs"
],
"prettier": "./configs/prettier.js",
"prettier": "./prettier.js",
"scripts": {
"format": "prettier . --write",
"lint": "eslint .",
Expand Down
File renamed without changes.
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"extends": "./typescript.json",
"include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"]
"include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
"compilerOptions": {
"types": ["./reset.d.ts"]
}
}
1 change: 0 additions & 1 deletion typescript.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"types": ["@epic-web/config/reset.d.ts"],
"lib": ["DOM", "DOM.Iterable", "ES2023"],
"isolatedModules": true,
"esModuleInterop": true,
Expand Down

0 comments on commit f782f97

Please sign in to comment.