mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
chore(eslint): change 'dist' area in 'ignores', sort rules (#2924)
* chore(eslint): change 'dist' area in 'ignores' * chore(eslint): sort by the order 'plugins' were added and by name * Update eslint.config.mjs Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com> --------- Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
This commit is contained in:
parent
55a7d0a15b
commit
2e6d881309
@ -10,7 +10,7 @@ import tseslint from 'typescript-eslint'
|
||||
|
||||
export default tseslint.config(
|
||||
{
|
||||
ignores: ['**/dist/', 'examples/**'],
|
||||
ignores: ['dist/', 'examples/'],
|
||||
},
|
||||
eslint.configs.recommended,
|
||||
importPlugin.flatConfigs.recommended,
|
||||
@ -69,13 +69,13 @@ export default tseslint.config(
|
||||
pathGroupsExcludedImportTypes: ['builtin'],
|
||||
},
|
||||
],
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'warn',
|
||||
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
|
||||
],
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
...reactHooks.configs.recommended.rules,
|
||||
'react-compiler/react-compiler': 'warn',
|
||||
...reactHooks.configs.recommended.rules,
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -85,13 +85,13 @@ export default tseslint.config(
|
||||
...vitest.configs.recommended,
|
||||
rules: {
|
||||
'import/extensions': ['error', 'never'],
|
||||
'@typescript-eslint/no-unused-vars': 'off',
|
||||
'testing-library/no-node-access': 'off',
|
||||
'vitest/expect-expect': 'off',
|
||||
'vitest/consistent-test-it': [
|
||||
'error',
|
||||
{ fn: 'it', withinDescribe: 'it' },
|
||||
],
|
||||
'@typescript-eslint/no-unused-vars': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user