[eslint config] [base] [deps] update eslint

This commit is contained in:
Jordan Harband
2017-11-29 23:43:55 -08:00
parent 8cf2c70a41
commit 2087a42b51
3 changed files with 11 additions and 3 deletions

View File

@@ -51,7 +51,7 @@
"babel-preset-airbnb": "^2.4.0",
"babel-tape-runner": "^2.0.1",
"editorconfig-tools": "^0.1.1",
"eslint": "^4.9.0",
"eslint": "^4.12.1",
"eslint-find-rules": "^3.1.1",
"eslint-plugin-import": "^2.8.0",
"in-publish": "^2.0.0",
@@ -59,7 +59,7 @@
"tape": "^4.8.0"
},
"peerDependencies": {
"eslint": "^4.9.0",
"eslint": "^4.12.1",
"eslint-plugin-import": "^2.8.0"
},
"engines": {

View File

@@ -64,7 +64,10 @@ module.exports = {
// disallow specific imports
// https://eslint.org/docs/rules/no-restricted-imports
'no-restricted-imports': 'off',
'no-restricted-imports': ['off', {
paths: [],
patterns: []
}],
// disallow to use this/super before super() calling in constructors.
// https://eslint.org/docs/rules/no-this-before-super

View File

@@ -97,6 +97,11 @@ module.exports = {
// require identifiers to match the provided regular expression
'id-match': 'off',
// Enforce the location of arrow function bodies with implicit returns
// https://eslint.org/docs/rules/implicit-arrow-linebreak
// TODO: enable, semver-major
'implicit-arrow-linebreak': ['off', 'beside'],
// this option sets a specific tab width for your code
// https://eslint.org/docs/rules/indent
indent: ['error', 2, {