feat:移除了弹窗,服务器添加sls
This commit is contained in:
20
packages/tooling-config/eslint/base.mjs
Normal file
20
packages/tooling-config/eslint/base.mjs
Normal file
@ -0,0 +1,20 @@
|
||||
import eslint from '@eslint/js'
|
||||
import prettierEslint from 'eslint-plugin-prettier/recommended'
|
||||
import tseslint from 'typescript-eslint'
|
||||
import common from './common.mjs'
|
||||
|
||||
export default tseslint.config(
|
||||
eslint.configs.recommended,
|
||||
prettierEslint,
|
||||
...common,
|
||||
{
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
warnOnUnsupportedTypeScriptVersion: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
ignores: ['node_modules/', 'dist/', 'build/'],
|
||||
},
|
||||
)
|
||||
22
packages/tooling-config/eslint/common.mjs
Normal file
22
packages/tooling-config/eslint/common.mjs
Normal file
@ -0,0 +1,22 @@
|
||||
import simpleImportSort from 'eslint-plugin-simple-import-sort'
|
||||
|
||||
export default [
|
||||
{
|
||||
plugins: {
|
||||
'simple-import-sort': simpleImportSort,
|
||||
},
|
||||
rules: {
|
||||
'simple-import-sort/imports': 'error',
|
||||
'simple-import-sort/exports': 'error',
|
||||
},
|
||||
},
|
||||
{
|
||||
rules: {
|
||||
'@typescript-eslint/no-type-alias': 'off',
|
||||
'@typescript-eslint/ban-ts-comment': 'off',
|
||||
'@typescript-eslint/prefer-literal-enum-member': 'off',
|
||||
'@typescript-eslint/no-namespace': 'off',
|
||||
'@typescript-eslint/no-invalid-void-type': 'off',
|
||||
},
|
||||
},
|
||||
]
|
||||
53
packages/tooling-config/eslint/nuxt.mjs
Normal file
53
packages/tooling-config/eslint/nuxt.mjs
Normal file
@ -0,0 +1,53 @@
|
||||
import { fixupPluginRules } from '@eslint/compat'
|
||||
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'
|
||||
import turboPlugin from 'eslint-plugin-turbo'
|
||||
import common from './common.mjs'
|
||||
|
||||
export const configurationNuxtToAppend = [
|
||||
...common,
|
||||
{
|
||||
name: 'turbo',
|
||||
plugins: {
|
||||
turbo: fixupPluginRules(turboPlugin),
|
||||
},
|
||||
rules: {
|
||||
'turbo/no-undeclared-env-vars': 'error',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'modrinth',
|
||||
rules: {
|
||||
'vue/html-self-closing': 'off',
|
||||
'vue/multi-word-component-names': 'off',
|
||||
'vue/no-undef-components': [
|
||||
'error',
|
||||
{
|
||||
ignorePatterns: [
|
||||
'NuxtPage',
|
||||
'NuxtLayout',
|
||||
'NuxtLink',
|
||||
'NuxtRouteAnnouncer',
|
||||
'ClientOnly',
|
||||
'Teleport',
|
||||
'Transition',
|
||||
'TransitionGroup',
|
||||
'Head',
|
||||
'Title',
|
||||
'router-link',
|
||||
'RouterView',
|
||||
'RouterLink',
|
||||
'nuxt-link',
|
||||
],
|
||||
},
|
||||
],
|
||||
'vue/no-undef-properties': 'warn',
|
||||
},
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
warnOnUnsupportedTypeScriptVersion: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
export default createConfigForNuxt().append(configurationNuxtToAppend)
|
||||
Reference in New Issue
Block a user