Skip to content

Commit

Permalink
Update dependencies (#1849)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Jun 29, 2022
1 parent ff286a1 commit 75c9214
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion docs/rules/prefer-module.md
Expand Up @@ -53,7 +53,7 @@ Prefer using the [JavaScript module](https://developer.mozilla.org/en-US/docs/We

`export …` should be used in JavaScript modules.

_`.cjs` files are ignored._
*`.cjs` files are ignored.*

## Fail

Expand Down
30 changes: 15 additions & 15 deletions package.json
Expand Up @@ -47,7 +47,7 @@
],
"dependencies": {
"@babel/helper-validator-identifier": "^7.18.6",
"ci-info": "^3.3.0",
"ci-info": "^3.3.2",
"clean-regexp": "^1.0.0",
"eslint-utils": "^3.0.0",
"esquery": "^1.4.0",
Expand All @@ -58,39 +58,39 @@
"read-pkg-up": "^7.0.1",
"regexp-tree": "^0.1.24",
"safe-regex": "^2.1.1",
"semver": "^7.3.5",
"semver": "^7.3.7",
"strip-indent": "^3.0.0"
},
"devDependencies": {
"@babel/code-frame": "^7.18.6",
"@babel/core": "^7.18.6",
"@babel/eslint-parser": "^7.18.2",
"@lubien/fixture-beta-package": "^1.0.0-beta.1",
"@typescript-eslint/parser": "^5.7.0",
"@typescript-eslint/parser": "^5.30.0",
"ava": "^3.15.0",
"c8": "^7.11.0",
"chalk": "^5.0.0",
"c8": "^7.11.3",
"chalk": "^5.0.1",
"enquirer": "^2.3.6",
"eslint": "^8.8.0",
"eslint": "^8.18.0",
"eslint-ava-rule-tester": "^4.0.0",
"eslint-plugin-eslint-plugin": "^4.1.0",
"eslint-plugin-eslint-plugin": "^4.3.0",
"eslint-plugin-internal-rules": "file:./scripts/internal-rules/",
"eslint-remote-tester": "^3.0.0",
"eslint-remote-tester-repositories": "^0.0.6",
"execa": "^6.0.0",
"execa": "^6.1.0",
"listr": "^0.14.3",
"lodash-es": "^4.17.21",
"markdownlint-cli": "^0.30.0",
"mem": "^9.0.1",
"npm-package-json-lint": "^5.4.2",
"markdownlint-cli": "^0.31.1",
"mem": "^9.0.2",
"npm-package-json-lint": "^6.3.0",
"npm-run-all": "^4.1.5",
"outdent": "^0.8.0",
"typescript": "^4.5.4",
"vue-eslint-parser": "^8.0.1",
"xo": "^0.48.0"
"typescript": "^4.7.4",
"vue-eslint-parser": "^9.0.3",
"xo": "^0.50.0"
},
"peerDependencies": {
"eslint": ">=8.8.0"
"eslint": ">=8.18.0"
},
"ava": {
"files": [
Expand Down
1 change: 1 addition & 0 deletions rules/prefer-json-parse-buffer.js
Expand Up @@ -71,6 +71,7 @@ const isUtf8EncodingString = value => {

value = value.toLowerCase();

// eslint-disable-next-line unicorn/text-encoding-identifier-case
return value === 'utf8' || value === 'utf-8';
};

Expand Down
4 changes: 3 additions & 1 deletion rules/text-encoding-identifier-case.js
Expand Up @@ -10,8 +10,9 @@ const messages = {

const getReplacement = encoding => {
switch (encoding.toLowerCase()) {
case 'utf8':
// eslint-disable-next-line unicorn/text-encoding-identifier-case
case 'utf-8':
case 'utf8':
return 'utf8';
case 'ascii':
return 'ascii';
Expand Down Expand Up @@ -40,6 +41,7 @@ const create = () => ({
}

if (
// eslint-disable-next-line unicorn/text-encoding-identifier-case
node.value === 'utf-8'
&& node.parent.type === 'JSXAttribute'
&& node.parent.value === node
Expand Down
2 changes: 0 additions & 2 deletions test/run-rules-on-codebase/lint.mjs
Expand Up @@ -33,8 +33,6 @@ const eslint = new ESLint({
// Not ready yet
'unicorn/prefer-string-replace-all': 'off',
'unicorn/prefer-at': 'off',
// TODO: Turn this on when `xo` updated `eslint-plugin-unicorn`
'unicorn/text-encoding-identifier-case': 'off',
},
overrides: [
{
Expand Down

0 comments on commit 75c9214

Please sign in to comment.