Compare commits
5 Commits
8879c6ed3c
...
feature-es
| Author | SHA1 | Date | |
|---|---|---|---|
| dd9230e5a1 | |||
| fd6b77bdc3 | |||
| 02ee929029 | |||
| 3382fe7b3f | |||
| 9f2bc65a0e |
@@ -1,216 +0,0 @@
|
|||||||
/*
|
|
||||||
* @Author: Kane
|
|
||||||
* @Date: 2023-03-14 09:19:21
|
|
||||||
* @LastEditors: Kane
|
|
||||||
* @FilePath: /task_schedule/.eslintrc.cjs
|
|
||||||
* @Description: eslint 配置文件
|
|
||||||
*
|
|
||||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
|
||||||
*/
|
|
||||||
module.exports = {
|
|
||||||
root: true,
|
|
||||||
env: { // 需要在env中指定运行的环境,这些环境其实就是一组预定义的全局变量,让 ESLint 知道当前环境存在这些全局变量
|
|
||||||
node: true,
|
|
||||||
browser: true,
|
|
||||||
es2021: true,
|
|
||||||
},
|
|
||||||
parser:"espree",
|
|
||||||
parserOptions:{
|
|
||||||
sourceType: "module",
|
|
||||||
ecmaVersion: 2021,
|
|
||||||
},
|
|
||||||
extends:["eslint:recommended",],
|
|
||||||
rules:{
|
|
||||||
// indent: ["warn", 4,],
|
|
||||||
// 圆括号中的空格,为空不加空格,紧跟花括号、方括号、圆括号时也不加入空格
|
|
||||||
"space-in-parens": ["error", "always", { exceptions: ["{}", "[]", "()", "empty",], },],
|
|
||||||
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
||||||
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
||||||
"no-unused-vars": "warn",
|
|
||||||
semi: ["error", "always",], // 控制行尾部分号
|
|
||||||
quotes: ["error", "double",],
|
|
||||||
"comma-dangle": ["error", {
|
|
||||||
arrays: "always",
|
|
||||||
objects: "always",
|
|
||||||
imports: "never",
|
|
||||||
exports: "never",
|
|
||||||
functions: "never",
|
|
||||||
},], // 数组和对象键值对最后一个逗号
|
|
||||||
"comma-style": ["error", "last",], // 逗号在行位
|
|
||||||
"no-undef-init": "error",
|
|
||||||
"no-invalid-this": "error",
|
|
||||||
"no-use-before-define": "error",
|
|
||||||
"no-shadow-restricted-names": "error", // 禁止对一些关键字或者保留字进行赋值操作,比如NaN、Infinity、undefined、eval、arguments等
|
|
||||||
"comma-spacing": ["error", { before: false, after: true, },],
|
|
||||||
"array-bracket-spacing": ["error", "never", {
|
|
||||||
singleValue: false,
|
|
||||||
objectsInArrays: false,
|
|
||||||
arraysInArrays: false,
|
|
||||||
},],
|
|
||||||
"brace-style": ["error", "allman", { allowSingleLine: true, },],
|
|
||||||
"prefer-const": "warn",
|
|
||||||
"space-before-function-paren": ["error", {
|
|
||||||
anonymous: "always",
|
|
||||||
named: "never",
|
|
||||||
asyncArrow: "always",
|
|
||||||
},],
|
|
||||||
},
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
files: ["*.vue",],
|
|
||||||
parser: "vue-eslint-parser",
|
|
||||||
parserOptions: {
|
|
||||||
ecmaVersion: 2021,
|
|
||||||
sourceType: "module",
|
|
||||||
parser: { // <script>标签中的lang属性配置不同的parser
|
|
||||||
ts: "@typescript-eslint/parser",
|
|
||||||
js: "espree",
|
|
||||||
"<template>": "espree",
|
|
||||||
},
|
|
||||||
// project: "tsconfig.json",
|
|
||||||
project: ["tsconfig.json", "tsconfig.app.json",],
|
|
||||||
extraFileExtensions: [".vue",],
|
|
||||||
},
|
|
||||||
plugins: ["eslint-plugin-vue", "@stylistic",],
|
|
||||||
extends: [
|
|
||||||
// "plugin:vue/vue3-essential",
|
|
||||||
// "plugin:vue/recommended",
|
|
||||||
"eslint:recommended",
|
|
||||||
// "standard-with-typescript",
|
|
||||||
"plugin:@typescript-eslint/eslint-recommended",
|
|
||||||
"plugin:@typescript-eslint/recommended",
|
|
||||||
],
|
|
||||||
rules: {
|
|
||||||
// indent: ["warn", 4,],
|
|
||||||
"no-trailing-spaces": ["error", {"ignoreComments": true,},],
|
|
||||||
// 圆括号中的空格,为空不加空格,紧跟花括号、方括号、圆括号时也不加入空格
|
|
||||||
"space-in-parens": ["error", "always", { exceptions: ["{}", "[]", "()", "empty",], },],
|
|
||||||
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
||||||
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
||||||
"no-unused-vars": "warn",
|
|
||||||
"semi-spacing": ["error", {"before": false, "after": true,},], // 控制行尾部分号
|
|
||||||
"quotes": ["error", "double",],
|
|
||||||
"comma-dangle": ["error", {
|
|
||||||
arrays: "always",
|
|
||||||
objects: "always",
|
|
||||||
imports: "never",
|
|
||||||
exports: "never",
|
|
||||||
functions: "never",
|
|
||||||
},], // 数组和对象键值对最后一个逗号
|
|
||||||
"comma-style": ["error", "last",], // 逗号在行位
|
|
||||||
"no-undef-init": "error",
|
|
||||||
"no-invalid-this": "error",
|
|
||||||
"no-use-before-define": "error",
|
|
||||||
"no-shadow-restricted-names": "error", // 禁止对一些关键字或者保留字进行赋值操作,比如NaN、Infinity、undefined、eval、arguments等
|
|
||||||
"brace-style": ["error", "allman", { allowSingleLine: true, },],
|
|
||||||
"prefer-const": "warn",
|
|
||||||
"space-before-function-paren": ["error", {
|
|
||||||
anonymous: "always",
|
|
||||||
named: "never",
|
|
||||||
asyncArrow: "always",
|
|
||||||
},],
|
|
||||||
// vue
|
|
||||||
"vue/html-indent": ["error", 4,],
|
|
||||||
"vue/max-attributes-per-line": ["error", {
|
|
||||||
"singleline": {
|
|
||||||
"max": 3,
|
|
||||||
},
|
|
||||||
"multiline": {
|
|
||||||
"max": 2,
|
|
||||||
},
|
|
||||||
},],
|
|
||||||
// typescript
|
|
||||||
// "@typescript-eslint/indent": ["warn", 4,],
|
|
||||||
"@stylistic/indent": ["warn", 4, { "SwitchCase": 1, },],
|
|
||||||
"@typescript-eslint/no-explicit-any": "warn",
|
|
||||||
// "@typescript-eslint/no-unsafe-argument": "warn",
|
|
||||||
"@typescript-eslint/no-extra-semi": "off",
|
|
||||||
"@typescript-eslint/no-inferrable-types": "off",
|
|
||||||
"@typescript-eslint/no-unused-vars": "warn",
|
|
||||||
"@typescript-eslint/ban-ts-comment": "warn",
|
|
||||||
"@typescript-eslint/member-delimiter-style": "off",
|
|
||||||
"@stylistic/semi": ["error", "always",], // 控制行尾部分号
|
|
||||||
"@stylistic/brace-style": ["error", "allman", { allowSingleLine: true, },],
|
|
||||||
"@stylistic/comma-dangle": ["error", {
|
|
||||||
arrays: "always",
|
|
||||||
objects: "always",
|
|
||||||
imports: "never",
|
|
||||||
exports: "never",
|
|
||||||
functions: "never",
|
|
||||||
},], // 数组和对象键值对最后一个逗号
|
|
||||||
"@stylistic/quotes": ["error", "double",],
|
|
||||||
"@typescript-eslint/space-before-function-paren": "off",
|
|
||||||
// 方括号的空格问题
|
|
||||||
"comma-spacing": ["error", { before: false, after: true, },],
|
|
||||||
"@typescript-eslint/comma-spacing": ["off", { before: false, after: true, },], // 使用eslint的,不用ts的
|
|
||||||
"array-bracket-spacing": ["error", "never", {
|
|
||||||
singleValue: false,
|
|
||||||
objectsInArrays: false,
|
|
||||||
arraysInArrays: false,
|
|
||||||
},],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ["*.ts",],
|
|
||||||
parser: "@typescript-eslint/parser",
|
|
||||||
parserOptions: {
|
|
||||||
project: "./tsconfig.json",
|
|
||||||
// project: ["tsconfig.json", "tsconfig.app.json",],
|
|
||||||
},
|
|
||||||
plugins: ["@typescript-eslint", "@stylistic",],
|
|
||||||
extends: [
|
|
||||||
"eslint:recommended",
|
|
||||||
// "standard-with-typescript",
|
|
||||||
"plugin:@typescript-eslint/eslint-recommended",
|
|
||||||
"plugin:@typescript-eslint/recommended",
|
|
||||||
],
|
|
||||||
rules: {
|
|
||||||
"no-trailing-spaces": ["error", {"ignoreComments": true,},],
|
|
||||||
// 圆括号中的空格,为空不加空格,紧跟花括号、方括号、圆括号时也不加入空格
|
|
||||||
"space-in-parens": ["error", "always", { exceptions: ["{}", "[]", "()", "empty",], },],
|
|
||||||
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
||||||
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
||||||
"@typescript-eslint/no-explicit-any": "off",
|
|
||||||
// "@typescript-eslint/no-unsafe-argument": "warn",
|
|
||||||
// "@typescript-eslint/indent": ["error", 4,],
|
|
||||||
"@stylistic/indent": ["warn", 4, { "SwitchCase": 1, },],
|
|
||||||
"@typescript-eslint/no-extra-semi": "off",
|
|
||||||
"@typescript-eslint/no-inferrable-types": "off",
|
|
||||||
"@typescript-eslint/no-unused-vars": "warn",
|
|
||||||
"@typescript-eslint/ban-ts-comment": "warn",
|
|
||||||
"@typescript-eslint/member-delimiter-style": "off",
|
|
||||||
"@stylistic/semi": ["error", "always",], // 控制行尾部分号
|
|
||||||
// "@typescript-eslint/brace-style": ["error", "allman", { allowSingleLine: true, },],
|
|
||||||
"@stylistic/brace-style": ["error", "allman", { allowSingleLine: true, },],
|
|
||||||
"@stylistic/comma-dangle": ["error", {
|
|
||||||
arrays: "always",
|
|
||||||
objects: "always",
|
|
||||||
imports: "never",
|
|
||||||
exports: "never",
|
|
||||||
functions: "never",
|
|
||||||
},], // 数组和对象键值对最后一个逗号
|
|
||||||
"@stylistic/quotes": ["error", "double",],
|
|
||||||
"@typescript-eslint/space-before-function-paren": "off",
|
|
||||||
"@typescript-eslint/strict-boolean-expressions": ["error", {
|
|
||||||
allowString: false,
|
|
||||||
},],
|
|
||||||
"comma-style": ["error", "last",], // 逗号在行位
|
|
||||||
"comma-spacing": ["error", { before: false, after: true, },],
|
|
||||||
"@typescript-eslint/comma-spacing": ["off", { before: false, after: true, },], // 使用eslint的,不用ts的
|
|
||||||
"array-bracket-spacing": ["error", "never", {
|
|
||||||
singleValue: false,
|
|
||||||
objectsInArrays: false,
|
|
||||||
arraysInArrays: false,
|
|
||||||
},],
|
|
||||||
"no-undef-init": "error",
|
|
||||||
"no-invalid-this": "error",
|
|
||||||
"no-use-before-define": "error",
|
|
||||||
"no-shadow-restricted-names": "error", // 禁止对一些关键字或者保留字进行赋值操作,比如NaN、Infinity、undefined、eval、arguments等
|
|
||||||
"prefer-const": "warn",
|
|
||||||
"spaced-comment": "error",
|
|
||||||
"space-before-function-paren": "off",
|
|
||||||
"semi-spacing": ["error", {"before": false, "after": true,},],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
|
||||||
111
code/web/regulatory-management-util/eslint.config copy.ts
Normal file
111
code/web/regulatory-management-util/eslint.config copy.ts
Normal file
@@ -0,0 +1,111 @@
|
|||||||
|
import js from "@eslint/js";
|
||||||
|
import globals from "globals";
|
||||||
|
import tseslint from "typescript-eslint";
|
||||||
|
import pluginVue from "eslint-plugin-vue";
|
||||||
|
import { defineConfig } from "eslint/config";
|
||||||
|
import stylistic from "@stylistic/eslint-plugin";
|
||||||
|
|
||||||
|
export default defineConfig([
|
||||||
|
{
|
||||||
|
files: ["**/*.{js,mjs,cjs,ts,mts,cts,vue}",],
|
||||||
|
plugins: { js, },
|
||||||
|
extends: ["js/recommended",],
|
||||||
|
languageOptions: {
|
||||||
|
globals: {
|
||||||
|
...globals.browser,
|
||||||
|
...globals.node,}, },
|
||||||
|
},
|
||||||
|
tseslint.configs.recommended,
|
||||||
|
{
|
||||||
|
files: ["src/**/*.ts", "eslint.config.ts",],
|
||||||
|
plugins: {
|
||||||
|
"@stylistic": stylistic,
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
"spaced-comment": "error",
|
||||||
|
"space-before-function-paren": "off",
|
||||||
|
"semi-spacing": ["error", {"before": false,
|
||||||
|
"after": true,},],
|
||||||
|
"@typescript-eslint/no-unused-vars": "warn",
|
||||||
|
"@stylistic/indent": ["error", 4, { SwitchCase: 1, },],
|
||||||
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
|
"@typescript-eslint/no-extra-semi": "off",
|
||||||
|
"@typescript-eslint/no-inferrable-types": "off",
|
||||||
|
"@typescript-eslint/ban-ts-comment": "warn",
|
||||||
|
"@typescript-eslint/member-delimiter-style": "off",
|
||||||
|
"@stylistic/semi": ["error", "always",], // 控制行尾部分号
|
||||||
|
"@stylistic/brace-style": ["error", "allman", { allowSingleLine: true, },],
|
||||||
|
"@stylistic/comma-dangle": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
arrays: "always",
|
||||||
|
objects: "always",
|
||||||
|
imports: "never",
|
||||||
|
exports: "never",
|
||||||
|
functions: "never",
|
||||||
|
},
|
||||||
|
], // 数组和对象键值对最后一个逗号
|
||||||
|
"@stylistic/quotes": ["error", "double",],
|
||||||
|
"@typescript-eslint/space-before-function-paren": "off",
|
||||||
|
"@typescript-eslint/comma-spacing": ["off", { before: false,
|
||||||
|
after: true, },], // 使用eslint的,不用ts的
|
||||||
|
// "@typescript-eslint/strict-boolean-expressions": ["error", {
|
||||||
|
// allowString: false,
|
||||||
|
// },],
|
||||||
|
"@stylistic/object-property-newline": "warn",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
pluginVue.configs["flat/essential"],
|
||||||
|
pluginVue.configs["flat/strongly-recommended"],
|
||||||
|
{
|
||||||
|
files: ["**/*.vue",],
|
||||||
|
plugins: {
|
||||||
|
"@stylistic": stylistic,
|
||||||
|
},
|
||||||
|
languageOptions: {
|
||||||
|
parserOptions: { parser: tseslint.parser, },
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
"vue/html-indent": ["error", 4,],
|
||||||
|
// "vue/max-attributes-per-line": ["error", {
|
||||||
|
// "singleline": {
|
||||||
|
// "max": 1,
|
||||||
|
// },
|
||||||
|
// "multiline": {
|
||||||
|
// "max": 1,
|
||||||
|
// },
|
||||||
|
// },],
|
||||||
|
"spaced-comment": "error",
|
||||||
|
"space-before-function-paren": "off",
|
||||||
|
"semi-spacing": ["error", {"before": false,
|
||||||
|
"after": true,},],
|
||||||
|
"@typescript-eslint/no-unused-vars": "warn",
|
||||||
|
"@stylistic/indent": ["error", 4, { SwitchCase: 1, },],
|
||||||
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
|
"@typescript-eslint/no-extra-semi": "off",
|
||||||
|
"@typescript-eslint/no-inferrable-types": "off",
|
||||||
|
"@typescript-eslint/ban-ts-comment": "warn",
|
||||||
|
"@typescript-eslint/member-delimiter-style": "off",
|
||||||
|
"@stylistic/semi": ["error", "always",], // 控制行尾部分号
|
||||||
|
"@stylistic/brace-style": ["error", "allman", { allowSingleLine: true, },],
|
||||||
|
"@stylistic/comma-dangle": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
arrays: "always",
|
||||||
|
objects: "always",
|
||||||
|
imports: "never",
|
||||||
|
exports: "never",
|
||||||
|
functions: "never",
|
||||||
|
},
|
||||||
|
], // 数组和对象键值对最后一个逗号
|
||||||
|
"@stylistic/quotes": ["error", "double",],
|
||||||
|
"@typescript-eslint/space-before-function-paren": "off",
|
||||||
|
"@typescript-eslint/comma-spacing": ["off", { before: false,
|
||||||
|
after: true, },], // 使用eslint的,不用ts的
|
||||||
|
// "@typescript-eslint/strict-boolean-expressions": ["error", {
|
||||||
|
// allowString: false,
|
||||||
|
// },],
|
||||||
|
"@stylistic/object-property-newline": "warn",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]);
|
||||||
151
code/web/regulatory-management-util/eslint.config.js.bak
Normal file
151
code/web/regulatory-management-util/eslint.config.js.bak
Normal file
@@ -0,0 +1,151 @@
|
|||||||
|
import js from "@eslint/js";
|
||||||
|
import globals from "globals";
|
||||||
|
import tseslint from "typescript-eslint";
|
||||||
|
import pluginVue from "eslint-plugin-vue";
|
||||||
|
// import json from "@eslint/json";
|
||||||
|
import css from "@eslint/css";
|
||||||
|
import { defineConfig } from "eslint/config";
|
||||||
|
import stylistic from "@stylistic/eslint-plugin";
|
||||||
|
|
||||||
|
export default defineConfig([
|
||||||
|
{
|
||||||
|
name: "通用设置",
|
||||||
|
files: [
|
||||||
|
"src/**/*.{js,mjs,cjs,ts,mts,cts}",
|
||||||
|
"eslint.config.ts",
|
||||||
|
],
|
||||||
|
plugins: {
|
||||||
|
js,
|
||||||
|
"@stylistic": stylistic,
|
||||||
|
},
|
||||||
|
extends: ["js/recommended",],
|
||||||
|
languageOptions: {
|
||||||
|
globals: {
|
||||||
|
...globals.browser,
|
||||||
|
...globals.node, },
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
"no-trailing-spaces": ["error", {"ignoreComments": true,},],
|
||||||
|
"space-in-parens": ["error", "always", { exceptions: ["{}", "[]", "()", "empty",], },],
|
||||||
|
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||||
|
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||||
|
"no-unused-vars": "warn",
|
||||||
|
"semi-spacing": ["error", {"before": false,
|
||||||
|
"after": true,},], // 控制行尾部分号
|
||||||
|
"quotes": ["error", "double",],
|
||||||
|
"comma-dangle": ["error", {
|
||||||
|
arrays: "always",
|
||||||
|
objects: "always",
|
||||||
|
imports: "never",
|
||||||
|
exports: "never",
|
||||||
|
functions: "never",
|
||||||
|
},], // 数组和对象键值对最后一个逗号
|
||||||
|
"comma-style": ["error", "last",], // 逗号在行位
|
||||||
|
"no-undef-init": "error",
|
||||||
|
"no-invalid-this": "error",
|
||||||
|
"no-use-before-define": "error",
|
||||||
|
"no-shadow-restricted-names": "error", // 禁止对一些关键字或者保留字进行赋值操作,比如NaN、Infinity、undefined、eval、arguments等
|
||||||
|
"brace-style": ["error", "allman", { allowSingleLine: true, },],
|
||||||
|
"prefer-const": "warn",
|
||||||
|
"space-before-function-paren": ["error", {
|
||||||
|
anonymous: "always",
|
||||||
|
named: "never",
|
||||||
|
asyncArrow: "always",
|
||||||
|
},],
|
||||||
|
"array-bracket-spacing": ["error", "never", {
|
||||||
|
singleValue: false,
|
||||||
|
objectsInArrays: false,
|
||||||
|
arraysInArrays: false,
|
||||||
|
},],
|
||||||
|
"comma-spacing": ["error", {
|
||||||
|
before: false,
|
||||||
|
after: true, },],
|
||||||
|
"@stylistic/quotes": ["error", "double",],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
// vue设置
|
||||||
|
// pluginVue.configs["flat/base"],
|
||||||
|
pluginVue.configs["flat/essential"],
|
||||||
|
{
|
||||||
|
files: ["**/*.vue",],
|
||||||
|
languageOptions: {
|
||||||
|
parserOptions: { parser: tseslint.parser, },
|
||||||
|
},
|
||||||
|
// rules: {
|
||||||
|
// "vue/html-indent": ["error", 4,],
|
||||||
|
// "vue/max-attributes-per-line": ["error", {
|
||||||
|
// "singleline": {
|
||||||
|
// "max": 3,
|
||||||
|
// },
|
||||||
|
// "multiline": {
|
||||||
|
// "max": 2,
|
||||||
|
// },
|
||||||
|
// },],
|
||||||
|
// },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
files: ["**/*.css",],
|
||||||
|
plugins: { css, },
|
||||||
|
language: "css/css",
|
||||||
|
extends: ["css/recommended",],
|
||||||
|
},
|
||||||
|
// Typescript设置
|
||||||
|
tseslint.configs.recommended,
|
||||||
|
{
|
||||||
|
files: ["src/**/*.ts", "eslint.config.ts",],
|
||||||
|
plugins: {
|
||||||
|
"@stylistic": stylistic,
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
"spaced-comment": "error",
|
||||||
|
"space-before-function-paren": "off",
|
||||||
|
"semi-spacing": ["error", {"before": false,
|
||||||
|
"after": true,},],
|
||||||
|
"@typescript-eslint/no-unused-vars": "warn",
|
||||||
|
"@stylistic/indent": ["error", 4, { SwitchCase: 1, },],
|
||||||
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
|
"@typescript-eslint/no-extra-semi": "off",
|
||||||
|
"@typescript-eslint/no-inferrable-types": "off",
|
||||||
|
"@typescript-eslint/ban-ts-comment": "warn",
|
||||||
|
"@typescript-eslint/member-delimiter-style": "off",
|
||||||
|
"@stylistic/semi": ["error", "always",], // 控制行尾部分号
|
||||||
|
"@stylistic/brace-style": ["error", "allman", { allowSingleLine: true, },],
|
||||||
|
"@stylistic/comma-dangle": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
arrays: "always",
|
||||||
|
objects: "always",
|
||||||
|
imports: "never",
|
||||||
|
exports: "never",
|
||||||
|
functions: "never",
|
||||||
|
},
|
||||||
|
], // 数组和对象键值对最后一个逗号
|
||||||
|
"@stylistic/quotes": ["error", "double",],
|
||||||
|
"@typescript-eslint/space-before-function-paren": "off",
|
||||||
|
"@typescript-eslint/comma-spacing": ["off", { before: false,
|
||||||
|
after: true, },], // 使用eslint的,不用ts的
|
||||||
|
// "@typescript-eslint/strict-boolean-expressions": ["error", {
|
||||||
|
// allowString: false,
|
||||||
|
// },],
|
||||||
|
"@stylistic/object-property-newline": "warn",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// files: ["**/*.json"],
|
||||||
|
// plugins: { json },
|
||||||
|
// language: "json/json",
|
||||||
|
// extends: ["json/recommended"],
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// files: ["**/*.jsonc"],
|
||||||
|
// plugins: { json },
|
||||||
|
// language: "json/jsonc",
|
||||||
|
// extends: ["json/recommended"],
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// files: ["**/*.json5"],
|
||||||
|
// plugins: { json },
|
||||||
|
// language: "json/json5",
|
||||||
|
// extends: ["json/recommended"],
|
||||||
|
// },
|
||||||
|
]);
|
||||||
169
code/web/regulatory-management-util/eslint.config.ts
Normal file
169
code/web/regulatory-management-util/eslint.config.ts
Normal file
@@ -0,0 +1,169 @@
|
|||||||
|
import js from "@eslint/js";
|
||||||
|
import globals from "globals";
|
||||||
|
import tseslint from "typescript-eslint";
|
||||||
|
import pluginVue from "eslint-plugin-vue";
|
||||||
|
import { defineConfig } from "eslint/config";
|
||||||
|
import stylistic from "@stylistic/eslint-plugin";
|
||||||
|
|
||||||
|
export default defineConfig([
|
||||||
|
{
|
||||||
|
name: "通用设置",
|
||||||
|
files: ["**/*.{js,mjs,cjs,ts,mts,cts,vue}",],
|
||||||
|
plugins: { js, },
|
||||||
|
extends: ["js/recommended",],
|
||||||
|
languageOptions: {
|
||||||
|
globals: {
|
||||||
|
...globals.browser,
|
||||||
|
...globals.node,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
rules:{
|
||||||
|
// indent: ["warn", 4,],
|
||||||
|
// 圆括号中的空格,为空不加空格,紧跟花括号、方括号、圆括号时也不加入空格
|
||||||
|
"space-in-parens": ["error", "always", { exceptions: ["{}", "[]", "()", "empty",], },],
|
||||||
|
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||||
|
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||||
|
"no-unused-vars": "warn",
|
||||||
|
semi: ["error", "always",], // 控制行尾部分号
|
||||||
|
quotes: ["error", "double",],
|
||||||
|
"comma-dangle": ["error", {
|
||||||
|
arrays: "always",
|
||||||
|
objects: "always",
|
||||||
|
imports: "never",
|
||||||
|
exports: "never",
|
||||||
|
functions: "never",
|
||||||
|
},], // 数组和对象键值对最后一个逗号
|
||||||
|
"comma-style": ["error", "last",], // 逗号在行尾
|
||||||
|
"no-undef-init": "error",
|
||||||
|
"no-invalid-this": "error",
|
||||||
|
"no-use-before-define": "error",
|
||||||
|
"no-shadow-restricted-names": "error", // 禁止对一些关键字或者保留字进行赋值操作,比如NaN、Infinity、undefined、eval、arguments等
|
||||||
|
"comma-spacing": ["error", { before: false,
|
||||||
|
after: true, },],
|
||||||
|
"array-bracket-spacing": ["error", "never", {
|
||||||
|
singleValue: false,
|
||||||
|
objectsInArrays: false,
|
||||||
|
arraysInArrays: false,
|
||||||
|
},],
|
||||||
|
"brace-style": ["error", "allman", { allowSingleLine: true, },],
|
||||||
|
"prefer-const": "warn",
|
||||||
|
"space-before-function-paren": ["error", {
|
||||||
|
anonymous: "always",
|
||||||
|
named: "never",
|
||||||
|
asyncArrow: "always",
|
||||||
|
},],
|
||||||
|
"@stylistic/no-trailing-spaces": [ // 不允许末尾的空格
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"skipBlankLines": false,
|
||||||
|
"ignoreComments": false,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
tseslint.configs.recommended,
|
||||||
|
{
|
||||||
|
files: ["src/**/*.ts", "eslint.config.ts",],
|
||||||
|
plugins: {
|
||||||
|
"@stylistic": stylistic,
|
||||||
|
},
|
||||||
|
languageOptions: {
|
||||||
|
parserOptions: { parser: tseslint.parser, },
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
"spaced-comment": "error",
|
||||||
|
"space-before-function-paren": "off",
|
||||||
|
"semi-spacing": ["error", { before: false,
|
||||||
|
after: true, },],
|
||||||
|
"@typescript-eslint/no-unused-vars": "warn",
|
||||||
|
"@stylistic/indent": ["error", 4, { SwitchCase: 1, },],
|
||||||
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
|
"@typescript-eslint/no-extra-semi": "off",
|
||||||
|
"@typescript-eslint/no-inferrable-types": "off",
|
||||||
|
"@typescript-eslint/ban-ts-comment": "warn",
|
||||||
|
"@typescript-eslint/member-delimiter-style": "off",
|
||||||
|
"@stylistic/semi": ["error", "always",], // 控制行尾部分号
|
||||||
|
"@stylistic/brace-style": ["error", "allman", { allowSingleLine: true, },],
|
||||||
|
"@stylistic/comma-dangle": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
arrays: "always",
|
||||||
|
objects: "always",
|
||||||
|
imports: "never",
|
||||||
|
exports: "never",
|
||||||
|
functions: "never",
|
||||||
|
},
|
||||||
|
], // 数组和对象键值对最后一个逗号
|
||||||
|
"@stylistic/quotes": ["error", "double",],
|
||||||
|
"@typescript-eslint/space-before-function-paren": "off",
|
||||||
|
"@typescript-eslint/comma-spacing": [
|
||||||
|
"off",
|
||||||
|
{ before: false,
|
||||||
|
after: true, },
|
||||||
|
], // 使用eslint的,不用ts的
|
||||||
|
// "@typescript-eslint/strict-boolean-expressions": ["error", {
|
||||||
|
// allowString: false,
|
||||||
|
// },],
|
||||||
|
"@stylistic/object-property-newline": "warn",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
pluginVue.configs["flat/essential"],
|
||||||
|
pluginVue.configs["flat/strongly-recommended"],
|
||||||
|
{
|
||||||
|
files: ["**/*.vue", "**/.ts", "eslint.config.ts",],
|
||||||
|
plugins: {
|
||||||
|
"@stylistic": stylistic,
|
||||||
|
},
|
||||||
|
languageOptions: {
|
||||||
|
parserOptions: { parser: tseslint.parser, },
|
||||||
|
ecmaVersion: "latest",
|
||||||
|
sourceType: "module",
|
||||||
|
globals: globals.browser,
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
"vue/html-indent": ["error", 4,],
|
||||||
|
// "vue/max-attributes-per-line": ["error", {
|
||||||
|
// "singleline": {
|
||||||
|
// "max": 1,
|
||||||
|
// },
|
||||||
|
// "multiline": {
|
||||||
|
// "max": 1,
|
||||||
|
// },
|
||||||
|
// },],
|
||||||
|
"spaced-comment": "error",
|
||||||
|
"space-before-function-paren": "off",
|
||||||
|
"semi-spacing": ["error", { before: false,
|
||||||
|
after: true, },],
|
||||||
|
"@typescript-eslint/no-unused-vars": "warn",
|
||||||
|
"@stylistic/indent": ["error", 4, { SwitchCase: 1, },],
|
||||||
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
|
"@typescript-eslint/no-extra-semi": "off",
|
||||||
|
"@typescript-eslint/no-inferrable-types": "off",
|
||||||
|
"@typescript-eslint/ban-ts-comment": "warn",
|
||||||
|
"@typescript-eslint/member-delimiter-style": "off",
|
||||||
|
"@stylistic/semi": ["error", "always",], // 控制行尾部分号
|
||||||
|
"@stylistic/brace-style": ["error", "allman", { allowSingleLine: true, },],
|
||||||
|
"@stylistic/comma-dangle": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
arrays: "always",
|
||||||
|
objects: "always",
|
||||||
|
imports: "never",
|
||||||
|
exports: "never",
|
||||||
|
functions: "never",
|
||||||
|
},
|
||||||
|
], // 数组和对象键值对最后一个逗号
|
||||||
|
"@stylistic/quotes": ["error", "double",],
|
||||||
|
"@typescript-eslint/space-before-function-paren": "off",
|
||||||
|
"@typescript-eslint/comma-spacing": [
|
||||||
|
"off",
|
||||||
|
{ before: false,
|
||||||
|
after: true, },
|
||||||
|
], // 使用eslint的,不用ts的
|
||||||
|
// "@typescript-eslint/strict-boolean-expressions": ["error", {
|
||||||
|
// allowString: false,
|
||||||
|
// },],
|
||||||
|
"@stylistic/object-property-newline": "warn",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]);
|
||||||
280
code/web/regulatory-management-util/package-lock.json
generated
280
code/web/regulatory-management-util/package-lock.json
generated
@@ -14,7 +14,14 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@element-plus/icons-vue": "^2.3.2",
|
"@element-plus/icons-vue": "^2.3.2",
|
||||||
|
"@eslint/css": "^0.14.1",
|
||||||
|
"@eslint/js": "^9.39.2",
|
||||||
|
"@eslint/json": "^1.0.0",
|
||||||
"@stylistic/eslint-plugin": "^5.7.1",
|
"@stylistic/eslint-plugin": "^5.7.1",
|
||||||
|
"@stylistic/eslint-plugin-js": "^4.4.1",
|
||||||
|
"@stylistic/eslint-plugin-jsx": "^4.4.1",
|
||||||
|
"@stylistic/eslint-plugin-plus": "^4.4.1",
|
||||||
|
"@stylistic/eslint-plugin-ts": "^4.4.1",
|
||||||
"@types/node": "^25.2.0",
|
"@types/node": "^25.2.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
||||||
"@typescript-eslint/parser": "^8.54.0",
|
"@typescript-eslint/parser": "^8.54.0",
|
||||||
@@ -26,13 +33,16 @@
|
|||||||
"axios": "^1.13.4",
|
"axios": "^1.13.4",
|
||||||
"element-plus": "^2.13.2",
|
"element-plus": "^2.13.2",
|
||||||
"eslint": "^9.39.2",
|
"eslint": "^9.39.2",
|
||||||
|
"eslint-config-prettier": "^10.1.8",
|
||||||
"eslint-plugin-vue": "^10.7.0",
|
"eslint-plugin-vue": "^10.7.0",
|
||||||
|
"globals": "^17.3.0",
|
||||||
"jiti": "^2.6.1",
|
"jiti": "^2.6.1",
|
||||||
"lodash": "^4.17.23",
|
"lodash": "^4.17.23",
|
||||||
"lodash-es": "^4.17.23",
|
"lodash-es": "^4.17.23",
|
||||||
"path": "^0.12.7",
|
"path": "^0.12.7",
|
||||||
"sass": "^1.97.3",
|
"sass": "^1.97.3",
|
||||||
"typescript": "~5.9.3",
|
"typescript": "~5.9.3",
|
||||||
|
"typescript-eslint": "^8.54.0",
|
||||||
"vite": "^7.3.1",
|
"vite": "^7.3.1",
|
||||||
"vue-demi": "^0.14.10",
|
"vue-demi": "^0.14.10",
|
||||||
"vue-eslint-parser": "^10.2.0",
|
"vue-eslint-parser": "^10.2.0",
|
||||||
@@ -658,6 +668,35 @@
|
|||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@eslint/css": {
|
||||||
|
"version": "0.14.1",
|
||||||
|
"resolved": "https://registry.npmmirror.com/@eslint/css/-/css-0.14.1.tgz",
|
||||||
|
"integrity": "sha512-NXiteSacmpaXqgyIW3+GcNzexXyfC0kd+gig6WTjD4A74kBGJeNx1tV0Hxa0v7x0+mnIyKfGPhGNs1uhRFdh+w==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"dependencies": {
|
||||||
|
"@eslint/core": "^0.17.0",
|
||||||
|
"@eslint/css-tree": "^3.6.6",
|
||||||
|
"@eslint/plugin-kit": "^0.4.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@eslint/css-tree": {
|
||||||
|
"version": "3.6.8",
|
||||||
|
"resolved": "https://registry.npmmirror.com/@eslint/css-tree/-/css-tree-3.6.8.tgz",
|
||||||
|
"integrity": "sha512-s0f40zY7dlMp8i0Jf0u6l/aSswS0WRAgkhgETgiCJRcxIWb4S/Sp9uScKHWbkM3BnoFLbJbmOYk5AZUDFVxaLA==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"mdn-data": "2.23.0",
|
||||||
|
"source-map-js": "^1.0.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@eslint/eslintrc": {
|
"node_modules/@eslint/eslintrc": {
|
||||||
"version": "3.3.1",
|
"version": "3.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz",
|
||||||
@@ -693,6 +732,19 @@
|
|||||||
"concat-map": "0.0.1"
|
"concat-map": "0.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@eslint/eslintrc/node_modules/globals": {
|
||||||
|
"version": "14.0.0",
|
||||||
|
"resolved": "https://registry.npmmirror.com/globals/-/globals-14.0.0.tgz",
|
||||||
|
"integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@eslint/eslintrc/node_modules/ignore": {
|
"node_modules/@eslint/eslintrc/node_modules/ignore": {
|
||||||
"version": "5.3.2",
|
"version": "5.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
|
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
|
||||||
@@ -729,6 +781,49 @@
|
|||||||
"url": "https://eslint.org/donate"
|
"url": "https://eslint.org/donate"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@eslint/json": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmmirror.com/@eslint/json/-/json-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-x0YjhxhUIG9yiS6KcB2SRmyzDM/eSac2IuhfLMyjAyxyCzH0gFjrHGPFahJlgiOt8dfaCpPDygcCmoCm9rzlyA==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"dependencies": {
|
||||||
|
"@eslint/core": "^1.0.1",
|
||||||
|
"@eslint/plugin-kit": "^0.5.1",
|
||||||
|
"@humanwhocodes/momoa": "^3.3.10",
|
||||||
|
"natural-compare": "^1.4.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "^20.19.0 || ^22.13.0 || >=24"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@eslint/json/node_modules/@eslint/core": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmmirror.com/@eslint/core/-/core-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-/nr9K9wkr3P1EzFTdFdMoLuo1PmIxjmwvPozwoSodjNBdefGujXQUF93u1DDZpEaTuDvMsIQddsd35BwtrW9Xw==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"dependencies": {
|
||||||
|
"@types/json-schema": "^7.0.15"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "^20.19.0 || ^22.13.0 || >=24"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@eslint/json/node_modules/@eslint/plugin-kit": {
|
||||||
|
"version": "0.5.1",
|
||||||
|
"resolved": "https://registry.npmmirror.com/@eslint/plugin-kit/-/plugin-kit-0.5.1.tgz",
|
||||||
|
"integrity": "sha512-hZ2uC1jbf6JMSsF2ZklhRQqf6GLpYyux6DlzegnW/aFlpu6qJj5GO7ub7WOETCrEl6pl6DAX7RgTgj/fyG+6BQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"dependencies": {
|
||||||
|
"@eslint/core": "^1.0.1",
|
||||||
|
"levn": "^0.4.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "^20.19.0 || ^22.13.0 || >=24"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@eslint/object-schema": {
|
"node_modules/@eslint/object-schema": {
|
||||||
"version": "2.1.7",
|
"version": "2.1.7",
|
||||||
"resolved": "https://registry.npmmirror.com/@eslint/object-schema/-/object-schema-2.1.7.tgz",
|
"resolved": "https://registry.npmmirror.com/@eslint/object-schema/-/object-schema-2.1.7.tgz",
|
||||||
@@ -833,6 +928,16 @@
|
|||||||
"url": "https://github.com/sponsors/nzakas"
|
"url": "https://github.com/sponsors/nzakas"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@humanwhocodes/momoa": {
|
||||||
|
"version": "3.3.10",
|
||||||
|
"resolved": "https://registry.npmmirror.com/@humanwhocodes/momoa/-/momoa-3.3.10.tgz",
|
||||||
|
"integrity": "sha512-KWiFQpSAqEIyrTXko3hFNLeQvSK8zXlJQzhhxsyVn58WFRYXST99b3Nqnu+ttOtjds2Pl2grUHGpe2NzhPynuQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@humanwhocodes/retry": {
|
"node_modules/@humanwhocodes/retry": {
|
||||||
"version": "0.4.3",
|
"version": "0.4.3",
|
||||||
"resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",
|
"resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",
|
||||||
@@ -1718,6 +1823,126 @@
|
|||||||
"eslint": ">=9.0.0"
|
"eslint": ">=9.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@stylistic/eslint-plugin-js": {
|
||||||
|
"version": "4.4.1",
|
||||||
|
"resolved": "https://registry.npmmirror.com/@stylistic/eslint-plugin-js/-/eslint-plugin-js-4.4.1.tgz",
|
||||||
|
"integrity": "sha512-eLisyHvx7Sel8vcFZOEwDEBGmYsYM1SqDn81BWgmbqEXfXRf8oe6Rwp+ryM/8odNjlxtaaxp0Ihmt86CnLAxKg==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"eslint-visitor-keys": "^4.2.0",
|
||||||
|
"espree": "^10.3.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"eslint": ">=9.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@stylistic/eslint-plugin-js/node_modules/eslint-visitor-keys": {
|
||||||
|
"version": "4.2.1",
|
||||||
|
"resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",
|
||||||
|
"integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"engines": {
|
||||||
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://opencollective.com/eslint"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@stylistic/eslint-plugin-jsx": {
|
||||||
|
"version": "4.4.1",
|
||||||
|
"resolved": "https://registry.npmmirror.com/@stylistic/eslint-plugin-jsx/-/eslint-plugin-jsx-4.4.1.tgz",
|
||||||
|
"integrity": "sha512-83SInq4u7z71vWwGG+6ViOtlOmZ6tSrDkMPhrvdBBTGMLA0gs22WSdhQ4vZP3oJ5Xg4ythvqeUiFSedvVxzhyA==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"eslint-visitor-keys": "^4.2.0",
|
||||||
|
"espree": "^10.3.0",
|
||||||
|
"estraverse": "^5.3.0",
|
||||||
|
"picomatch": "^4.0.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"eslint": ">=9.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@stylistic/eslint-plugin-jsx/node_modules/eslint-visitor-keys": {
|
||||||
|
"version": "4.2.1",
|
||||||
|
"resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",
|
||||||
|
"integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"engines": {
|
||||||
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://opencollective.com/eslint"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@stylistic/eslint-plugin-plus": {
|
||||||
|
"version": "4.4.1",
|
||||||
|
"resolved": "https://registry.npmmirror.com/@stylistic/eslint-plugin-plus/-/eslint-plugin-plus-4.4.1.tgz",
|
||||||
|
"integrity": "sha512-4w2Ktg7OuJrn0QwJPdTWmrweJ91UoIUEiSPLUVTurAR+Qx9rLHGnycAocUcoRMtPRmCNmw1BP61JKsl7Jug38g==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"eslint-visitor-keys": "^4.2.0",
|
||||||
|
"espree": "^10.3.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"eslint": ">=9.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@stylistic/eslint-plugin-plus/node_modules/eslint-visitor-keys": {
|
||||||
|
"version": "4.2.1",
|
||||||
|
"resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",
|
||||||
|
"integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"engines": {
|
||||||
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://opencollective.com/eslint"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@stylistic/eslint-plugin-ts": {
|
||||||
|
"version": "4.4.1",
|
||||||
|
"resolved": "https://registry.npmmirror.com/@stylistic/eslint-plugin-ts/-/eslint-plugin-ts-4.4.1.tgz",
|
||||||
|
"integrity": "sha512-2r6cLcmdF6til66lx8esBYvBvsn7xCmLT50gw/n1rGGlTq/OxeNjBIh4c3VEaDGMa/5TybrZTia6sQUHdIWx1w==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@typescript-eslint/utils": "^8.32.1",
|
||||||
|
"eslint-visitor-keys": "^4.2.0",
|
||||||
|
"espree": "^10.3.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"eslint": ">=9.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@stylistic/eslint-plugin-ts/node_modules/eslint-visitor-keys": {
|
||||||
|
"version": "4.2.1",
|
||||||
|
"resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",
|
||||||
|
"integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"engines": {
|
||||||
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://opencollective.com/eslint"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@stylistic/eslint-plugin/node_modules/eslint-visitor-keys": {
|
"node_modules/@stylistic/eslint-plugin/node_modules/eslint-visitor-keys": {
|
||||||
"version": "4.2.1",
|
"version": "4.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",
|
||||||
@@ -2945,6 +3170,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/eslint-config-prettier": {
|
||||||
|
"version": "10.1.8",
|
||||||
|
"resolved": "https://registry.npmmirror.com/eslint-config-prettier/-/eslint-config-prettier-10.1.8.tgz",
|
||||||
|
"integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"bin": {
|
||||||
|
"eslint-config-prettier": "bin/cli.js"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://opencollective.com/eslint-config-prettier"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"eslint": ">=7.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/eslint-plugin-vue": {
|
"node_modules/eslint-plugin-vue": {
|
||||||
"version": "10.7.0",
|
"version": "10.7.0",
|
||||||
"resolved": "https://registry.npmmirror.com/eslint-plugin-vue/-/eslint-plugin-vue-10.7.0.tgz",
|
"resolved": "https://registry.npmmirror.com/eslint-plugin-vue/-/eslint-plugin-vue-10.7.0.tgz",
|
||||||
@@ -3362,9 +3603,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/globals": {
|
"node_modules/globals": {
|
||||||
"version": "14.0.0",
|
"version": "17.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz",
|
"resolved": "https://registry.npmmirror.com/globals/-/globals-17.3.0.tgz",
|
||||||
"integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==",
|
"integrity": "sha512-yMqGUQVVCkD4tqjOJf3TnrvaaHDMYp4VlUSObbkIiuCPe/ofdMBFIAcBbCSRFWOnos6qRiTVStDwqPLUclaxIw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -3741,6 +3982,13 @@
|
|||||||
"node": ">= 0.4"
|
"node": ">= 0.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/mdn-data": {
|
||||||
|
"version": "2.23.0",
|
||||||
|
"resolved": "https://registry.npmmirror.com/mdn-data/-/mdn-data-2.23.0.tgz",
|
||||||
|
"integrity": "sha512-786vq1+4079JSeu2XdcDjrhi/Ry7BWtjDl9WtGPWLiIHb2T66GvIVflZTBoSNZ5JqTtJGYEVMuFA/lbQlMOyDQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "CC0-1.0"
|
||||||
|
},
|
||||||
"node_modules/memoize-one": {
|
"node_modules/memoize-one": {
|
||||||
"version": "6.0.0",
|
"version": "6.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-6.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-6.0.0.tgz",
|
||||||
@@ -4445,6 +4693,30 @@
|
|||||||
"node": ">=14.17"
|
"node": ">=14.17"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/typescript-eslint": {
|
||||||
|
"version": "8.54.0",
|
||||||
|
"resolved": "https://registry.npmmirror.com/typescript-eslint/-/typescript-eslint-8.54.0.tgz",
|
||||||
|
"integrity": "sha512-CKsJ+g53QpsNPqbzUsfKVgd3Lny4yKZ1pP4qN3jdMOg/sisIDLGyDMezycquXLE5JsEU0wp3dGNdzig0/fmSVQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@typescript-eslint/eslint-plugin": "8.54.0",
|
||||||
|
"@typescript-eslint/parser": "8.54.0",
|
||||||
|
"@typescript-eslint/typescript-estree": "8.54.0",
|
||||||
|
"@typescript-eslint/utils": "8.54.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"type": "opencollective",
|
||||||
|
"url": "https://opencollective.com/typescript-eslint"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"eslint": "^8.57.0 || ^9.0.0",
|
||||||
|
"typescript": ">=4.8.4 <6.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/ufo": {
|
"node_modules/ufo": {
|
||||||
"version": "1.6.3",
|
"version": "1.6.3",
|
||||||
"resolved": "https://registry.npmmirror.com/ufo/-/ufo-1.6.3.tgz",
|
"resolved": "https://registry.npmmirror.com/ufo/-/ufo-1.6.3.tgz",
|
||||||
@@ -4647,7 +4919,7 @@
|
|||||||
},
|
},
|
||||||
"node_modules/vue-eslint-parser": {
|
"node_modules/vue-eslint-parser": {
|
||||||
"version": "10.2.0",
|
"version": "10.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-10.2.0.tgz",
|
"resolved": "https://registry.npmmirror.com/vue-eslint-parser/-/vue-eslint-parser-10.2.0.tgz",
|
||||||
"integrity": "sha512-CydUvFOQKD928UzZhTp4pr2vWz1L+H99t7Pkln2QSPdvmURT0MoC4wUccfCnuEaihNsu9aYYyk+bep8rlfkUXw==",
|
"integrity": "sha512-CydUvFOQKD928UzZhTp4pr2vWz1L+H99t7Pkln2QSPdvmURT0MoC4wUccfCnuEaihNsu9aYYyk+bep8rlfkUXw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -15,7 +15,14 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@element-plus/icons-vue": "^2.3.2",
|
"@element-plus/icons-vue": "^2.3.2",
|
||||||
|
"@eslint/css": "^0.14.1",
|
||||||
|
"@eslint/js": "^9.39.2",
|
||||||
|
"@eslint/json": "^1.0.0",
|
||||||
"@stylistic/eslint-plugin": "^5.7.1",
|
"@stylistic/eslint-plugin": "^5.7.1",
|
||||||
|
"@stylistic/eslint-plugin-js": "^4.4.1",
|
||||||
|
"@stylistic/eslint-plugin-jsx": "^4.4.1",
|
||||||
|
"@stylistic/eslint-plugin-plus": "^4.4.1",
|
||||||
|
"@stylistic/eslint-plugin-ts": "^4.4.1",
|
||||||
"@types/node": "^25.2.0",
|
"@types/node": "^25.2.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
||||||
"@typescript-eslint/parser": "^8.54.0",
|
"@typescript-eslint/parser": "^8.54.0",
|
||||||
@@ -27,13 +34,16 @@
|
|||||||
"axios": "^1.13.4",
|
"axios": "^1.13.4",
|
||||||
"element-plus": "^2.13.2",
|
"element-plus": "^2.13.2",
|
||||||
"eslint": "^9.39.2",
|
"eslint": "^9.39.2",
|
||||||
|
"eslint-config-prettier": "^10.1.8",
|
||||||
"eslint-plugin-vue": "^10.7.0",
|
"eslint-plugin-vue": "^10.7.0",
|
||||||
|
"globals": "^17.3.0",
|
||||||
"jiti": "^2.6.1",
|
"jiti": "^2.6.1",
|
||||||
"lodash": "^4.17.23",
|
"lodash": "^4.17.23",
|
||||||
"lodash-es": "^4.17.23",
|
"lodash-es": "^4.17.23",
|
||||||
"path": "^0.12.7",
|
"path": "^0.12.7",
|
||||||
"sass": "^1.97.3",
|
"sass": "^1.97.3",
|
||||||
"typescript": "~5.9.3",
|
"typescript": "~5.9.3",
|
||||||
|
"typescript-eslint": "^8.54.0",
|
||||||
"vite": "^7.3.1",
|
"vite": "^7.3.1",
|
||||||
"vue-demi": "^0.14.10",
|
"vue-demi": "^0.14.10",
|
||||||
"vue-eslint-parser": "^10.2.0",
|
"vue-eslint-parser": "^10.2.0",
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src="/vite.svg"
|
|
||||||
class="logo"
|
class="logo"
|
||||||
|
src="/vite.svg"
|
||||||
alt="Vite logo"
|
alt="Vite logo"
|
||||||
>
|
>
|
||||||
</a>
|
</a>
|
||||||
@@ -28,17 +28,17 @@ import HelloWorld from "./components/HelloWorld.vue";
|
|||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.logo {
|
.logo {
|
||||||
height: 6em;
|
height: 6em;
|
||||||
padding: 1.5em;
|
padding: 1.5em;
|
||||||
will-change: filter;
|
will-change: filter;
|
||||||
transition: filter 300ms;
|
transition: filter 300ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo:hover {
|
.logo:hover {
|
||||||
filter: drop-shadow(0 0 2em #646cffaa);
|
filter: drop-shadow(0 0 2em #646cffaa);
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo.vue:hover {
|
.logo.vue:hover {
|
||||||
filter: drop-shadow(0 0 2em #42b883aa);
|
filter: drop-shadow(0 0 2em #42b883aa);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,9 +1,3 @@
|
|||||||
<!--
|
|
||||||
author: Kane Wang <wangkane@qq.com>
|
|
||||||
date: 2025-10-14 15:57:34
|
|
||||||
component: AppMain
|
|
||||||
Copyright © CPIC All rights reserved
|
|
||||||
-->
|
|
||||||
<template>
|
<template>
|
||||||
<router-view />
|
<router-view />
|
||||||
</template>
|
</template>
|
||||||
@@ -11,7 +5,7 @@ Copyright © CPIC All rights reserved
|
|||||||
export default {
|
export default {
|
||||||
name: "AppMain",
|
name: "AppMain",
|
||||||
components: [],
|
components: [],
|
||||||
setup() {},
|
setup() { },
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="sass" scoped></style>
|
<style lang="sass" scoped></style>
|
||||||
@@ -1,12 +1,3 @@
|
|||||||
<!--
|
|
||||||
* @Author: Kane
|
|
||||||
* @Date: 2023-03-23 15:07:31
|
|
||||||
* @LastEditors: Kane
|
|
||||||
* @FilePath: /task_schedule/src/layout/Index.vue
|
|
||||||
* @Description:
|
|
||||||
*
|
|
||||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
|
||||||
-->
|
|
||||||
<template>
|
<template>
|
||||||
<el-container class="layout-container">
|
<el-container class="layout-container">
|
||||||
<el-header class="layout-header">
|
<el-header class="layout-header">
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<!--
|
<!--
|
||||||
author: Kane Wang <wangkane@qq.com>
|
author: Kane Wang <wangkane@qq.com>
|
||||||
date: 2025-10-23 15:32:30
|
date: 2025-10-23 17:52:01
|
||||||
component: Header
|
component: Header
|
||||||
Copyright © CPIC All rights reserved
|
Copyright © CPIC All rights reserved
|
||||||
-->
|
-->
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* @Author: Kane Wang <wangkane@qq.com>
|
* @Author: Kane Wang <wangkane@qq.com>
|
||||||
* @Date: 2026-01-05 10:42:42
|
* @Date: 2026-01-05 10:42:42
|
||||||
* @LastEditors: Kane Wang
|
* @LastEditors: Kane Wang
|
||||||
* @LastModified: 2026-01-05 19:21:09
|
* @LastModified: 2026-02-04 15:37:20
|
||||||
* @FilePath: src/utils/regulatory_utils.ts
|
* @FilePath: src/utils/regulatory_utils.ts
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
@@ -19,11 +19,10 @@ interface AddNewRegulatoryResponse
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface Render {
|
interface Render {
|
||||||
( resonse: AddNewRegulatoryResponse ) :void,
|
( resonse: AddNewRegulatoryResponse ) :void, }
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param regulatory RegulatoryData类型制度对象,用于发送请求。
|
* @param regulatory RegulatoryData类型制度对象,用于发送请求。
|
||||||
* @param render 回调函数,请求成功后调用。
|
* @param render 回调函数,请求成功后调用。
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user