diff --git a/.eslintrc.js b/.eslintrc.js index 76dcc0a..9e72e41 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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'}], @@ -40,6 +46,7 @@ module.exports = { yoda: ['error', 'always', {exceptRange: true}] }, parserOptions: { + ecmaVersion: 6, sourceType: 'module' } } diff --git a/package.json b/package.json index b9cec83..9987a54 100644 --- a/package.json +++ b/package.json @@ -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",