-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy patheslint.config.js
More file actions
42 lines (41 loc) · 916 Bytes
/
eslint.config.js
File metadata and controls
42 lines (41 loc) · 916 Bytes
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
36
37
38
39
40
41
42
import storybook from 'eslint-plugin-storybook';
import globals from 'globals';
import jestEslint from 'eslint-plugin-jest';
import {
javascriptConfig,
templateConfig,
typescriptConfig,
} from './eslint-configs/index.js';
export default [
{
name: 'Global - Language options',
languageOptions: {
globals: {
...globals.browser,
...globals.jest,
...globals.node,
...jestEslint.environments.globals.globals,
},
ecmaVersion: 2020,
sourceType: 'module',
},
},
{
name: 'Global - Ignores',
ignores: [
'**/brand-icons.interface.ts',
'**/icons.interface.ts',
'!.github',
'**/*.d.ts',
'!.storybook',
'coverage/**',
'dist/**',
'.husky/**',
'node_modules/**',
],
},
...storybook.configs['flat/recommended'],
...typescriptConfig,
...templateConfig,
...javascriptConfig,
];