Skip to content

Commit

Permalink
fix: correct new rule docs path (#869)
Browse files Browse the repository at this point in the history
Current `new-rule.ts` script generates a doc inside the
`./packages/eslint-plugin-svelte`, instead of creating a doc in the
actual
`./docs` folder.
  • Loading branch information
mikededo authored Oct 10, 2024
1 parent cf6c842 commit 8c85a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-plugin-svelte/tools/new-rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void (async (ruleId) => {

const ruleFile = path.resolve(__dirname, `../src/rules/${ruleId}.ts`);
const testFile = path.resolve(__dirname, `../tests/src/rules/${ruleId}.ts`);
const docFile = path.resolve(__dirname, `../docs/rules/${ruleId}.md`);
const docFile = path.resolve(__dirname, `../../../docs/rules/${ruleId}.md`);
const fixturesRoot = path.resolve(__dirname, `../tests/fixtures/rules/${ruleId}/`);
try {
fs.mkdirSync(path.dirname(ruleFile), { recursive: true });
Expand Down

0 comments on commit 8c85a17

Please sign in to comment.