Skip to content

Commit

Permalink
package.json: update eslint versions
Browse files Browse the repository at this point in the history
These were pretty old, and didn't need to be locked down quite so
hard.  Update them, then deal with the fallout including the need to
have exceptions for the existing indentation.  A subsequent commit
might tighten these back up.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  • Loading branch information
pabigot committed Jul 10, 2021
1 parent 2fe3fdc commit 1e595b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ module.exports = {
camelcase: 'off',
curly: 'error',
eqeqeq: 'error',
indent: ['error', 2, {
ArrayExpression: 'first',
CallExpression: {arguments: 'first'},
MemberExpression: 'off',
ObjectExpression: 'first'
}],
'max-len': ['error', {code: 120, tabWidth: 2}],
'no-constant-condition': 'off',
'no-fallthrough': ['error', {commentPattern: 'FALLTHRU'}],
Expand All @@ -40,6 +46,7 @@ module.exports = {
yoda: ['error', 'always', {exceptRange: true}]
},
parserOptions: {
ecmaVersion: 6,
sourceType: 'module'
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"main": "./lib/Layout.js",
"devDependencies": {
"coveralls": "^3.0.0",
"eslint": "~4.18.2",
"eslint-config-google": "~0.9.1",
"eslint": "^7.30.0",
"eslint-config-google": "~0.14.0",
"eslint-plugin-pabigot": "~1.1.0",
"jsdoc": "~3.6.7",
"lodash": "~4.17.5",
Expand Down

0 comments on commit 1e595b4

Please sign in to comment.