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: 13 days 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 (about 1 year ago)
- Last Synced: 2024-10-25T06:50:14.511Z (21 days 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
[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/ChFlick.firecode.svg)](https://marketplace.visualstudio.com/items?itemName=ChFlick.firecode)
[![Visual Studio Marketplace](https://vsmarketplacebadge.apphb.com/version/ChFlick.firecode.svg)](https://marketplace.visualstudio.com/items?itemName=ChFlick.firecode)
[![Build Status](https://travis-ci.org/ChFlick/firecode.svg?branch=master)](https://travis-ci.org/ChFlick/firecode)
[![Maintainability](https://api.codeclimate.com/v1/badges/a06d165d57630120c00d/maintainability)](https://codeclimate.com/github/ChFlick/firecode/maintainability)
[![Dependencies](https://david-dm.org/ChFlick/firecode.svg)](https://david-dm.org/ChFlick/firecode)
[![devDependencies Status](https://david-dm.org/ChFlick/firecode/dev-status.svg)](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
![Syntax Highlighting](./resources/syntax-highlighting.png)### Mouseover Information
![Mouseover Information](./resources/mouseover-info.gif)### Autocomplete Suggestions
![Autocompletion](./resources/autocomplete.gif)### Autoformatting
![Autoformatting](./resources/autoformat.gif)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.