mirror of
https://github.com/certd/certd.git
synced 2026-08-07 06:18:04 +08:00
chore: eslint
This commit is contained in:
@@ -5,32 +5,33 @@ module.exports = {
|
|||||||
node: true,
|
node: true,
|
||||||
es6: true,
|
es6: true,
|
||||||
},
|
},
|
||||||
parser: 'vue-eslint-parser',
|
parser: "vue-eslint-parser",
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
parser: '@typescript-eslint/parser',
|
parser: "@typescript-eslint/parser",
|
||||||
ecmaVersion: 2020,
|
ecmaVersion: 2020,
|
||||||
sourceType: 'module',
|
sourceType: "module",
|
||||||
jsxPragma: 'React',
|
jsxPragma: "React",
|
||||||
ecmaFeatures: {
|
ecmaFeatures: {
|
||||||
jsx: true,
|
jsx: true,
|
||||||
tsx: true,
|
tsx: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
extends: ['plugin:vue/vue3-recommended', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended', 'prettier'],
|
extends: ["plugin:vue/vue3-recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended", "prettier"],
|
||||||
rules: {
|
rules: {
|
||||||
//"max-len": [0, 200, 2, { ignoreUrls: true }],
|
//"max-len": [0, 200, 2, { ignoreUrls: true }],
|
||||||
'@typescript-eslint/no-unused-vars': 'off',
|
"@typescript-eslint/no-unused-vars": "off",
|
||||||
'no-unused-vars': 'off',
|
"no-unused-vars": "off",
|
||||||
'@typescript-eslint/ban-ts-ignore': 'off',
|
"@typescript-eslint/ban-ts-ignore": "off",
|
||||||
'@typescript-eslint/ban-ts-comment': 'off',
|
"@typescript-eslint/ban-ts-comment": "off",
|
||||||
'@typescript-eslint/ban-types': 'off',
|
"@typescript-eslint/ban-types": "off",
|
||||||
'@typescript-eslint/explicit-function-return-type': 'off',
|
"@typescript-eslint/explicit-function-return-type": "off",
|
||||||
'@typescript-eslint/no-explicit-any': 'off',
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
'@typescript-eslint/no-var-requires': 'off',
|
"@typescript-eslint/no-var-requires": "off",
|
||||||
'@typescript-eslint/no-empty-function': 'off',
|
"@typescript-eslint/no-empty-function": "off",
|
||||||
'@typescript-eslint/no-use-before-define': 'off',
|
"@typescript-eslint/no-use-before-define": "off",
|
||||||
'@typescript-eslint/no-non-null-assertion': 'off',
|
"@typescript-eslint/no-non-null-assertion": "off",
|
||||||
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
||||||
|
"vue/multi-word-component-names": "off",
|
||||||
// "@typescript-eslint/no-unused-vars": [
|
// "@typescript-eslint/no-unused-vars": [
|
||||||
// "error",
|
// "error",
|
||||||
// {
|
// {
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import type { MenuRecordRaw } from "/@/vben/typings";
|
|||||||
import { computed } from "vue";
|
import { computed } from "vue";
|
||||||
|
|
||||||
import { MenuBadge, MenuItem, SubMenu as SubMenuComp } from "./components";
|
import { MenuBadge, MenuItem, SubMenu as SubMenuComp } from "./components";
|
||||||
// eslint-disable-next-line import/no-self-import
|
|
||||||
import SubMenu from "./sub-menu.vue";
|
import SubMenu from "./sub-menu.vue";
|
||||||
import { FsSlotRender } from "@fast-crud/fast-crud";
|
import { FsSlotRender } from "@fast-crud/fast-crud";
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ interface Props extends TabsProps {}
|
|||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "VbenTabsChrome",
|
name: "VbenTabsChrome",
|
||||||
// eslint-disable-next-line perfectionist/sort-objects
|
|
||||||
inheritAttrs: false,
|
inheritAttrs: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user