Skip to content

Commit

Permalink
ci: run ESLint for svelte files
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-reimann committed Feb 13, 2024
1 parent 1f574fc commit 8bed4f6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,12 @@ module.exports = {
'no-console': 'off',
},
},
{
files: ['*.svelte'],
rules: {
// Leads to false positives when running ESLint in CI with the MegaLinter
'import/no-unresolved': 'off',
},
},
],
};
6 changes: 5 additions & 1 deletion .mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ JSON_PRETTIER_FILE_EXTENSIONS:
- .html
- .svelte

TSX_ESLINT_FILE_EXTENSIONS:
- .tsx
- .svelte

# Commands
PRE_COMMANDS:
- command: npm i @lars-reimann/eslint-config-svelte @lars-reimann/prettier-config-svelte
- command: npm i @lars-reimann/eslint-config-svelte eslint-plugin-vitest @lars-reimann/prettier-config-svelte

0 comments on commit 8bed4f6

Please sign in to comment.