1.5.0 • Published 8 years ago
eslint-config-opinionated v1.5.0
eslint-config-opinionated
Opinionated set of ESLint rules
A set of ESLint rules, following this hierarchy:
opinionated
: common denominator rulesopinionated/node
: Node.js specific rulesopinionated/browser
: browser specific rulesopinionated/react
: React specific rulesopinionated/react-native
: React Native specific rules
opinionated/fp
: functional programming rules focusing on immutability
Install
$ npm install --save-dev eslint eslint-config-opinionated
Usage
Let your ESLint configuration know about this package:
module.exports = {
extends: 'opinionated',
}
Or you can extend a specific configuration optimized for an environment:
module.exports = {
extends: 'opinionated/node',
}
It is possible to extend several configurations:
module.exports = {
extends: [
'opinionated/node',
'opinionated/fp',
],
}
Changelog
1.5.0
- Update
max-statements
,newline-after-var
,newline-before-return
rules
- Update
1.4.1
- Update
func-style
to declaration
- Update
1.4.0
- Update
func-style
rule
- Update
1.3.0
- Update
one-var
rule
- Update
1.2.0
- Update
padded-blocks
rule
- Update
1.1.0
- Add missing ES6 rules
1.0.0
- Bump stable
License
Creative Commons — CC0 1.0 Universal
To the extent possible under law, Aymeric Beaumet has waived all copyright and related or neighboring rights to this work.