Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ npm install -D @build-in-blocks/dev.setup
npm install -D prettier@^3.8.1 eslint-config-prettier@^10.1.8
````

- Create a `prettier.config.js` file at root of your project and add this setup:
- Create a `prettier.config.mjs` file at root of your project and add this setup:

````
import basePrettier from '@build-in-blocks/dev.setup/prettier';
Expand All @@ -89,7 +89,6 @@ npm install -D @build-in-blocks/dev.setup
...basePrettier,
};
````
- Use `"type": "module"` in your `package.json` file. If you don't use it, you may run into errors as shown in the **troubleshooting** section at the end of this installation guide.

#### 4. Husky + lint-staged installation and setup

Expand Down Expand Up @@ -226,7 +225,6 @@ Make sure to add and commit all your setup files to git, and push/merge it to yo
#### 9. Troubleshooting

- **Eslint + typescript intellisense:** If the `eslint` + `typescript` intellisense is not showing red and yellow wiggle lines in your file, first check that you have `eslint` extension installed in your code editor (that is, if you are using VScode). If you have the extension and it still doesn't show up, closing and reopening your code editor (or just the file you are editing) may fix it.
- **prettier --write: Warning: Failed to load the ES module**: To solve this, use `"type": "module"` in your `package.json` file. For now, you will need this to be present so that you don't run into errors. In subsequent versions/releases we will work on making it work regardless of the type you use in your package.json

#

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"exports": {
".": "./eslint.config.mjs",
"./prettier": "./prettier.config.js"
"./prettier": "./prettier.config.mjs"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
Expand Down Expand Up @@ -72,7 +72,7 @@
"files": [
"bin/",
"eslint.config.mjs",
"prettier.config.js",
"prettier.config.mjs",
"lint-staged.config.js",
"README.md"
]
Expand Down
File renamed without changes.
Loading