Skip to content

Commit

Permalink
Use settings.example.json, update CONTRIBUTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jul 4, 2022
1 parent 993c680 commit 6575be0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -80,6 +80,8 @@ packages/babel-standalone/babel.min.js
/eslint/*/LICENSE
!/packages/babel-eslint-plugin/LICENSE

.vscode
!.vscode/settings.example.json
# local directory for VSCode Extension - https://marketplace.visualstudio.com/items?itemName=xyz.local-history
/.history

Expand Down
1 change: 0 additions & 1 deletion .vscode/settings.json → .vscode/settings.example.json
@@ -1,5 +1,4 @@
{
"editor.formatOnSave": true,
"json.schemas": [
{
"fileMatch": [
Expand Down
8 changes: 8 additions & 0 deletions CONTRIBUTING.md
Expand Up @@ -334,6 +334,14 @@ For both `@babel/plugin-x` and `@babel/parser`, you can easily generate an `outp
- output.json (will be generated if not created)
```

#### Editor setup

We have JSON Schema definitions so that your editor can provide autocomplete for `options.json` files in fixtures:
- `./packages/babel-helper-fixtures/data/schema.json` for plugins/presets tests
- `./packages/babel-parser/test/schema.json` for parser tests

If you use VS Code you can copy the contents of `.vscode/settings.example.json` into `.vscode/settings.json` to make it use the JSON Schema definitions. Other editors have different options to load JSON Schema files.

### Debugging code

A common approach to debugging JavaScript code is to walk through the code using the [Chrome DevTools](https://developers.google.com/web/tools/chrome-devtools/) debugger.
Expand Down

0 comments on commit 6575be0

Please sign in to comment.