Skip to content

Commit

Permalink
reduce global ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Jun 5, 2024
1 parent 6d38812 commit 596592d
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,32 @@ import svelte_config from '@sveltejs/eslint-config';
export default [
...svelte_config,
{
languageOptions: {
parserOptions: {
project: true
}
},
rules: {
'@typescript-eslint/await-thenable': 'error',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/require-await': 'error',
'no-undef': 'off'
}
},
{
// global ignores. must be specified alone
ignores: [
'**/.svelte-kit',
'packages/adapter-static/test/apps/*/build',
'packages/adapter-cloudflare/files',
'packages/adapter-netlify/files',
'packages/adapter-node/files',
'packages/adapter-node/files'
]
},
{
languageOptions: {
parserOptions: {
project: true
}
},
rules: {
'@typescript-eslint/await-thenable': 'error',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/require-await': 'error',
},
ignores: [
'packages/adapter-node/rollup.config.js',
'packages/adapter-node/tests/smoke.spec.js',
'packages/adapter-static/test/apps',
Expand Down

0 comments on commit 596592d

Please sign in to comment.