mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 18:58:10 -05:00
[eslint config] [base] [deps] update eslint, tape
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -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',
|
||||
|
||||
|
||||
@@ -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 }],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user