Skip to content

Commit e34f0da

Browse files
better-salmonwmertens
authored andcommitted
chore(eslint): update ignore patterns in ESLint configs and remove config files from tsconfig
1 parent caac92b commit e34f0da

File tree

8 files changed

+9
-35
lines changed

8 files changed

+9
-35
lines changed

eslint.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ const ignores = [
4242
// packages with eslint.config.mjs
4343
'packages/qwik-labs',
4444
'packages/insights',
45+
'starters',
46+
// eslint.config.*
47+
'**/eslint.config.mjs',
48+
'**/eslint.config.js',
4549
];
4650

4751
export default tseslint.config(

packages/insights/eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const ignores = [
4646
'src/styled-system',
4747
'**/panda.config.ts',
4848
'**/drizzle.config.ts',
49+
'eslint.config.mjs',
4950
];
5051

5152
export default tseslint.config(

packages/qwik-labs/eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const ignores = [
3737
'**/dist',
3838
'**/tsconfig.tsbuildinfo',
3939
'**/vite.config.ts',
40+
'eslint.config.mjs',
4041
];
4142

4243
export default tseslint.config(

packages/qwik-labs/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@
1919
"@qwik-client-manifest": ["../../qwik/src/server/server-modules.d.ts"]
2020
}
2121
},
22-
"files": ["./eslint.config.mjs"],
2322
"include": ["src"]
2423
}

starters/apps/base/eslint.config.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const ignores = [
4343
"**/package-lock.json",
4444
"**/yarn.lock",
4545
"**/server",
46+
"eslint.config.js",
4647
];
4748

4849
export default tseslint.config(
@@ -67,21 +68,6 @@ export default tseslint.config(
6768
{
6869
rules: {
6970
"@typescript-eslint/no-explicit-any": "off",
70-
"@typescript-eslint/explicit-module-boundary-types": "off",
71-
"@typescript-eslint/no-inferrable-types": "off",
72-
"@typescript-eslint/no-non-null-assertion": "off",
73-
"@typescript-eslint/no-empty-interface": "off",
74-
"@typescript-eslint/no-namespace": "off",
75-
"@typescript-eslint/no-empty-function": "off",
76-
"@typescript-eslint/no-this-alias": "off",
77-
"@typescript-eslint/ban-types": "off",
78-
"@typescript-eslint/ban-ts-comment": "off",
79-
"prefer-spread": "off",
80-
"no-case-declarations": "off",
81-
"no-console": "off",
82-
"@typescript-eslint/no-unused-vars": ["error"],
83-
"@typescript-eslint/consistent-type-imports": "warn",
84-
"@typescript-eslint/no-unnecessary-condition": "warn",
8571
},
8672
}
8773
);

starters/apps/base/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@
2020
"~/*": ["./src/*"]
2121
}
2222
},
23-
"files": ["./eslint.config.js"],
2423
"include": ["src", "./*.d.ts", "./*.config.ts"]
2524
}

starters/apps/library/eslint.config.js

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const ignores = [
4343
"**/package-lock.json",
4444
"**/yarn.lock",
4545
"**/server",
46+
"eslint.config.js",
4647
];
4748

4849
export default tseslint.config(
@@ -64,22 +65,4 @@ export default tseslint.config(
6465
},
6566
},
6667
},
67-
{
68-
rules: {
69-
"@typescript-eslint/no-explicit-any": "off",
70-
"@typescript-eslint/explicit-module-boundary-types": "off",
71-
"@typescript-eslint/no-inferrable-types": "off",
72-
"@typescript-eslint/no-non-null-assertion": "off",
73-
"@typescript-eslint/no-empty-interface": "off",
74-
"@typescript-eslint/no-namespace": "off",
75-
"@typescript-eslint/no-empty-function": "off",
76-
"@typescript-eslint/no-this-alias": "off",
77-
"@typescript-eslint/ban-types": "off",
78-
"@typescript-eslint/ban-ts-comment": "off",
79-
"prefer-spread": "off",
80-
"no-case-declarations": "off",
81-
"no-console": "off",
82-
"@typescript-eslint/no-unused-vars": ["error"],
83-
},
84-
}
8568
);

starters/apps/playground/src/routes/demo/flower/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default component$(() => {
1616
number: 20,
1717
});
1818

19+
// eslint-disable-next-line qwik/no-use-visible-task
1920
useVisibleTask$(({ cleanup }) => {
2021
const timeout = setTimeout(() => (state.count = 1), 500);
2122
cleanup(() => clearTimeout(timeout));

0 commit comments

Comments
 (0)