mirror of
https://github.com/remnawave/panel.git
synced 2026-04-25 09:06:14 +00:00
fix: deps
This commit is contained in:
@@ -66,9 +66,9 @@ const config: Config = {
|
||||
name: 'docusaurus-mantineui',
|
||||
configurePostCss(postcssOptions) {
|
||||
// Appends TailwindCSS and AutoPrefixer.
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires, global-require
|
||||
// eslint-disable-next-line @typescript-eslint/no-require-imports, global-require
|
||||
postcssOptions.plugins.push(require('postcss-preset-mantine'))
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires, global-require
|
||||
// eslint-disable-next-line @typescript-eslint/no-require-imports, global-require
|
||||
postcssOptions.plugins.push(require('postcss-simple-vars'))
|
||||
return postcssOptions
|
||||
}
|
||||
|
||||
173
eslint.config.mjs
Normal file
173
eslint.config.mjs
Normal file
@@ -0,0 +1,173 @@
|
||||
import { fixupConfigRules, fixupPluginRules } from '@eslint/compat'
|
||||
import { defineConfig, globalIgnores } from 'eslint/config'
|
||||
import reactRefresh from 'eslint-plugin-react-refresh'
|
||||
import tsParser from '@typescript-eslint/parser'
|
||||
import { FlatCompat } from '@eslint/eslintrc'
|
||||
import _import from 'eslint-plugin-import'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import globals from 'globals'
|
||||
import path from 'node:path'
|
||||
import js from '@eslint/js'
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url)
|
||||
const __dirname = path.dirname(__filename)
|
||||
const compat = new FlatCompat({
|
||||
baseDirectory: __dirname,
|
||||
recommendedConfig: js.configs.recommended,
|
||||
allConfig: js.configs.all
|
||||
})
|
||||
|
||||
export default defineConfig([
|
||||
globalIgnores([
|
||||
'**/dist',
|
||||
'**/.eslintrc.cjs',
|
||||
'**/plop',
|
||||
'plop/**/*',
|
||||
'**/plopfile.js',
|
||||
'**/.stylelintrc.js'
|
||||
]),
|
||||
{
|
||||
extends: fixupConfigRules(
|
||||
compat.extends(
|
||||
'eslint:recommended',
|
||||
'airbnb-base',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'plugin:react-hooks/recommended',
|
||||
'plugin:storybook/recommended',
|
||||
'plugin:perfectionist/recommended-natural-legacy',
|
||||
'prettier'
|
||||
)
|
||||
),
|
||||
|
||||
plugins: {
|
||||
'react-refresh': reactRefresh,
|
||||
import: fixupPluginRules(_import)
|
||||
},
|
||||
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.browser
|
||||
},
|
||||
|
||||
parser: tsParser
|
||||
},
|
||||
|
||||
settings: {
|
||||
'import/parsers': {
|
||||
'@typescript-eslint/parser': ['.ts', '.tsx']
|
||||
},
|
||||
|
||||
'import/resolver': {
|
||||
node: true,
|
||||
|
||||
typescript: {
|
||||
project: '.'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
rules: {
|
||||
'perfectionist/sort-imports': [
|
||||
'error',
|
||||
{
|
||||
type: 'line-length',
|
||||
order: 'desc',
|
||||
ignoreCase: true,
|
||||
specialCharacters: 'keep',
|
||||
internalPattern: ['^~/.+'],
|
||||
tsconfigRootDir: '.',
|
||||
partitionByComment: false,
|
||||
partitionByNewLine: false,
|
||||
newlinesBetween: 'always',
|
||||
|
||||
groups: [
|
||||
'type',
|
||||
['builtin', 'external'],
|
||||
'internal-type',
|
||||
'internal',
|
||||
['parent-type', 'sibling-type', 'index-type'],
|
||||
['parent', 'sibling', 'index'],
|
||||
'object',
|
||||
'unknown'
|
||||
],
|
||||
|
||||
customGroups: {
|
||||
type: {},
|
||||
value: {}
|
||||
},
|
||||
|
||||
environment: 'node'
|
||||
}
|
||||
],
|
||||
|
||||
'perfectionist/sort-objects': ['off'],
|
||||
'perfectionist/sort-modules': ['off'],
|
||||
|
||||
indent: [
|
||||
'error',
|
||||
4,
|
||||
{
|
||||
SwitchCase: 1
|
||||
}
|
||||
],
|
||||
|
||||
'max-classes-per-file': 'off',
|
||||
'import/no-extraneous-dependencies': ['off'],
|
||||
'import/no-unresolved': ['error', { ignore: ['^@theme', '^@docusaurus', '^@site'] }],
|
||||
'import/prefer-default-export': 'off',
|
||||
'import/extensions': 'off',
|
||||
'no-bitwise': 'off',
|
||||
'no-plusplus': 'off',
|
||||
'no-restricted-syntax': ['off', 'ForInStatement'],
|
||||
|
||||
'react-refresh/only-export-components': [
|
||||
'warn',
|
||||
{
|
||||
allowConstantExport: true
|
||||
}
|
||||
],
|
||||
|
||||
'no-shadow': ['off'],
|
||||
'arrow-body-style': ['off'],
|
||||
'object-curly-spacing': ['error', 'always'],
|
||||
'array-bracket-spacing': ['error', 'never'],
|
||||
|
||||
'no-underscore-dangle': [
|
||||
'off',
|
||||
{
|
||||
allow: ['_'],
|
||||
allowAfterThis: true,
|
||||
allowAfterSuper: true,
|
||||
allowAfterThisConstructor: true,
|
||||
enforceInMethodNames: false
|
||||
}
|
||||
],
|
||||
|
||||
semi: ['error', 'never'],
|
||||
'comma-dangle': ['off'],
|
||||
|
||||
'brace-style': [
|
||||
'error',
|
||||
'1tbs',
|
||||
{
|
||||
allowSingleLine: true
|
||||
}
|
||||
],
|
||||
|
||||
'object-curly-newline': [
|
||||
'error',
|
||||
{
|
||||
multiline: true,
|
||||
consistent: true
|
||||
}
|
||||
],
|
||||
|
||||
'react-hooks/exhaustive-deps': 'off',
|
||||
'no-empty-pattern': 'warn',
|
||||
|
||||
'@typescript-eslint/no-empty-object-type': 'off',
|
||||
'@typescript-eslint/no-unsafe-function-type': 'error',
|
||||
'@typescript-eslint/no-wrapper-object-types': 'error'
|
||||
}
|
||||
}
|
||||
])
|
||||
3210
package-lock.json
generated
3210
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
32
package.json
32
package.json
@@ -33,23 +33,25 @@
|
||||
"@docusaurus/module-type-aliases": "^3.8.1",
|
||||
"@docusaurus/tsconfig": "3.8.1",
|
||||
"@docusaurus/types": "3.8.1",
|
||||
"@eslint/js": "^9.16.0",
|
||||
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
|
||||
"@typescript-eslint/eslint-plugin": "^7.0.2",
|
||||
"@typescript-eslint/parser": "^7.0.2",
|
||||
"eslint": "^8.56.0",
|
||||
"@eslint/js": "^9.31.0",
|
||||
"@eslint/compat": "^1.3.1",
|
||||
"@eslint/eslintrc": "^3.3.1",
|
||||
"@ianvs/prettier-plugin-sort-imports": "^4.5.1",
|
||||
"@typescript-eslint/eslint-plugin": "^8.37.0",
|
||||
"@typescript-eslint/parser": "^8.37.0",
|
||||
"eslint": "^9.31.0",
|
||||
"eslint-config-airbnb-base": "^15.0.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-import-resolver-typescript": "^3.6.1",
|
||||
"eslint-plugin-import": "^2.29.0",
|
||||
"eslint-plugin-perfectionist": "^4.1.2",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"eslint-plugin-react-refresh": "^0.4.5",
|
||||
"eslint-plugin-storybook": "^0.8.0",
|
||||
"postcss": "^8.5.3",
|
||||
"postcss-preset-mantine": "^1.17.0",
|
||||
"eslint-config-prettier": "^10.1.5",
|
||||
"eslint-import-resolver-typescript": "^4.4.4",
|
||||
"eslint-plugin-import": "^2.32.0",
|
||||
"eslint-plugin-perfectionist": "^4.15.0",
|
||||
"eslint-plugin-react-hooks": "^5.2.0",
|
||||
"eslint-plugin-react-refresh": "^0.4.20",
|
||||
"eslint-plugin-storybook": "^0.12.0",
|
||||
"postcss": "^8.5.6",
|
||||
"postcss-preset-mantine": "^1.18.0",
|
||||
"postcss-simple-vars": "^7.0.1",
|
||||
"prettier": "^3.3.3",
|
||||
"prettier": "^3.6.2",
|
||||
"typescript": "~5.8.3"
|
||||
},
|
||||
"browserslist": {
|
||||
|
||||
@@ -18,7 +18,7 @@ import { BiLogoTelegram } from 'react-icons/bi'
|
||||
import { SiNestjs } from 'react-icons/si'
|
||||
import Link from '@docusaurus/Link'
|
||||
import Layout from '@theme/Layout'
|
||||
import React from 'react'
|
||||
import React, { JSX } from 'react'
|
||||
|
||||
import { theme } from '../theme/mantine-theme/theme'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user