mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-13 21:48:05 -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.15.0",
|
||||
"eslint": "^4.16.0",
|
||||
"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.15.0",
|
||||
"eslint": "^4.16.0",
|
||||
"eslint-plugin-import": "^2.8.0"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
@@ -51,7 +51,21 @@ module.exports = {
|
||||
'comma-spacing': ['error', { before: false, after: true }],
|
||||
|
||||
// enforce one true comma style
|
||||
'comma-style': ['error', 'last'],
|
||||
'comma-style': ['error', 'last', {
|
||||
exceptions: {
|
||||
ArrayExpression: false,
|
||||
ArrayPattern: false,
|
||||
ArrowFunctionExpression: false,
|
||||
CallExpression: false,
|
||||
FunctionDeclaration: false,
|
||||
FunctionExpression: false,
|
||||
ImportDeclaration: false,
|
||||
ObjectExpression: false,
|
||||
ObjectPattern: false,
|
||||
VariableDeclaration: false,
|
||||
NewExpression: false,
|
||||
}
|
||||
}],
|
||||
|
||||
// disallow padding inside computed properties
|
||||
'computed-property-spacing': ['error', 'never'],
|
||||
@@ -375,7 +389,7 @@ module.exports = {
|
||||
// enforce "same line" or "multiple line" on object properties.
|
||||
// https://eslint.org/docs/rules/object-property-newline
|
||||
'object-property-newline': ['error', {
|
||||
allowMultiplePropertiesPerLine: true,
|
||||
allowAllPropertiesOnSameLine: true,
|
||||
}],
|
||||
|
||||
// allow just one var statement per function
|
||||
|
||||
Reference in New Issue
Block a user