Skip to content

Commit 0b3b5a1

Browse files
committed
[eslint config] [base] [deps] update eslint, tape
1 parent 780be0d commit 0b3b5a1

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

packages/eslint-config-airbnb-base/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@
4747
"devDependencies": {
4848
"babel-preset-airbnb": "^2.1.1",
4949
"babel-tape-runner": "^2.0.1",
50-
"eslint": "^3.10.2",
50+
"eslint": "^3.11.1",
5151
"eslint-find-rules": "^1.14.3",
5252
"eslint-plugin-import": "^2.2.0",
5353
"in-publish": "^2.0.0",
5454
"safe-publish-latest": "^1.1.1",
55-
"tape": "^4.6.2"
55+
"tape": "^4.6.3"
5656
},
5757
"peerDependencies": {
58-
"eslint": "^3.10.2",
58+
"eslint": "^3.11.1",
5959
"eslint-plugin-import": "^2.2.0"
6060
},
6161
"engines": {

packages/eslint-config-airbnb-base/rules/best-practices.js

+4
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,10 @@ module.exports = {
256256
// require use of the second argument for parseInt()
257257
radix: 'error',
258258

259+
// require `await` in `async function` (note: this is a horrible rule that should never be used)
260+
// http://eslint.org/docs/rules/require-await
261+
'require-await': 'off',
262+
259263
// requires to declare all vars on top of their containing scope
260264
'vars-on-top': 'error',
261265

packages/eslint-config-airbnb-base/rules/style.js

+15
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,21 @@ module.exports = {
1313
// require camel case names
1414
camelcase: ['error', { properties: 'never' }],
1515

16+
// enforce or disallow capitalization of the first letter of a comment
17+
// http://eslint.org/docs/rules/capitalized-comments
18+
'capitalized-comments': ['off', 'never', {
19+
line: {
20+
ignorePattern: '.*',
21+
ignoreInlineComments: true,
22+
ignoreConsecutiveComments: true,
23+
},
24+
block: {
25+
ignorePattern: '.*',
26+
ignoreInlineComments: true,
27+
ignoreConsecutiveComments: true,
28+
},
29+
}],
30+
1631
// enforce spacing before and after comma
1732
'comma-spacing': ['error', { before: false, after: true }],
1833

0 commit comments

Comments
 (0)