Skip to content

Commit 2cf5565

Browse files
ci(lint): simplify linting config
1 parent fc6c557 commit 2cf5565

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

eslint.config.mjs

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,36 @@ import tseslint from 'typescript-eslint'
44

55
export default tseslint.config(
66
{
7-
ignores: ['lib', 'examples', 'e2e', 'coverage']
7+
ignores: ['lib', 'examples', 'coverage', 'e2e']
88
},
99
eslint.configs.recommended,
10-
...tseslint.configs.recommended,
10+
...tseslint.configs.recommendedTypeChecked,
11+
{
12+
languageOptions: {
13+
parserOptions: {
14+
projectService: true,
15+
project: './tsconfig.json'
16+
}
17+
}
18+
},
1119
{
1220
files: ['src/**/*.{test,spec}.?(c|m)[jt]s?(x)'],
1321
...vitest.configs.recommended
1422
},
1523
{
1624
rules: {
1725
quotes: ['warn', 'single'],
26+
'no-unused-vars': 'off',
1827
'@typescript-eslint/no-unused-vars': [
1928
'warn',
2029
{ varsIgnorePattern: '^_', ignoreRestSiblings: true }
2130
],
22-
'no-unused-vars': 'off'
23-
}
24-
},
25-
{
26-
languageOptions: {
27-
parserOptions: {
28-
project: './tsconfig.json'
29-
}
30-
},
31-
rules: {
32-
'@typescript-eslint/no-floating-promises': ['error']
31+
'@typescript-eslint/no-floating-promises': 'error',
32+
'@typescript-eslint/unbound-method': 'off',
33+
'@typescript-eslint/no-unsafe-assignment': 'off',
34+
'@typescript-eslint/no-unsafe-return': 'off',
35+
'@typescript-eslint/no-unsafe-call': 'off',
36+
'@typescript-eslint/no-unsafe-argument': 'off'
3337
}
3438
}
3539
)

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ const addThemeStyles = (themes: ThemeConfig[], api: PluginAPI): void => {
5858
(name === defaultThemeName
5959
? [':root']
6060
: mediaQuery
61-
? []
62-
: [`.${e(name)}`])
61+
? []
62+
: [`.${e(name)}`])
6363
if (selectors.length > 0) {
6464
addBase({
6565
[selectors.join(', ')]: resolveThemeExtensionAsCustomProps(extend, api)

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,6 @@
100100
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
101101
"skipLibCheck": true /* Skip type checking all .d.ts files. */
102102
},
103-
"exclude": ["node_modules", "lib", "examples", "e2e"],
103+
"exclude": ["node_modules", "lib", "examples", "e2e", "coverage"],
104104
"include": ["src", "./*.js", "./*.ts", "./*.mjs", "./*.mts"]
105105
}

0 commit comments

Comments
 (0)