Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-ember

Package Overview
Dependencies
Maintainers
2
Versions
189
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-ember - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

12

package.json
{
"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
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc