Skip to content

Commit 2087a42

Browse files
committed
[eslint config] [base] [deps] update eslint
1 parent 8cf2c70 commit 2087a42

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@
5151
"babel-preset-airbnb": "^2.4.0",
5252
"babel-tape-runner": "^2.0.1",
5353
"editorconfig-tools": "^0.1.1",
54-
"eslint": "^4.9.0",
54+
"eslint": "^4.12.1",
5555
"eslint-find-rules": "^3.1.1",
5656
"eslint-plugin-import": "^2.8.0",
5757
"in-publish": "^2.0.0",
5858
"safe-publish-latest": "^1.1.1",
5959
"tape": "^4.8.0"
6060
},
6161
"peerDependencies": {
62-
"eslint": "^4.9.0",
62+
"eslint": "^4.12.1",
6363
"eslint-plugin-import": "^2.8.0"
6464
},
6565
"engines": {

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ module.exports = {
6464

6565
// disallow specific imports
6666
// https://eslint.org/docs/rules/no-restricted-imports
67-
'no-restricted-imports': 'off',
67+
'no-restricted-imports': ['off', {
68+
paths: [],
69+
patterns: []
70+
}],
6871

6972
// disallow to use this/super before super() calling in constructors.
7073
// https://eslint.org/docs/rules/no-this-before-super

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ module.exports = {
9797
// require identifiers to match the provided regular expression
9898
'id-match': 'off',
9999

100+
// Enforce the location of arrow function bodies with implicit returns
101+
// https://eslint.org/docs/rules/implicit-arrow-linebreak
102+
// TODO: enable, semver-major
103+
'implicit-arrow-linebreak': ['off', 'beside'],
104+
100105
// this option sets a specific tab width for your code
101106
// https://eslint.org/docs/rules/indent
102107
indent: ['error', 2, {

0 commit comments

Comments
 (0)