Skip to content

Commit df076ec

Browse files
author
wuls
committed
fix default vlaue
1 parent 91a69fa commit df076ec

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

packages/qwik/src/optimizer/src/plugins/plugin.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export function createQwikPlugin(optimizerOptions: OptimizerOptions = {}) {
119119
clickToSource: ['Alt'],
120120
},
121121
inlineStylesUpToBytes: null as any,
122-
lint: true,
122+
lint: false,
123123
experimental: undefined,
124124
};
125125

@@ -328,8 +328,6 @@ export function createQwikPlugin(optimizerOptions: OptimizerOptions = {}) {
328328

329329
if (typeof updatedOpts.lint === 'boolean') {
330330
opts.lint = updatedOpts.lint;
331-
} else {
332-
opts.lint = updatedOpts.buildMode === 'development';
333331
}
334332

335333
opts.experimental = undefined;

starters/apps/base/vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ errorOnDuplicatesPkgDeps(devDependencies, dependencies);
2121
*/
2222
export default defineConfig(({ command, mode }): UserConfig => {
2323
return {
24-
plugins: [qwikCity(), qwikVite({ lint: false }), tsconfigPaths()],
24+
plugins: [qwikCity(), qwikVite(), tsconfigPaths()],
2525
// This tells Vite which dependencies to pre-build in dev mode.
2626
optimizeDeps: {
2727
// Put problematic deps that break bundling here, mostly those with binaries.

starters/apps/library/vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ export default defineConfig(() => {
3030
],
3131
},
3232
},
33-
plugins: [qwikVite({ lint: false }), tsconfigPaths()],
33+
plugins: [qwikVite(), tsconfigPaths()],
3434
};
3535
});

0 commit comments

Comments
 (0)