From ff115f042392b26d4d52a2dc89f2d21312988dd5 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Wed, 16 Oct 2019 19:02:35 +0300 Subject: [PATCH] Update ESLint to v6.5 --- .eslintrc.yml | 3 +++ package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index 48c659e952..4c65f7adfe 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -79,6 +79,7 @@ rules: no-ex-assign: error no-extra-boolean-cast: error no-func-assign: error + no-import-assign: error no-inner-declarations: [error, both] no-invalid-regexp: error no-irregular-whitespace: error @@ -106,6 +107,7 @@ rules: consistent-return: off # TODO curly: [error, all] default-case: off + default-param-last: off # TODO dot-notation: off eqeqeq: [error, smart] guard-for-in: error @@ -163,6 +165,7 @@ rules: no-with: error prefer-named-capture-group: off # ES2018 prefer-promise-reject-errors: error + prefer-regex-literals: error radix: error require-await: off # TODO require-unicode-regexp: off diff --git a/package.json b/package.json index 6265385317..ea48dffdf9 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "babel-eslint": "10.0.3", "chai": "4.2.0", "dtslint": "^0.9.6", - "eslint": "6.3.0", + "eslint": "6.5.1", "eslint-plugin-flowtype": "4.3.0", "flow-bin": "0.109.0", "mocha": "6.2.0", diff --git a/yarn.lock b/yarn.lock index 0f8d9bc501..32c3f12faf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1270,10 +1270,10 @@ eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz#e2a82cea84ff246ad6fb57f9bde5b46621459ec2" integrity sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A== -eslint@6.3.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.3.0.tgz#1f1a902f67bfd4c354e7288b81e40654d927eb6a" - integrity sha512-ZvZTKaqDue+N8Y9g0kp6UPZtS4FSY3qARxBs7p4f0H0iof381XHduqVerFWtK8DPtKmemqbqCFENWSQgPR/Gow== +eslint@6.5.1: + version "6.5.1" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.5.1.tgz#828e4c469697d43bb586144be152198b91e96ed6" + integrity sha512-32h99BoLYStT1iq1v2P9uwpyznQ4M2jRiFB6acitKz52Gqn+vPaMDUTB1bYi1WN4Nquj2w+t+bimYUG83DC55A== dependencies: "@babel/code-frame" "^7.0.0" ajv "^6.10.0"