Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thiagogarbazza/eslint-config-restrict
An ESLint shareable config for the restrict js coding style.
https://github.com/thiagogarbazza/eslint-config-restrict
eslint eslint-config
Last synced: about 6 hours ago
JSON representation
An ESLint shareable config for the restrict js coding style.
- Host: GitHub
- URL: https://github.com/thiagogarbazza/eslint-config-restrict
- Owner: thiagogarbazza
- License: mit
- Created: 2016-08-02T19:39:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-16T12:59:06.000Z (over 7 years ago)
- Last Synced: 2024-11-06T15:11:31.377Z (12 days ago)
- Topics: eslint, eslint-config
- Language: JavaScript
- Homepage:
- Size: 37.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-config-restrict
[![Build Status](https://travis-ci.org/thiagogarbazza/eslint-config-restrict.svg?branch=master)](https://travis-ci.org/thiagogarbazza/eslint-config-restrict)
[](http://eslint.org)
> An [ESLint] [shareable config] for the _restrict js_ coding style.
Ensure your source code adheres to the _restrict js_ coding style by linting
your code with [ESLint]. Hook ESLint into your editor and build pipeline for
maximum effect.## Install
```sh
npm i --save-dev eslint-config-restrict
```## Usage
In your `.eslintrc.json` file:
```json
{
"extends": "restrict"
}
```### Overrides
You can easily override rules in your own `.eslintrc.json` config. For example,
to use 4 space indents instead of 2:
```json
{
"extends": "restrict",
"rules": {
"indent": ["error", 4]
}
}
```### ES5
`eslint-config-restrict` is ES6+ by default. To use ES5, extend `restrict/es-5`
in your `.eslintrc.json`:
```json
{
"extends": "restrict/es-5"
}
```### Angular 1.x
To use Angular 1.x, extend `restrict/angular-1` in your `.eslintrc.json`:```json
{
"extends": "restrict/angular-1"
}
```### Jasmine
To use Jasmine, extend `restrict/jasmine` in your `.eslintrc.json`:
```json
{
"extends": "restrict/jasmine"
}
```[ESLint]: http://eslint.org/
[ESLint rules]: http://eslint.org/docs/rules/
[shareable config]: http://eslint.org/docs/developer-guide/shareable-configs.html
[awesome-eslint]: https://github.com/dustinspecker/awesome-eslint