Compare commits
4 Commits
9f2bc65a0e
...
feature-es
| Author | SHA1 | Date | |
|---|---|---|---|
| dd9230e5a1 | |||
| fd6b77bdc3 | |||
| 02ee929029 | |||
| 3382fe7b3f |
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"],
|
||||||
|
// },
|
||||||
|
]);
|
||||||
@@ -2,36 +2,30 @@ import js from "@eslint/js";
|
|||||||
import globals from "globals";
|
import globals from "globals";
|
||||||
import tseslint from "typescript-eslint";
|
import tseslint from "typescript-eslint";
|
||||||
import pluginVue from "eslint-plugin-vue";
|
import pluginVue from "eslint-plugin-vue";
|
||||||
// import json from "@eslint/json";
|
|
||||||
import css from "@eslint/css";
|
|
||||||
import { defineConfig } from "eslint/config";
|
import { defineConfig } from "eslint/config";
|
||||||
import stylistic from "@stylistic/eslint-plugin";
|
import stylistic from "@stylistic/eslint-plugin";
|
||||||
|
|
||||||
export default defineConfig([
|
export default defineConfig([
|
||||||
{
|
{
|
||||||
files: [
|
name: "通用设置",
|
||||||
"src/**/*.{js,mjs,cjs,ts,mts,cts,vue}",
|
files: ["**/*.{js,mjs,cjs,ts,mts,cts,vue}",],
|
||||||
"eslint.config.ts",
|
plugins: { js, },
|
||||||
],
|
|
||||||
plugins: {
|
|
||||||
js,
|
|
||||||
"@stylistic": stylistic,
|
|
||||||
},
|
|
||||||
extends: ["js/recommended",],
|
extends: ["js/recommended",],
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
globals: {
|
globals: {
|
||||||
...globals.browser,
|
...globals.browser,
|
||||||
...globals.node, },
|
...globals.node,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
rules: {
|
rules:{
|
||||||
"no-trailing-spaces": ["error", {"ignoreComments": true,},],
|
// indent: ["warn", 4,],
|
||||||
|
// 圆括号中的空格,为空不加空格,紧跟花括号、方括号、圆括号时也不加入空格
|
||||||
"space-in-parens": ["error", "always", { exceptions: ["{}", "[]", "()", "empty",], },],
|
"space-in-parens": ["error", "always", { exceptions: ["{}", "[]", "()", "empty",], },],
|
||||||
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||||
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||||
"no-unused-vars": "warn",
|
"no-unused-vars": "warn",
|
||||||
"semi-spacing": ["error", {"before": false,
|
semi: ["error", "always",], // 控制行尾部分号
|
||||||
"after": true,},], // 控制行尾部分号
|
quotes: ["error", "double",],
|
||||||
"quotes": ["error", "double",],
|
|
||||||
"comma-dangle": ["error", {
|
"comma-dangle": ["error", {
|
||||||
arrays: "always",
|
arrays: "always",
|
||||||
objects: "always",
|
objects: "always",
|
||||||
@@ -39,11 +33,18 @@ export default defineConfig([
|
|||||||
exports: "never",
|
exports: "never",
|
||||||
functions: "never",
|
functions: "never",
|
||||||
},], // 数组和对象键值对最后一个逗号
|
},], // 数组和对象键值对最后一个逗号
|
||||||
"comma-style": ["error", "last",], // 逗号在行位
|
"comma-style": ["error", "last",], // 逗号在行尾
|
||||||
"no-undef-init": "error",
|
"no-undef-init": "error",
|
||||||
"no-invalid-this": "error",
|
"no-invalid-this": "error",
|
||||||
"no-use-before-define": "error",
|
"no-use-before-define": "error",
|
||||||
"no-shadow-restricted-names": "error", // 禁止对一些关键字或者保留字进行赋值操作,比如NaN、Infinity、undefined、eval、arguments等
|
"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, },],
|
"brace-style": ["error", "allman", { allowSingleLine: true, },],
|
||||||
"prefer-const": "warn",
|
"prefer-const": "warn",
|
||||||
"space-before-function-paren": ["error", {
|
"space-before-function-paren": ["error", {
|
||||||
@@ -51,55 +52,29 @@ export default defineConfig([
|
|||||||
named: "never",
|
named: "never",
|
||||||
asyncArrow: "always",
|
asyncArrow: "always",
|
||||||
},],
|
},],
|
||||||
"array-bracket-spacing": ["error", "never", {
|
"@stylistic/no-trailing-spaces": [ // 不允许末尾的空格
|
||||||
singleValue: false,
|
"error",
|
||||||
objectsInArrays: false,
|
{
|
||||||
arraysInArrays: false,
|
"skipBlankLines": false,
|
||||||
},],
|
"ignoreComments": false,
|
||||||
"comma-spacing": ["error", {
|
},
|
||||||
before: false,
|
],
|
||||||
after: true, },],
|
|
||||||
"@stylistic/quotes": ["error", "double",],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
tseslint.configs.recommended,
|
tseslint.configs.recommended,
|
||||||
pluginVue.configs["flat/essential"],
|
|
||||||
{
|
|
||||||
files: ["src/**/*.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",],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
files: ["src/**/*.ts", "eslint.config.ts",],
|
files: ["src/**/*.ts", "eslint.config.ts",],
|
||||||
plugins: {
|
plugins: {
|
||||||
"@stylistic": stylistic,
|
"@stylistic": stylistic,
|
||||||
},
|
},
|
||||||
|
languageOptions: {
|
||||||
|
parserOptions: { parser: tseslint.parser, },
|
||||||
|
},
|
||||||
rules: {
|
rules: {
|
||||||
"spaced-comment": "error",
|
"spaced-comment": "error",
|
||||||
"space-before-function-paren": "off",
|
"space-before-function-paren": "off",
|
||||||
"semi-spacing": ["error", {"before": false,
|
"semi-spacing": ["error", { before: false,
|
||||||
"after": true,},],
|
after: true, },],
|
||||||
"@typescript-eslint/no-unused-vars": "warn",
|
"@typescript-eslint/no-unused-vars": "warn",
|
||||||
"@stylistic/indent": ["error", 4, { SwitchCase: 1, },],
|
"@stylistic/indent": ["error", 4, { SwitchCase: 1, },],
|
||||||
"@typescript-eslint/no-explicit-any": "off",
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
@@ -121,30 +96,74 @@ export default defineConfig([
|
|||||||
], // 数组和对象键值对最后一个逗号
|
], // 数组和对象键值对最后一个逗号
|
||||||
"@stylistic/quotes": ["error", "double",],
|
"@stylistic/quotes": ["error", "double",],
|
||||||
"@typescript-eslint/space-before-function-paren": "off",
|
"@typescript-eslint/space-before-function-paren": "off",
|
||||||
"@typescript-eslint/comma-spacing": ["off", { before: false,
|
"@typescript-eslint/comma-spacing": [
|
||||||
after: true, },], // 使用eslint的,不用ts的
|
"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", {
|
// "@typescript-eslint/strict-boolean-expressions": ["error", {
|
||||||
// allowString: false,
|
// allowString: false,
|
||||||
// },],
|
// },],
|
||||||
"@stylistic/object-property-newline": "warn",
|
"@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"],
|
|
||||||
// },
|
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
"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",
|
"globals": "^17.3.0",
|
||||||
"jiti": "^2.6.1",
|
"jiti": "^2.6.1",
|
||||||
@@ -3169,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",
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
"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",
|
"globals": "^17.3.0",
|
||||||
"jiti": "^2.6.1",
|
"jiti": "^2.6.1",
|
||||||
|
|||||||
@@ -1,12 +1,24 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://vite.dev" target="_blank">
|
<a
|
||||||
<img src="/vite.svg" class="logo"
|
href="https://vite.dev"
|
||||||
alt="Vite logo">
|
target="_blank"
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
class="logo"
|
||||||
|
src="/vite.svg"
|
||||||
|
alt="Vite logo"
|
||||||
|
>
|
||||||
</a>
|
</a>
|
||||||
<a href="https://vuejs.org/" target="_blank">
|
<a
|
||||||
<img src="./assets/vue.svg" class="logo vue"
|
href="https://vuejs.org/"
|
||||||
alt="Vue logo">
|
target="_blank"
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
src="./assets/vue.svg"
|
||||||
|
class="logo vue"
|
||||||
|
alt="Vue logo"
|
||||||
|
>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<HelloWorld msg="Vite ++++ Vue" />
|
<HelloWorld msg="Vite ++++ Vue" />
|
||||||
|
|||||||
@@ -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-02-03 18:15:32
|
* @LastModified: 2026-02-04 15:37:20
|
||||||
* @FilePath: src/utils/regulatory_utils.ts
|
* @FilePath: src/utils/regulatory_utils.ts
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
@@ -22,7 +22,7 @@ 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