-
Notifications
You must be signed in to change notification settings - Fork 20
/
eslint.config.js
61 lines (53 loc) · 1.23 KB
/
eslint.config.js
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
import globals from 'globals';
import tseslint from 'typescript-eslint';
import pfe from '@patternfly/eslint-config-elements';
export default tseslint.config(
...pfe,
{
name: 'local/ignores',
ignores: [
'custom-elements.json',
'package-lock.json',
'node_modules',
'node_modules/**/*',
'_site',
'rhds.min.js',
'**/*.d.ts',
'**/*.(spec|e2e).js',
'react',
'elements/**/*.js',
'uxdot/**/*.js',
'lib/**/*.js',
'docs/demo.js',
'docs/pfe.min.js',
'docs/bundle.js',
'docs/core',
'docs/components',
'docs/assets/playgrounds',
'docs/_plugins/lit-ssr/worker.js',
'docs/assets/javascript/elements/uxdot/*.js.map',
'docs/assets/javascript/elements/uxdot/*.d.ts',
'docs/assets/javascript/elements/uxdot/*.js',
'node_modules',
'!core/*/demo/*.js',
'!elements/*/demo/*.js',
'.cache/*',
],
},
{
name: 'local/scripts',
files: ['scripts/*.js'],
languageOptions: {
globals: {
...globals.node,
},
},
},
{
name: 'local/docs/overrides',
files: ['docs/theming/code-samples/*.*'],
rules: {
'@stylistic/no-multi-spaces': ['off'],
},
}
);