Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Apr 21, 2024
1 parent a5352b3 commit 3bff973
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,17 @@ module.exports = {
},
rules: {
'import/no-unresolved': ['error', { ignore: ['zustand-slices'] }],
'@typescript-eslint/no-unused-vars': [
'error',
{
args: 'all',
argsIgnorePattern: '^_',
caughtErrors: 'all',
caughtErrorsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
varsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
},
};
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ export function createSlice<
return config;
}

// FIXME no any in a reasonable way?
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function withSlices<Configs extends SliceConfig<string, unknown, any>[]>(
...configs: Configs
): IsValidConfigs<Configs> extends true
Expand Down

0 comments on commit 3bff973

Please sign in to comment.