Skip to content

Commit b783e47

Browse files
committed
⚡️ Fix major slowness in ESLint
1 parent 5c67651 commit b783e47

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.eslintrc.cjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @type {import("eslint").Linter.BaseConfig} */
12
module.exports = {
23
root: true,
34
parser: '@typescript-eslint/parser',
@@ -10,20 +11,21 @@ module.exports = {
1011
'plugin:storybook/recommended',
1112
],
1213
plugins: ['svelte3', '@typescript-eslint'],
13-
ignorePatterns: ['*.cjs'],
1414
overrides: [
1515
{
1616
files: ['*.svelte'],
1717
processor: 'svelte3/svelte3',
1818
},
1919
],
2020
settings: {
21-
'svelte3/typescript': () => require('typescript'),
21+
'svelte3/typescript': true,
2222
},
2323
parserOptions: {
2424
sourceType: 'module',
2525
ecmaVersion: 2020,
2626
project: './tsconfig.eslint.json',
27+
tsconfigRootDir: __dirname,
28+
extraFileExtensions: ['.svelte'],
2729
},
2830
env: {
2931
browser: true,

postcss.config.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @type {import("postcss").Postcss} */
12
module.exports = {
23
plugins: {
34
tailwindcss: {},

0 commit comments

Comments
 (0)