-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy patheslint.config.js
More file actions
34 lines (30 loc) · 842 Bytes
/
eslint.config.js
File metadata and controls
34 lines (30 loc) · 842 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
import hypothesisBase from 'eslint-config-hypothesis/base';
import hypothesisJSX from 'eslint-config-hypothesis/jsx';
import hypothesisTS from 'eslint-config-hypothesis/ts';
import { defineConfig, globalIgnores } from 'eslint/config';
import globals from 'globals';
export default defineConfig(
globalIgnores(['.yalc/**', 'lib/**', 'build/**']),
hypothesisBase,
hypothesisJSX,
hypothesisTS,
// Icons
{
files: ['src/components/icons/*.tsx'],
rules: {
// preact uses kebab-cased SVG element attributes, which look like
// unknown properties to `eslint-plugin-react` (React uses camelCase
// for these properties)
'react/no-unknown-property': 'off',
},
},
// Scripts
{
files: ['scripts/*.js'],
languageOptions: {
globals: {
...globals.node,
},
},
},
);