Skip to content

Commit 2732d20

Browse files
committed
update config...
1 parent e66b48c commit 2732d20

2 files changed

Lines changed: 22 additions & 9 deletions

File tree

‎eslint.config.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default defineConfigWithVueTs(
1515
*
1616
* ESLint requires "ignores" key to be the only one in this object
1717
*/
18-
ignores: ['src-tauri'],
18+
ignores: ['src-tauri', 'public/docs/*'],
1919
},
2020

2121
pluginQuasar.configs.recommended(),

‎quasar.config.ts‎

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,14 @@ export default defineConfig((ctx) => {
152152
vueShim: true,
153153
extendTsConfig(ts) {
154154
// 1) Narrow Quasar's very broad include so vue-tsc doesn't crawl packages/**
155-
// ts.include = [
156-
// './**/*.d.ts',
157-
// '../src',
158-
// '../src/**/*.vue',
159-
// '../env.d.ts',
160-
// '../.quasar/**/*.d.ts',
161-
// ]
155+
ts.include?.push(
156+
'./../packages/taskyon/src/**/*',
157+
//'./**/*.d.ts',
158+
//'../src',
159+
//'../src/**/*.vue',
160+
//'../env.d.ts',
161+
//'../.quasar/**/*.d.ts',
162+
)
162163

163164
// for some reason, adding references here doesn't work very well...
164165
//ts.files = []
@@ -183,8 +184,15 @@ export default defineConfig((ctx) => {
183184
// ts.compilerOptions.paths['app/*'] = ['../src/*']
184185
// }
185186
// // (optional) you can also remove it completely:
187+
delete ts.compilerOptions?.paths['app']
186188
delete ts.compilerOptions?.paths['app/*']
187189

190+
// we can't do this, because we want everything to be under
191+
// @ŧaskyon/taskyon package :)
192+
/*if (ts.compilerOptions?.paths) {
193+
ts.compilerOptions.paths.taskyon = ['./../packages/taskyon/src']
194+
ts.compilerOptions.paths['taskyon/*'] = ['./../packages/taskyon/src/*']
195+
}*/
188196
return ts
189197
},
190198
},
@@ -354,7 +362,12 @@ export default defineConfig((ctx) => {
354362
{
355363
vueTsc: true,
356364
eslint: {
357-
lintCommand: 'eslint -c ./eslint.config.js "./src*/**/*.{ts,js,mjs,cjs,vue}"',
365+
lintCommand: [
366+
'eslint',
367+
'-c ./eslint.config.js',
368+
'"./src/**/*.{ts,js,mjs,cjs,vue}"',
369+
'"./packages/*/src/**/*.{ts,js,mjs,cjs,vue}"',
370+
].join(' '),
358371
useFlatConfig: true,
359372
},
360373
},

0 commit comments

Comments
 (0)