Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chflick/firecode
VS Code Firestore Rules Extension
https://github.com/chflick/firecode
firebase firestore firestore-rules visual-studio vscode-extension vscode-language
Last synced: 4 months ago
JSON representation
VS Code Firestore Rules Extension
- Host: GitHub
- URL: https://github.com/chflick/firecode
- Owner: ChFlick
- License: mit
- Created: 2019-08-13T11:08:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-27T21:07:52.000Z (over 1 year ago)
- Last Synced: 2024-10-25T06:50:14.511Z (4 months ago)
- Topics: firebase, firestore, firestore-rules, visual-studio, vscode-extension, vscode-language
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=ChFlick.firecode
- Size: 617 KB
- Stars: 38
- Watchers: 5
- Forks: 3
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://marketplace.visualstudio.com/items?itemName=ChFlick.firecode)
[](https://marketplace.visualstudio.com/items?itemName=ChFlick.firecode)
[](https://travis-ci.org/ChFlick/firecode)
[](https://codeclimate.com/github/ChFlick/firecode/maintainability)
[](https://david-dm.org/ChFlick/firecode)
[](https://david-dm.org/ChFlick/firecode?type=dev)# Firestore
Firestore security rule support for Visual Studio Code.
Works for `.rule` and `.rules` files.
## Features
### Syntax Highlighting
### Mouseover Information
### Autocomplete Suggestions
### Autoformatting
Only works for valid rules and currently only formats the indentation.
**Experimental:**
Version 1.3.0 intoduced a new formatter option which can be enabled in the configuration, `firestorerules.usePrettierFormatter`.
When the option is enabled, the project uses [prettier](https://prettier.io/) and the [prettier-plugin-firestore-rules](https://github.com/ChFlick/prettier-plugin-firestore-rules) to format the firestore rules.## Known Issues
* The documentation of the get(/path/) function is currently not correct
This extension is still very fresh and under development, so if you have any issues, please [report them on GitHub](https://github.com/ChFlick/firecode/issues).
## Development
I'm working on improving the prettier-plugin-firestore-rules formatter as well as the corresponding [firestore rules parser (WIP)](https://github.com/ChFlick/prettier-plugin-firestore-rules).
When the parser is in a proper shape, it will be included to provide validation of the firestore rules.