Skip to content

Commit a0b66eb

Browse files
committed
chore: Update dependencies, migrate ESLint configuration to flat format, and add type annotations to component plugin exports.
1 parent abfdc28 commit a0b66eb

7 files changed

Lines changed: 6556 additions & 4426 deletions

File tree

.eslintrc.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

eslint.config.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import js from '@eslint/js';
2+
import tseslint from '@typescript-eslint/eslint-plugin';
3+
import tsparser from '@typescript-eslint/parser';
4+
import prettier from 'eslint-config-prettier';
5+
6+
export default [
7+
{
8+
ignores: [
9+
'dist/**',
10+
'node_modules/**',
11+
'**/*.cjs',
12+
'**/*.mjs',
13+
'**/demo-angular/**',
14+
'src/_example/**',
15+
'*.config.js',
16+
'*.config.ts',
17+
],
18+
},
19+
js.configs.recommended,
20+
{
21+
files: ['**/*.ts', '**/*.tsx'],
22+
languageOptions: {
23+
parser: tsparser,
24+
parserOptions: {
25+
ecmaVersion: 'latest',
26+
sourceType: 'module',
27+
},
28+
},
29+
plugins: {
30+
'@typescript-eslint': tseslint,
31+
},
32+
rules: {
33+
...tseslint.configs.recommended.rules,
34+
'@typescript-eslint/explicit-module-boundary-types': 'off',
35+
'@typescript-eslint/no-explicit-any': 'warn',
36+
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
37+
},
38+
},
39+
prettier,
40+
];

0 commit comments

Comments
 (0)