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

eslint-plugin-ideal

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-ideal - npm Package Compare versions

Comparing version 0.0.3 to 0.1.0

lib/rules/vars-on-newline.js

8

index.js

@@ -10,7 +10,11 @@ /**

rules: {
"no-tabs-in-file": require("./lib/rules/no-tabs-in-file")
"no-tabs-in-file": require("./lib/rules/no-tabs-in-file"),
"vars-with-default": require("./lib/rules/vars-with-default"),
"vars-on-newline": require("./lib/rules/vars-on-newline")
},
rulesConfig: {
"no-tabs-in-file": 2
"no-tabs-in-file": 2,
"vars-with-default": 2,
"vars-on-newline": 2
}
};
{
"name": "eslint-plugin-ideal",
"version": "0.0.3",
"version": "0.1.0",
"description": "ESLint rules",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -1,2 +0,2 @@

[![NPM version](https://badge.fury.io/js/eslint-plugin-ideal.svg)](http://badge.fury.io/js/eslint-plugin-ideal)
[![NPM version](https://badge.fury.io/js/eslint-plugin-ideal.svg?style=flat-square)](http://badge.fury.io/js/eslint-plugin-ideal)
[![Build Status](https://travis-ci.org/gyandeeps/eslint-plugin-ideal.svg?branch=master)](http://travis-ci.org/gyandeeps/eslint-plugin-ideal)

@@ -7,2 +7,72 @@

Coming soon
#How to use
## Install [ESLint](https://www.github.com/eslint/eslint) either locally or globally
```sh
npm install eslint@">=1.0.0"
or
npm install eslint@">=1.0.0" --save-dev
```
eslint-plugin-ideal requires `ESLint` with version greater then 1.0.0 if you would like to use your own base models.
## Install ideal plugins.
If you installed `ESLint` globally, you have to install ideal plugin globally too. Otherwise, install it locally.
```bash
npm install eslint-plugin-ideal
or
npm install eslint-plugin-ideal --save-dev
```
## Default configuration
If you are using ESLint >0.9.0 then this plugin will provide default configuration. If you are fine with defaults, you do not need to update your .eslintrc file.
Defaults are currently set to the following:
```json
{
"no-tabs-in-file": 2,
"vars-with-default": 2,
"vars-on-newline": 2
}
```
## Modify .eslintrc for your project
Add `plugins` section and specify eslint-plugin-backbone as a plugin
```json
{
"plugins": [
"ideal"
]
}
```
Enable all of the rules that you would like to use
```json
{
"rules": {
"ideal/no-tabs-in-file": 1,
"ideal/vars-with-default": 1,
"ideal/vars-on-newline": 1
}
}
```
#List of supported rules
* [no-tabs-in-file](docs/rules/no-tabs-in-file.md)
* [vars-with-default](docs/rules/vars-with-default.md)
* [vars-on-newline](docs/rules/vars-on-newline.md)
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