保存进度!

This commit is contained in:
Kane Wang 2023-04-02 17:23:22 +08:00
commit cb730ded34
10 changed files with 4774 additions and 4747 deletions

View File

@ -22,6 +22,7 @@ module.exports = {
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",
@ -36,12 +37,16 @@ module.exports = {
functions: "never",
},], // 数组和对象键值对最后一个逗号
"comma-style": ["error", "last",], // 逗号在行位
"array-bracket-spacing": ["error", "never",],
"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", {
@ -74,6 +79,7 @@ module.exports = {
],
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",
@ -88,7 +94,11 @@ module.exports = {
functions: "never",
},], // 数组和对象键值对最后一个逗号
"comma-style": ["error", "last",], // 逗号在行位
"array-bracket-spacing": ["error", "never",],
"array-bracket-spacing": ["error", "always", {
singleValue: false,
objectsInArrays: false,
arraysInArrays: false,
},],
"no-undef-init": "error",
"no-invalid-this": "error",
"no-use-before-define": "error",
@ -131,12 +141,13 @@ module.exports = {
},
plugins: ["@typescript-eslint",],
extends: [
"standard-with-typescript",
"eslint:recommended",
"standard-with-typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
],
rules: {
// 圆括号中的空格,为空不加空格,紧跟花括号、方括号、圆括号时也不加入空格
"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",
@ -161,7 +172,13 @@ module.exports = {
allowString: false,
},],
"comma-style": ["error", "last",], // 逗号在行位
"array-bracket-spacing": ["error", "never",],
"comma-spacing": ["off", { before: false, after: true, },],
"@typescript-eslint/comma-spacing": ["error", { before: false, after: true, },], // 使用eslint的不用ts的
"array-bracket-spacing": ["error", "always", {
singleValue: false,
objectsInArrays: false,
arraysInArrays: false,
},],
"no-undef-init": "error",
"no-invalid-this": "error",
"no-use-before-define": "error",

View File

@ -131,6 +131,8 @@ export default {
span {
display: block;
margin-top: 5px;
text-align: center;
color: #fff;

View File

@ -15,7 +15,7 @@ import store from "@/store/index";
import App from "./App.vue";
// css
import "./style.css";
import "./style.scss";
import "./assets/css/index.scss";
// element-plus
@ -26,7 +26,7 @@ import( "element-plus/dist/index.css" );
const app = createApp( App );
// 注册element-plus的图标
for ( const [key, component,] of Object.entries( ElementPlusIconsVue ))
for ( const [ key, component, ] of Object.entries( ElementPlusIconsVue ))
{
app.component( key, component );
}

View File

@ -10,4 +10,6 @@ body {
padding: 0px;
margin: 0px;
overflow: hidden;
}
@include no-select;
}

View File

@ -14,7 +14,7 @@ interface Cat
{
name: string;
purrs: boolean;
};
}
interface Dog
{
@ -32,3 +32,9 @@ const animal: CatOrDog =
barks: true,
wags: true,
};
console.log( "test" );
const gainers: Array<string | number> = [ "kane", 588, ];
const kane = { a: 100, b: 200, };

View File

@ -15,7 +15,7 @@
"module": "ESNext",
// "module": "CommonJS",
// "moduleResolution": "node",
"moduleResolution": "nodenext",
"moduleResolution": "node",
"strict": true,
"jsx": "preserve",
"sourceMap": true,

View File

@ -11,8 +11,8 @@
"compilerOptions": {
"forceConsistentCasingInFileNames": true,
"useDefineForClassFields": true,
"target": "ESNext",
"module": "ESNext",
"target": "ES2015",
"module": "ES2015",
"moduleResolution": "node",
"strict": true,
"jsx": "preserve",
@ -26,7 +26,7 @@
],
},
"lib": [
"ESNext",
"ES2015",
"DOM"
],
"types": [

View File

@ -2,7 +2,7 @@
* @Author: Kane
* @Date: 2023-02-15 09:25:52
* @LastEditors: Kane
* @LastEditTime: 2023-03-24 15:47:31
* @LastEditTime: 2023-03-30 21:09:30
* @FilePath: /task_schedule/vite.config.js
* @Description:
*
@ -39,7 +39,7 @@ export default defineConfig(( command, mode ) =>
css: {
preprocessorOptions: {
scss: {
additionalData: "@import \"./src/assets/css/public/color.scss\",\"./src/assets/css/public/mixin.scss\";",
additionalData: "@import \"./src/assets/css/public/variables.scss\",\"./src/assets/css/public/mixin.scss\";",
},
},
},

File diff suppressed because it is too large Load Diff