-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
42 lines (40 loc) · 1.3 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
import {includeIgnoreFile} from '@eslint/compat'
import oclif from 'eslint-config-oclif'
import prettier from 'eslint-config-prettier'
import xoReactSpace from 'eslint-config-xo-react/space'
import path from 'node:path'
import {fileURLToPath} from 'node:url'
const gitignorePath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '.gitignore')
export default [
includeIgnoreFile(gitignorePath),
...oclif,
prettier,
...xoReactSpace,
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-namespace': 'off',
'import/default': 'off',
'import/no-named-as-default-member': 'off',
'jsdoc/require-returns-check': 'off',
'jsdoc/valid-types': 'off',
'no-useless-constructor': 'off',
'perfectionist/sort-intersection-types': 'off',
'perfectionist/sort-jsx-props': 'off',
'perfectionist/sort-object-types': 'off',
'perfectionist/sort-union-types': 'off',
'react/jsx-tag-spacing': 'off',
'unicorn/no-array-reduce': 'off',
'unicorn/prefer-array-find': 'off',
'unicorn/prefer-math-min-max': 'off',
'unicorn/prefer-module': 'off',
},
},
{
files: ['test/**/*'],
rules: {
'@typescript-eslint/no-unused-expressions': 'off',
'mocha/max-top-level-suites': 'off',
},
},
]