mirror of
https://github.com/Afilmory/afilmory
synced 2026-04-25 07:15:36 +00:00
refactor(storage-providers): streamline provider handling and remove unused types
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -15,32 +15,32 @@ const rootIgnores = globalIgnores([
|
||||
])
|
||||
|
||||
const hyobanConfig = await defineConfig(
|
||||
{
|
||||
formatting: false,
|
||||
lessOpinionated: true,
|
||||
preferESM: false,
|
||||
react: true,
|
||||
tailwindCSS: true,
|
||||
{
|
||||
formatting: false,
|
||||
lessOpinionated: true,
|
||||
preferESM: false,
|
||||
react: true,
|
||||
tailwindCSS: true,
|
||||
},
|
||||
|
||||
{
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
emitDecoratorMetadata: true,
|
||||
experimentalDecorators: true,
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
emitDecoratorMetadata: true,
|
||||
experimentalDecorators: true,
|
||||
},
|
||||
// TailwindCSS v4 usually has no config file. Silence the plugin's
|
||||
// config resolution warning by explicitly disabling auto-resolution.
|
||||
settings: {
|
||||
tailwindcss: {
|
||||
// ESLint plugin will not attempt to resolve tailwind config
|
||||
// which avoids repeated "Cannot resolve default tailwindcss config path" warnings.
|
||||
config: false,
|
||||
},
|
||||
|
||||
// TailwindCSS v4 usually has no config file. Silence the plugin's
|
||||
// config resolution warning by explicitly disabling auto-resolution.
|
||||
settings: {
|
||||
tailwindcss: {
|
||||
// ESLint plugin will not attempt to resolve tailwind config
|
||||
// which avoids repeated "Cannot resolve default tailwindcss config path" warnings.
|
||||
config: false,
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
},
|
||||
rules: {
|
||||
'@typescript-eslint/triple-slash-reference': 0,
|
||||
'unicorn/prefer-math-trunc': 'off',
|
||||
'unicorn/no-static-only-class': 'off',
|
||||
@@ -80,44 +80,39 @@ const hyobanConfig = await defineConfig(
|
||||
'You can use `useLocaltion` or `getReadonlyRoute` to get the route info.',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
// @ts-expect-error
|
||||
{
|
||||
files: ['locales/**/*.json'],
|
||||
plugins: {
|
||||
'recursive-sort': recursiveSort,
|
||||
'check-i18n-json': checkI18nJson,
|
||||
},
|
||||
rules: {
|
||||
'recursive-sort/recursive-sort': 'error',
|
||||
'check-i18n-json/valid-i18n-keys': 'error',
|
||||
'check-i18n-json/no-extra-keys': 'error',
|
||||
},
|
||||
// @ts-expect-error
|
||||
{
|
||||
files: ['locales/**/*.json'],
|
||||
plugins: {
|
||||
'recursive-sort': recursiveSort,
|
||||
'check-i18n-json': checkI18nJson,
|
||||
},
|
||||
{
|
||||
files: ['**/*.tsx'],
|
||||
rules: {
|
||||
'@stylistic/jsx-self-closing-comp': 'error',
|
||||
},
|
||||
rules: {
|
||||
'recursive-sort/recursive-sort': 'error',
|
||||
'check-i18n-json/valid-i18n-keys': 'error',
|
||||
'check-i18n-json/no-extra-keys': 'error',
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['**/*.tsx'],
|
||||
rules: {
|
||||
'@stylistic/jsx-self-closing-comp': 'error',
|
||||
},
|
||||
},
|
||||
|
||||
// Backend framework isn't React — disable React-specific hooks rule there.
|
||||
{
|
||||
files: ['be/packages/framework/**/*.{ts,tsx}'],
|
||||
rules: {
|
||||
'react-hooks/rules-of-hooks': 'off',
|
||||
},
|
||||
// Backend framework isn't React — disable React-specific hooks rule there.
|
||||
{
|
||||
files: ['be/packages/framework/**/*.{ts,tsx}'],
|
||||
rules: {
|
||||
'react-hooks/rules-of-hooks': 'off',
|
||||
},
|
||||
},
|
||||
|
||||
// Redundant but harmless: keep a local ignore in case this block is used standalone somewhere
|
||||
globalIgnores([
|
||||
'apps/ssr/src/index.html.ts',
|
||||
'apps/ssr/public/**',
|
||||
'apps/web/public/**',
|
||||
'packages/docs/public/**',
|
||||
]),
|
||||
// Redundant but harmless: keep a local ignore in case this block is used standalone somewhere
|
||||
globalIgnores(['apps/ssr/src/index.html.ts', 'apps/ssr/public/**', 'apps/web/public/**', 'packages/docs/public/**']),
|
||||
)
|
||||
|
||||
export default [
|
||||
|
||||
Reference in New Issue
Block a user