mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
chore(eslint): enforce file extension usage for internal modules, ignore external packages (#3116)
* chore(eslint): enforce file extension usage for internal modules, ignore external packages * chore(*): apply the updated ESLint rules to the relevant files
This commit is contained in:
parent
36627acb60
commit
028909eafa
@ -42,7 +42,7 @@ export default tseslint.config(
|
||||
'import/namespace': 'off',
|
||||
'import/no-named-as-default-member': 'off',
|
||||
'import/no-duplicates': 'error',
|
||||
'import/extensions': ['error', 'always'],
|
||||
'import/extensions': ['error', 'always', { ignorePackages: true }],
|
||||
'import/order': [
|
||||
'error',
|
||||
{
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
import React from 'react'
|
||||
// eslint-disable-next-line import/extensions
|
||||
import useSyncExternalStoreExports from 'use-sync-external-store/shim/with-selector'
|
||||
import { createStore } from './vanilla.ts'
|
||||
import type {
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
import { resolve } from 'path'
|
||||
// eslint-disable-next-line import/extensions
|
||||
import { defineConfig } from 'vitest/config'
|
||||
|
||||
export default defineConfig({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user