forked from alemem64/Noxionite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
37 lines (36 loc) · 1.28 KB
/
Copy patheslint.config.js
File metadata and controls
37 lines (36 loc) · 1.28 KB
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
import { config } from '@fisch0920/config/eslint'
import nextPlugin from '@next/eslint-plugin-next'
export default [
...config,
{
files: ['**/*.ts', '**/*.tsx'],
plugins: {
'@next/next': nextPlugin
},
rules: {
...nextPlugin.configs.recommended.rules,
...nextPlugin.configs['core-web-vitals'].rules,
'react/prop-types': 'off',
'unicorn/no-array-reduce': 'off',
'unicorn/filename-case': 'off',
'unicorn/prefer-global-this': 'off',
'no-process-env': 'off',
'array-callback-return': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-a11y/media-has-caption': 'off',
'jsx-a11y/interactive-supports-focus': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'@typescript-eslint/naming-convention': 'off',
'simple-import-sort/imports': 'off',
'@typescript-eslint/consistent-type-imports': 'off',
'react/function-component-definition': 'off',
'unicorn/prefer-string-replace-all': 'off',
'unicorn/prefer-number-properties': 'off',
'unicorn/consistent-function-scoping': 'off',
'unicorn/prefer-modern-math-apis': 'off',
'unicorn/no-useless-switch-case': 'off',
'unicorn/no-array-for-each': 'off'
}
}
]