eslint-config-powel
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -11,2 +11,3 @@ 'use strict'; | ||
'generator-star-spacing': 0, | ||
'array-bracket-spacing': 0, | ||
'object-shorthand': 0, | ||
@@ -17,4 +18,5 @@ | ||
'babel/object-curly-spacing': [1, 'always'], | ||
'babel/array-bracket-spacing': [1, 'never'], | ||
'babel/object-shorthand': [1, 'always'] | ||
} | ||
}; |
{ | ||
"name": "eslint-config-powel", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Powel ESLint configs", | ||
@@ -16,3 +16,3 @@ "main": "index.js", | ||
"eslint-config-standard": "^6.0.0", | ||
"eslint-plugin-promise": "^2.0.0", | ||
"eslint-plugin-promise": "^3.0.0", | ||
"eslint-plugin-standard": "^2.0.0" | ||
@@ -19,0 +19,0 @@ }, |
# eslint-config-powel | ||
[Shareable ESLint configs](http://eslint.org/docs/developer-guide/shareable-configs) to be used in Powel web projects. Based on [semistandard](https://github.com/Flet/semistandard). | ||
[![Version npm](http://img.shields.io/npm/v/eslint-config-powel.svg?style=flat-square)](http://browsenpm.org/package/eslint-config-powel) | ||
ESLint configuration presets for Powel projects. | ||
## Usage | ||
@@ -21,3 +23,3 @@ | ||
### Babel ES6 | ||
### Babel | ||
@@ -38,2 +40,18 @@ To use the Babel rule set: | ||
### Flow | ||
To use the [flow](https://flowtype.org) rule set: | ||
```sh | ||
npm i -D eslint eslint-config-powel babel-eslint eslint-plugin-flowtype eslint-plugin-flowtype-errors | ||
``` | ||
Add this to your `.eslintrc`: | ||
```js | ||
{ | ||
"extends": "powel/flow" | ||
} | ||
``` | ||
### React | ||
@@ -55,5 +73,21 @@ | ||
### Import | ||
To use the `eslint-plugin-import` rule set: | ||
```sh | ||
npm i -D eslint eslint-config-powel eslint-plugin-import | ||
``` | ||
Add this to your `.eslintrc`: | ||
```js | ||
{ | ||
"extends": "powel/import" | ||
} | ||
``` | ||
## Composition | ||
You can use any combination of these shareable configs. | ||
You can use any combination of these presets. | ||
@@ -63,3 +97,3 @@ Install the dependencies: | ||
```sh | ||
npm i -D eslint eslint-config-powel eslint-config-semistandard babel-eslint eslint-plugin-babel eslint-plugin-react | ||
npm i -D eslint eslint-config-powel eslint-config-semistandard babel-eslint eslint-plugin-babel eslint-plugin-flowtype eslint-plugin-flowtype-errors eslint-plugin-import eslint-plugin-react | ||
``` | ||
@@ -74,2 +108,4 @@ | ||
"powel/babel", | ||
"powel/flow", | ||
"powel/import", | ||
"powel/react" | ||
@@ -76,0 +112,0 @@ ], |
@@ -7,2 +7,3 @@ 'use strict'; | ||
var babelConfig = require('../babel'); | ||
var flowConfig = require('../flow'); | ||
var importConfig = require('../import'); | ||
@@ -22,2 +23,6 @@ | ||
assert(flowConfig.parser === 'babel-eslint'); | ||
assert(~flowConfig.plugins.indexOf('flowtype')); | ||
assert(~flowConfig.plugins.indexOf('flowtype-errors')); | ||
assert(~importConfig.plugins.indexOf('import')); |
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
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
7636
12
136
113