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