Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/captainbrosset/eslint-plugin-mozilla-devtools
A collection of rules that help the Mozilla Developer Tools team to enforce coding standards.
https://github.com/captainbrosset/eslint-plugin-mozilla-devtools
Last synced: about 1 month ago
JSON representation
A collection of rules that help the Mozilla Developer Tools team to enforce coding standards.
- Host: GitHub
- URL: https://github.com/captainbrosset/eslint-plugin-mozilla-devtools
- Owner: captainbrosset
- License: mpl-2.0
- Created: 2015-09-11T09:31:39.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-11T10:04:39.000Z (over 9 years ago)
- Last Synced: 2023-03-15T13:45:38.415Z (almost 2 years ago)
- Language: JavaScript
- Size: 89.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-plugin-mozilla-devtools
A collection of rules that help the Mozilla Developer Tools team to enforce
coding standards.## Installation
You'll first need to install [ESLint](http://eslint.org):
```
$ npm i eslint --save-dev
```Next, install `eslint-plugin-mozilla-devtools`:
```
$ npm install eslint-plugin-mozilla-devtools --save-dev
```**Note:** If you installed ESLint globally (using the `-g` flag) then you must
also install `eslint-plugin-mozilla-devtools` globally.## Usage
Add `mozilla-devtools` to the plugins section of your `.eslintrc` configuration
file. You can omit the `eslint-plugin-` prefix:```json
{
"plugins": [
"mozilla-devtools"
]
}
```Then configure the rules you want to use under the rules section.
```json
{
"rules": {
"components-imports": 1
}
}
```## Supported Rules
* components-imports
* onlylazygetters
* import-headjs-globals
* mark-test-function-used