Skip to content

Commit

Permalink
Fix typo in ignorePatterns for the generated TypeScript .eslintrc.cjs (
Browse files Browse the repository at this point in the history
  • Loading branch information
jimpala authored Mar 26, 2021
1 parent 1ffee24 commit bdf4ed9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/famous-rules-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

Fix typo in `ignorePatterns` for the `.eslintrc.cjs` generated for TypeScript projects so that `.eslintrc.cjs` correctly ignores itself.
2 changes: 1 addition & 1 deletion packages/create-svelte/template-additions/.eslintrc.ts.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
plugins: ['svelte3', '@typescript-eslint'],
ignorePatterns: ['.eslintrc.js'],
ignorePatterns: ['.eslintrc.cjs'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
settings: {
'svelte3/typescript': require('typescript')
Expand Down

0 comments on commit bdf4ed9

Please sign in to comment.