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

This commit is contained in:
Jordan Harband
2018-01-20 23:35:21 -08:00
parent 262b07b106
commit 7b1ced2bf7
2 changed files with 18 additions and 4 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.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": {

View File

@@ -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