diff options
-rw-r--r-- | .eslintrc.json | 2 | ||||
-rw-r--r-- | package-lock.json | 22 | ||||
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | site/.eslintrc.json | 1 |
4 files changed, 20 insertions, 7 deletions
diff --git a/.eslintrc.json b/.eslintrc.json index 8c52318b47..8c6a5a3e37 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -39,7 +39,9 @@ "unicorn/consistent-function-scoping": "off", "unicorn/explicit-length-check": "off", "unicorn/import-index": "off", + "unicorn/no-fn-reference-in-iterator": "off", "unicorn/no-for-loop": "off", + "unicorn/no-null": "off", "unicorn/no-unused-properties": "error", "unicorn/prefer-dataset": "off", "unicorn/prefer-includes": "off", diff --git a/package-lock.json b/package-lock.json index 75ca2a834e..6461ef3e61 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4001,15 +4001,16 @@ } }, "eslint-plugin-unicorn": { - "version": "18.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-18.0.1.tgz", - "integrity": "sha512-Y4bgygek4x4ogeMcSHr6MZi3frBPZ80eIpMOsxew7jAblb53OYflpRh0an62Z6jv/fw7D3TkXauqLOBWbT9adg==", + "version": "19.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-19.0.1.tgz", + "integrity": "sha512-fu0/h5mHXfBC6EkA3i2vCjsfC8j53+T9txGhNL4fpxJ+1JKsUKfv+tmXDgy0XnLHhFjnOZp4tRWJWbcykeIP2Q==", "dev": true, "requires": { "ci-info": "^2.0.0", "clean-regexp": "^1.0.0", "eslint-ast-utils": "^1.1.0", "eslint-template-visitor": "^1.1.0", + "eslint-utils": "^2.0.0", "import-modules": "^2.0.0", "lodash": "^4.17.15", "read-pkg-up": "^7.0.1", @@ -4019,6 +4020,15 @@ "semver": "^7.1.3" }, "dependencies": { + "eslint-utils": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.0.0.tgz", + "integrity": "sha512-0HCPuJv+7Wv1bACm8y5/ECVfYdfsAm9xmVb7saeFlxjPYALefjhbYoCkBjPdPzGH8wWyTpAez82Fh3VKYEZ8OA==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^1.1.0" + } + }, "find-up": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", @@ -4089,9 +4099,9 @@ } }, "semver": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.2.2.tgz", - "integrity": "sha512-Zo84u6o2PebMSK3zjJ6Zp5wi8VnQZnEaCP13Ul/lt1ANsLACxnJxq4EEm1PY94/por1Hm9+7xpIswdS5AkieMA==", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", + "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", "dev": true }, "type-fest": { diff --git a/package.json b/package.json index 3e5e5c100b..4f252b31d9 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ "eslint": "^6.8.0", "eslint-config-xo": "^0.29.1", "eslint-plugin-import": "^2.20.2", - "eslint-plugin-unicorn": "^18.0.1", + "eslint-plugin-unicorn": "^19.0.1", "find-unused-sass-variables": "^1.0.5", "glob": "^7.1.6", "hammer-simulator": "0.0.1", diff --git a/site/.eslintrc.json b/site/.eslintrc.json index 1d10223fc3..690606863e 100644 --- a/site/.eslintrc.json +++ b/site/.eslintrc.json @@ -35,6 +35,7 @@ "strict": "error", "unicorn/consistent-function-scoping": "off", "unicorn/no-for-loop": "off", + "unicorn/no-null": "off", "unicorn/prefer-dataset": "off", "unicorn/prefer-includes": "off", "unicorn/prefer-node-append": "off", |