eslint-plugin-ember
Advanced tools
Comparing version 1.0.1 to 1.1.0
{ | ||
"name": "eslint-plugin-ember", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Provides ember rules for eslint", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/zipscene/eslint-plugin-ember" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/zipscene/eslint-plugin-ember/issues" | ||
}, | ||
"keywords": [ | ||
@@ -13,3 +17,3 @@ "eslint", | ||
], | ||
"author": "Douglas Flick <doug.flick@zipscene.com>", | ||
"author": "Zipscene, LLC", | ||
"license": "MIT", | ||
@@ -16,0 +20,0 @@ "peerDependencies": { |
# Ember Plugin for Eslint | ||
(still in development) | ||
[Github](https://github.com/zipscene/eslint-plugin-ember) | ||
## Description: | ||
Set of Ember rules to lint source code that uses the ember framework | ||
## Rules: | ||
## Installation: | ||
Currently there are four rules which rely on the latest release of eslint ^0.16.1 | ||
### To get the plugin: | ||
``` | ||
npm install eslint-plugin-ember | ||
npm install eslint-plugin-ember --save-dev | ||
``` | ||
### To install the plugin: | ||
Add this to your .eslintrc file | ||
#### Add this to your .eslintrc file | ||
``` | ||
{ | ||
"plugins": [ | ||
"eslint-plugin-ember" | ||
] | ||
"plugins": ["eslint-plugin-ember"] | ||
} | ||
``` | ||
### Enforce comments in .extend blocks for properties (ember-extend-comments) | ||
## Rules: | ||
ember-extend-comments will only look one depth level into the block and will enforce | ||
that properties are given comments above. | ||
Currently there are four rules which rely on eslint ^0.16.1 | ||
Takes in two parameters: | ||
The status of the rule: 0 - Off, 1 - Warning, 2 - Error | ||
An array of names of properties that you don't want to require comments | ||
##### ember-extend-comments | ||
An example would be: | ||
Enforce comments in .extend blocks for properties. `ember-extend-comments` will only look one depth level into the block and will enforce that properties are given comments above. | ||
Parameters: | ||
- The status of the rule: 0 - Off, 1 - Warning, 2 - Error | ||
- An array of names of properties that you don't want to require comments | ||
``` | ||
"ember/ember-extend-comments": [2, ["actions", "classnames"]] | ||
"ember/ember-extend-comments": [2, ["actions", "classnames"]] | ||
``` | ||
### Enforce comments in .reopenclass blocks for properties (ember-reopenclass-comments) | ||
##### ember-reopenclass-comments | ||
ember-reopenclass-comments will only look one depth level into the block and will enforce | ||
that properties are given comments above. | ||
Enforce comments in .reopenclass blocks for properties. `ember-reopenclass-comments` will only look one depth level into the block and will enforce that properties are given comments above. | ||
Takes in two parameters: | ||
The status of the rule: 0 - Off, 1 - Warning, 2 - Error | ||
An array of names of properties that you don't want to require comments | ||
Parameters: | ||
An example would be: | ||
- The status of the rule: 0 - Off, 1 - Warning, 2 - Error | ||
- An array of names of properties that you don't want to require comments | ||
``` | ||
"ember/ember-reopenclass-comments": [2, ["_class", "localStorage", "rawResponse"]] | ||
"ember/ember-reopenclass-comments": [2, ["_class", "localStorage", "rawResponse"]] | ||
``` | ||
### Enforce a newline above and below a .extend block (ember-newline-extend) | ||
##### ember-newline-extend | ||
Takes in one parameter: | ||
The status of the rule: 0 - Off, 1 - Warning, 2 - Error | ||
Enforce a newline above and below a `.extend` block | ||
An example would be: | ||
Parameters: | ||
- The status of the rule: 0 - Off, 1 - Warning, 2 - Error | ||
``` | ||
"ember/ember-newline-extend": 2 | ||
"ember/ember-newline-extend": 2 | ||
``` | ||
### Enforce a newline above and below a .reopenclass block (ember-newline-reopenclass) | ||
##### ember-newline-reopenclass | ||
Takes in one parameter: | ||
The status of the rule: 0 - Off, 1 - Warning, 2 - Error | ||
Enforce a newline above and below a `.reopenclass` block | ||
An example would be: | ||
Parameters: | ||
- The status of the rule: 0 - Off, 1 - Warning, 2 - Error | ||
``` | ||
"ember/ember-newline-extend": 2 | ||
"ember/ember-newline-extend": 2 | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
0
1
0
18759
72
1