mirror of
https://github.com/danbulant/monaco-yaml
synced 2026-05-24 12:21:53 +00:00
Apply prettier on all committed files
This commit is contained in:
parent
97106b71c9
commit
04907bd623
6 changed files with 40 additions and 35 deletions
|
|
@ -1 +1,3 @@
|
||||||
/lib/esm/_deps/
|
/dist/
|
||||||
|
/lib/
|
||||||
|
/out/
|
||||||
|
|
|
||||||
23
README.md
23
README.md
|
|
@ -1,13 +1,14 @@
|
||||||
# Monaco YAML
|
# Monaco YAML
|
||||||
|
|
||||||
YAML language plugin for the Monaco Editor. It provides the following features when editing YAML files:
|
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
|
- Code completion, based on JSON schemas or by looking at similar objects in the same file
|
||||||
* Validation: Syntax errors and schema validation
|
- Hovers, based on JSON schemas
|
||||||
* Formatting
|
- Validation: Syntax errors and schema validation
|
||||||
* Document Symbols
|
- Formatting
|
||||||
* Syntax highlighting
|
- Document Symbols
|
||||||
* Automatically load remote schema files (by enabling DiagnosticsOptions.enableSchemaRequest)
|
- 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)
|
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.
|
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
|
## Development
|
||||||
|
|
||||||
* `git clone https://github.com/pengx17/monaco-yaml`
|
- `git clone https://github.com/pengx17/monaco-yaml`
|
||||||
* `cd monaco-yaml`
|
- `cd monaco-yaml`
|
||||||
* `yarn`
|
- `yarn`
|
||||||
|
|
||||||
A running example:
|
A running example:
|
||||||

|

|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
- https://github.com/redhat-developer/yaml-language-server
|
- https://github.com/redhat-developer/yaml-language-server
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
[MIT](https://github.com/pengx17/monaco-yaml/blob/master/LICENSE.md)
|
[MIT](https://github.com/pengx17/monaco-yaml/blob/master/LICENSE.md)
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
# Demo: React + Weback + Worker Loader + Babel
|
# Demo: React + Weback + Worker Loader + Babel
|
||||||
|
|
||||||
To run:
|
To run:
|
||||||
|
|
||||||
```
|
```
|
||||||
yarn && yarn start
|
yarn && yarn start
|
||||||
```
|
```
|
||||||
|
|
||||||
The demo will open in your browser. See (index.jsx)[index.jsx#L34-L36] for the schema loaded.
|
The demo will open in your browser. See (index.jsx)[index.jsx#L34-L36] for the schema loaded.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
# Demo: React + Weback + Babel
|
# Demo: React + Weback + Babel
|
||||||
|
|
||||||
To run:
|
To run:
|
||||||
|
|
||||||
```
|
```
|
||||||
yarn && yarn start
|
yarn && yarn start
|
||||||
```
|
```
|
||||||
|
|
||||||
The demo will open in your browser. See (index.jsx)[index.jsx#L34-L36] for the schema loaded.
|
The demo will open in your browser. See (index.jsx)[index.jsx#L34-L36] for the schema loaded.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
"build": "yarn compile && yarn bundle",
|
"build": "yarn compile && yarn bundle",
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
"prepack": "yarn build",
|
"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",
|
"main": "./lib/esm/monaco.contribution.js",
|
||||||
"module": "./lib/esm/monaco.contribution.js",
|
"module": "./lib/esm/monaco.contribution.js",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue