[eslint config] [base] [deps] update eslint, tape

This commit is contained in:
Jordan Harband
2016-12-06 01:58:13 -08:00
parent 780be0dcd9
commit 0b3b5a178f
3 changed files with 22 additions and 3 deletions

View File

@@ -47,15 +47,15 @@
"devDependencies": {
"babel-preset-airbnb": "^2.1.1",
"babel-tape-runner": "^2.0.1",
"eslint": "^3.10.2",
"eslint": "^3.11.1",
"eslint-find-rules": "^1.14.3",
"eslint-plugin-import": "^2.2.0",
"in-publish": "^2.0.0",
"safe-publish-latest": "^1.1.1",
"tape": "^4.6.2"
"tape": "^4.6.3"
},
"peerDependencies": {
"eslint": "^3.10.2",
"eslint": "^3.11.1",
"eslint-plugin-import": "^2.2.0"
},
"engines": {

View File

@@ -256,6 +256,10 @@ module.exports = {
// require use of the second argument for parseInt()
radix: 'error',
// require `await` in `async function` (note: this is a horrible rule that should never be used)
// http://eslint.org/docs/rules/require-await
'require-await': 'off',
// requires to declare all vars on top of their containing scope
'vars-on-top': 'error',

View File

@@ -13,6 +13,21 @@ module.exports = {
// require camel case names
camelcase: ['error', { properties: 'never' }],
// enforce or disallow capitalization of the first letter of a comment
// http://eslint.org/docs/rules/capitalized-comments
'capitalized-comments': ['off', 'never', {
line: {
ignorePattern: '.*',
ignoreInlineComments: true,
ignoreConsecutiveComments: true,
},
block: {
ignorePattern: '.*',
ignoreInlineComments: true,
ignoreConsecutiveComments: true,
},
}],
// enforce spacing before and after comma
'comma-spacing': ['error', { before: false, after: true }],