forked from GabrielAcostaEngler/signtool-code-sign
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
31 lines (30 loc) · 940 Bytes
/
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
import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'
import github from 'eslint-plugin-github'
import pluginJest from 'eslint-plugin-jest'
export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommended,
github.getFlatConfigs().browser,
github.getFlatConfigs().recommended,
github.getFlatConfigs().react,
...github.getFlatConfigs().typescript,
{
files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
ignores: ['eslint.config.mjs'],
plugins: {jest: pluginJest},
rules: {
'github/array-foreach': 'error',
'github/async-preventdefault': 'warn',
'github/no-then': 'error',
'github/no-blur': 'error',
'eslintComments/no-use': 'off',
'importPlugin/no-nodejs-modules': 'off',
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/prefer-to-have-length': 'warn',
'jest/valid-expect': 'error'
}
}
)