-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy patheslint.config.js
More file actions
35 lines (33 loc) · 1.14 KB
/
Copy patheslint.config.js
File metadata and controls
35 lines (33 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format
import storybook from "eslint-plugin-storybook";
import js from '@eslint/js';
import globals from 'globals';
import tseslint from 'typescript-eslint';
import { defineConfig } from 'eslint/config';
export default defineConfig([{
ignores: [
'**/dist/**',
'crates/**/pkg/**',
'packages/jen/src/core/jen_router.js',
'packages/jen/src/core/__tests__/**',
'packages/jen/src/devtools/__tests__/**',
'packages/jen/src/server/__tests__/**',
'packages/jen/.vercel/output/**',
'packages/jen/.vercel/cache/**',
'packages/jen/src/fonts/__tests__/**',
'packages/jen/src/client/__tests__/**',
'packages/jen/src/core/jen_router.cjs',
'**/**/.jen/**'
],
}, // Apply JS Recommended
js.configs.recommended, // Apply TS Recommended
...tseslint.configs.recommended, {
files: ['**/*.{js,mjs,cjs,ts,mts,cts}'],
languageOptions: {
globals: { ...globals.browser, ...globals.node },
},
// If you need specific rules, add them here
rules: {
// "no-console": "warn"
},
}, ...storybook.configs["flat/recommended"]]);