eslint-config-warp
Advanced tools
Comparing version 1.2.0 to 2.0.0
11
es6.js
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
module.exports = { | ||
@@ -7,3 +9,2 @@ | ||
ecmaVersion: 6, | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
@@ -36,5 +37,9 @@ experimentalObjectRestSpread: true | ||
'rest-spread-spacing': [2, 'never'], | ||
'template-curly-spacing': [2, 'never'] | ||
'template-curly-spacing': [2, 'never'], | ||
'no-return-await': [2], | ||
'require-await': [2], | ||
'no-await-in-loop': [2], | ||
'prefer-promise-reject-errors': [2] | ||
} | ||
} | ||
}; |
22
index.js
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
module.exports = { | ||
@@ -56,2 +58,6 @@ | ||
'no-use-before-define': [2], | ||
'func-name-matching': [2], | ||
'no-useless-return': [2], | ||
'nonblock-statement-body-position': [2, 'beside'], | ||
'for-direction': [2], | ||
@@ -69,3 +75,3 @@ //Code quality. | ||
'no-lonely-if': [2], | ||
'no-multiple-empty-lines': [2], | ||
'no-multiple-empty-lines': [2, {max: 1}], | ||
'no-new-object': [2], | ||
@@ -101,6 +107,16 @@ 'no-trailing-spaces': [2], | ||
'key-spacing': [2, {beforeColon: false, afterColon: true, mode: 'minimum'}], | ||
'brace-style': [2, '1tbs', {allowSingleLine: true}] | ||
'brace-style': [2, '1tbs', {allowSingleLine: true}], | ||
'switch-colon-spacing': [2, {after: true, before: false}], | ||
'semi-style': [2, 'last'], | ||
'padding-line-between-statements': [2, | ||
{blankLine: 'always', prev: '*', next: 'function'}, | ||
{blankLine: 'always', prev: 'function', next: '*'}, | ||
{blankLine: 'always', prev: '*', next: 'multiline-block-like'}, | ||
{blankLine: 'always', prev: 'multiline-block-like', next: '*'}, | ||
{blankLine: 'always', prev: 'directive', next: '*'}, | ||
{blankLine: 'never', prev: 'var', next: 'var'} | ||
] | ||
} | ||
} | ||
}; |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
module.exports = { | ||
@@ -15,2 +17,2 @@ | ||
} | ||
}; |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
module.exports = { | ||
@@ -18,5 +20,6 @@ | ||
'no-new-require': [2], | ||
'no-path-concat': [2] | ||
'no-path-concat': [2], | ||
'no-buffer-constructor': [2] | ||
} | ||
} | ||
}; |
{ | ||
"name": "eslint-config-warp", | ||
"version": "1.2.0", | ||
"version": "2.0.0", | ||
"description": "WeAreReasonablePeople linting rules", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "eslint -c node.js .", | ||
"release": "npm outdated --long && xyz --edit --repo git@github.com:wearereasonablepeople/eslint-config-warp.git --tag 'X.Y.Z' --increment" | ||
}, | ||
@@ -19,5 +20,9 @@ "repository": { | ||
"peerDependencies": { | ||
"eslint": "^3.5.0" | ||
"eslint": "4.x.x" | ||
}, | ||
"homepage": "https://github.com/wearereasonablepeople/eslint-config-warp#readme" | ||
"homepage": "https://github.com/wearereasonablepeople/eslint-config-warp#readme", | ||
"devDependencies": { | ||
"xyz": "^2.1.0", | ||
"eslint": "4.x.x" | ||
} | ||
} |
@@ -38,2 +38,10 @@ # WARP ESLint Configuration | ||
**ES6 module** | ||
```json | ||
{ | ||
"extends": ["warp/module"] | ||
} | ||
``` | ||
**Combining rulesets** | ||
@@ -40,0 +48,0 @@ |
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
7659
8
187
0
73
2