✨ feat (auth): server side proxy login request
This commit is contained in:
+23
-21
@@ -1,5 +1,5 @@
|
||||
import antfu from "@antfu/eslint-config";
|
||||
import withNuxt from "./.nuxt/eslint.config.mjs";
|
||||
import antfu from '@antfu/eslint-config'
|
||||
import withNuxt from './.nuxt/eslint.config.mjs'
|
||||
|
||||
export default withNuxt(
|
||||
antfu(
|
||||
@@ -9,7 +9,7 @@ export default withNuxt(
|
||||
// Relaxed stylistic options
|
||||
stylistic: {
|
||||
semi: false,
|
||||
quotes: "single",
|
||||
quotes: 'single',
|
||||
// Less strict formatting
|
||||
jsx: false,
|
||||
},
|
||||
@@ -17,34 +17,36 @@ export default withNuxt(
|
||||
{
|
||||
rules: {
|
||||
// Basic rules
|
||||
quotes: ["error", "single", { avoidEscape: true }],
|
||||
"style/no-trailing-spaces": ["error", { ignoreComments: true }],
|
||||
quotes: ['error', 'single', { avoidEscape: true }],
|
||||
'style/no-trailing-spaces': ['error', { ignoreComments: true }],
|
||||
|
||||
'no-console': 'off',
|
||||
|
||||
// Relax strict formatting rules
|
||||
"style/brace-style": "off", // Allow inline if
|
||||
curly: ["error", "multi-line"], // Only require braces for multi-line
|
||||
"style/arrow-parens": "off",
|
||||
'style/brace-style': 'off', // Allow inline if
|
||||
curly: ['error', 'multi-line'], // Only require braces for multi-line
|
||||
'style/arrow-parens': 'off',
|
||||
|
||||
// UnoCSS - make it warning instead of error, or disable completely
|
||||
"unocss/order": "off", // atau 'off' untuk disable
|
||||
'unocss/order': 'off', // atau 'off' untuk disable
|
||||
|
||||
// Vue specific - relax template formatting
|
||||
"vue/html-indent": "off",
|
||||
"vue/max-attributes-per-line": "off",
|
||||
"vue/singleline-html-element-content-newline": "off",
|
||||
"vue/multiline-html-element-content-newline": "off",
|
||||
"vue/html-self-closing": "off",
|
||||
'vue/html-indent': 'off',
|
||||
'vue/max-attributes-per-line': 'off',
|
||||
'vue/singleline-html-element-content-newline': 'off',
|
||||
'vue/multiline-html-element-content-newline': 'off',
|
||||
'vue/html-self-closing': 'off',
|
||||
|
||||
// Allow more flexible code style
|
||||
"style/max-statements-per-line": ["error", { max: 3 }],
|
||||
"antfu/if-newline": "off", // Disable newline after if requirement
|
||||
'style/max-statements-per-line': ['error', { max: 3 }],
|
||||
'antfu/if-newline': 'off', // Disable newline after if requirement
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["**/*.md"],
|
||||
files: ['**/*.md'],
|
||||
rules: {
|
||||
"style/no-trailing-spaces": "off",
|
||||
'style/no-trailing-spaces': 'off',
|
||||
},
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user