-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
eslint.config.mjs
75 lines (67 loc) · 1.78 KB
/
eslint.config.mjs
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
export default [
{
languageOptions: {
parser: {
meta: {
name: 'Ignore Without Parsing',
},
// Ignore Paring error
parse: function () {
return {
type: 'Program',
loc: {},
comments: [],
range: [0, 0],
body: [],
tokens: [],
};
},
},
},
},
{
ignores: [
// Build folders
'/build',
'packages/*/build/',
'packages/*/examples/*/build/',
'es',
'lib',
'dist',
'umd',
'node_modules',
'packages/*/examples/*',
// Components
'packages/components/demo/*.css',
'packages/components/demo/*.map',
'packages/components/demo/*.js',
'packages/components/demo/js/prism.js',
'packages/components/demo/hot',
'!packages/components/demo/index.js', // This negation might need manual handling
'packages/components/dist',
'packages/components/tests/a11y-results',
'packages/components/tests/coverage',
'packages/components/es',
'packages/components/umd',
'packages/components/scripts',
'packages/components/css',
'packages/components/scss',
'packages/components/html',
'packages/components/docs/js',
'packages/components/node_modules',
'packages/components/scss/globals/vendor/**',
'packages/components/src/globals/scss/vendor/**',
// Upgrade
'**/__testfixtures__/**',
'packages/upgrade/cli.js',
// React
'**/storybook-static/**',
'packages/react/icons/index.js',
'packages/react/icons/index.esm.js',
// Icons React
'packages/icons-react/next/**',
// Templates
'packages/cli/src/component/templates/**',
],
},
];