diff --git a/eslint-local-rules/__tests__/lint-markdown-code-blocks.test.js b/eslint-local-rules/__tests__/lint-markdown-code-blocks.test.js index f0b0e991e..26fffcdad 100644 --- a/eslint-local-rules/__tests__/lint-markdown-code-blocks.test.js +++ b/eslint-local-rules/__tests__/lint-markdown-code-blocks.test.js @@ -11,12 +11,7 @@ const path = require('path'); const {ESLint} = require('eslint'); const plugin = require('..'); -const FIXTURES_DIR = path.join( - __dirname, - 'fixtures', - 'src', - 'content' -); +const FIXTURES_DIR = path.join(__dirname, 'fixtures', 'src', 'content'); const PARSER_PATH = path.join(__dirname, '..', 'parser.js'); function createESLint({fix = false} = {}) { @@ -53,11 +48,7 @@ async function lintFixture(name, {fix = false} = {}) { async function run() { const basicResult = await lintFixture('basic-error.md'); - assert.strictEqual( - basicResult.messages.length, - 1, - 'expected one diagnostic' - ); + assert.strictEqual(basicResult.messages.length, 1, 'expected one diagnostic'); assert( basicResult.messages[0].message.includes('Calling setState during render'), 'expected message to mention setState during render' @@ -91,9 +82,7 @@ async function run() { fix: true, }); assert( - duplicateFixed.output.includes( - "{expectedErrors: {'react-compiler': [4]}}" - ), + duplicateFixed.output.includes("{expectedErrors: {'react-compiler': [4]}}"), 'expected duplicates to be rewritten to a single canonical block' ); assert( @@ -118,9 +107,7 @@ async function run() { fix: true, }); assert( - malformedFixed.output.includes( - "{expectedErrors: {'react-compiler': [4]}}" - ), + malformedFixed.output.includes("{expectedErrors: {'react-compiler': [4]}}"), 'expected malformed metadata to be replaced with canonical form' ); @@ -156,7 +143,7 @@ async function run() { ); } -run().catch(error => { +run().catch((error) => { console.error(error); process.exitCode = 1; }); diff --git a/yarn.lock b/yarn.lock index af2509594..3d733c35f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3646,6 +3646,7 @@ eslint-plugin-jsx-a11y@^6.4.1: "eslint-plugin-local-rules@link:eslint-local-rules": version "0.0.0" + uid "" eslint-plugin-react-compiler@^19.0.0-beta-e552027-20250112: version "19.0.0-beta-e552027-20250112" @@ -6063,9 +6064,9 @@ mz@^2.7.0: thenify-all "^1.0.0" nanoid@^3.3.16, nanoid@^3.3.6: - version "3.3.17" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.17.tgz#f1c3aa253c52547956a52c50bff754316f61037a" - integrity sha512-xQLf0A3HOMlgHq0n247/LRuAOYmB7dXJ/DvAxGvsSBij45XtBSmQycu+F8ODbHwns/XyFZagyL1+J0Offw1E0g== + version "3.3.20" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.20.tgz#dfd4444d85aa10111ef66ba85ed72e08ba0855d8" + integrity sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ== natural-compare-lite@^1.4.0: version "1.4.0"