Apply prettier on all committed files

This commit is contained in:
Remco Haszing 2021-03-25 17:59:58 +01:00
parent 97106b71c9
commit 04907bd623
No known key found for this signature in database
GPG key ID: 40D9F5FE9155FD3C
6 changed files with 40 additions and 35 deletions

View file

@ -1 +1,3 @@
/lib/esm/_deps/
/dist/
/lib/
/out/

View file

@ -1,13 +1,14 @@
# Monaco YAML
YAML language plugin for the Monaco Editor. It provides the following features when editing YAML files:
* Code completion, based on JSON schemas or by looking at similar objects in the same file
* Hovers, based on JSON schemas
* Validation: Syntax errors and schema validation
* Formatting
* Document Symbols
* Syntax highlighting
* Automatically load remote schema files (by enabling DiagnosticsOptions.enableSchemaRequest)
- Code completion, based on JSON schemas or by looking at similar objects in the same file
- Hovers, based on JSON schemas
- Validation: Syntax errors and schema validation
- Formatting
- Document Symbols
- Syntax highlighting
- Automatically load remote schema files (by enabling DiagnosticsOptions.enableSchemaRequest)
Schemas can also be provided by configuration. See [here](https://github.com/Microsoft/monaco-json/blob/master/src/monaco.d.ts)
for the API that the JSON plugin offers to configure the JSON language support.
@ -20,15 +21,17 @@ See `examples` directory for esm and umd examples.
## Development
* `git clone https://github.com/pengx17/monaco-yaml`
* `cd monaco-yaml`
* `yarn`
- `git clone https://github.com/pengx17/monaco-yaml`
- `cd monaco-yaml`
- `yarn`
A running example:
![demo-image](test-demo.png)
## Credits
- https://github.com/redhat-developer/yaml-language-server
## License
[MIT](https://github.com/pengx17/monaco-yaml/blob/master/LICENSE.md)

View file

@ -1,9 +1,9 @@
# Demo: React + Weback + Worker Loader + Babel
To run:
```
yarn && yarn start
```
The demo will open in your browser. See (index.jsx)[index.jsx#L34-L36] for the schema loaded.

View file

@ -1,9 +1,9 @@
# Demo: React + Weback + Babel
To run:
```
yarn && yarn start
```
The demo will open in your browser. See (index.jsx)[index.jsx#L34-L36] for the schema loaded.

View file

@ -13,7 +13,7 @@
"build": "yarn compile && yarn bundle",
"prepare": "husky install",
"prepack": "yarn build",
"lint": "prettier \"{src,test}/**/*.{json,scss,html,ts}\" --write"
"lint": "prettier \"**/*.{css,js,json,jsx,html,md,ts}\" --check"
},
"main": "./lib/esm/monaco.contribution.js",
"module": "./lib/esm/monaco.contribution.js",