保存进度!
This commit is contained in:
commit
cb730ded34
@ -22,6 +22,7 @@ module.exports = {
|
|||||||
extends:["eslint:recommended",],
|
extends:["eslint:recommended",],
|
||||||
rules:{
|
rules:{
|
||||||
indent: ["warn", 4,],
|
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",
|
||||||
@ -36,12 +37,16 @@ module.exports = {
|
|||||||
functions: "never",
|
functions: "never",
|
||||||
},], // 数组和对象键值对最后一个逗号
|
},], // 数组和对象键值对最后一个逗号
|
||||||
"comma-style": ["error", "last",], // 逗号在行位
|
"comma-style": ["error", "last",], // 逗号在行位
|
||||||
"array-bracket-spacing": ["error", "never",],
|
|
||||||
"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, },],
|
"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", {
|
||||||
@ -74,6 +79,7 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
indent: ["warn", 4,],
|
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",
|
||||||
@ -88,7 +94,11 @@ module.exports = {
|
|||||||
functions: "never",
|
functions: "never",
|
||||||
},], // 数组和对象键值对最后一个逗号
|
},], // 数组和对象键值对最后一个逗号
|
||||||
"comma-style": ["error", "last",], // 逗号在行位
|
"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-undef-init": "error",
|
||||||
"no-invalid-this": "error",
|
"no-invalid-this": "error",
|
||||||
"no-use-before-define": "error",
|
"no-use-before-define": "error",
|
||||||
@ -131,12 +141,13 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
plugins: ["@typescript-eslint",],
|
plugins: ["@typescript-eslint",],
|
||||||
extends: [
|
extends: [
|
||||||
"standard-with-typescript",
|
|
||||||
"eslint:recommended",
|
"eslint:recommended",
|
||||||
|
"standard-with-typescript",
|
||||||
"plugin:@typescript-eslint/eslint-recommended",
|
"plugin:@typescript-eslint/eslint-recommended",
|
||||||
"plugin:@typescript-eslint/recommended",
|
"plugin:@typescript-eslint/recommended",
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
|
// 圆括号中的空格,为空不加空格,紧跟花括号、方括号、圆括号时也不加入空格
|
||||||
"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",
|
||||||
@ -161,7 +172,13 @@ module.exports = {
|
|||||||
allowString: false,
|
allowString: false,
|
||||||
},],
|
},],
|
||||||
"comma-style": ["error", "last",], // 逗号在行位
|
"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-undef-init": "error",
|
||||||
"no-invalid-this": "error",
|
"no-invalid-this": "error",
|
||||||
"no-use-before-define": "error",
|
"no-use-before-define": "error",
|
||||||
|
@ -131,6 +131,8 @@ export default {
|
|||||||
span {
|
span {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
||||||
|
margin-top: 5px;
|
||||||
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ import store from "@/store/index";
|
|||||||
import App from "./App.vue";
|
import App from "./App.vue";
|
||||||
|
|
||||||
// css
|
// css
|
||||||
import "./style.css";
|
import "./style.scss";
|
||||||
import "./assets/css/index.scss";
|
import "./assets/css/index.scss";
|
||||||
|
|
||||||
// element-plus
|
// element-plus
|
||||||
|
@ -10,4 +10,6 @@ body {
|
|||||||
padding: 0px;
|
padding: 0px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
@include no-select;
|
||||||
}
|
}
|
@ -14,7 +14,7 @@ interface Cat
|
|||||||
{
|
{
|
||||||
name: string;
|
name: string;
|
||||||
purrs: boolean;
|
purrs: boolean;
|
||||||
};
|
}
|
||||||
|
|
||||||
interface Dog
|
interface Dog
|
||||||
{
|
{
|
||||||
@ -32,3 +32,9 @@ const animal: CatOrDog =
|
|||||||
barks: true,
|
barks: true,
|
||||||
wags: true,
|
wags: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
console.log( "test" );
|
||||||
|
|
||||||
|
const gainers: Array<string | number> = [ "kane", 588, ];
|
||||||
|
|
||||||
|
const kane = { a: 100, b: 200, };
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
// "module": "CommonJS",
|
// "module": "CommonJS",
|
||||||
// "moduleResolution": "node",
|
// "moduleResolution": "node",
|
||||||
"moduleResolution": "nodenext",
|
"moduleResolution": "node",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"target": "ESNext",
|
"target": "ES2015",
|
||||||
"module": "ESNext",
|
"module": "ES2015",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"lib": [
|
"lib": [
|
||||||
"ESNext",
|
"ES2015",
|
||||||
"DOM"
|
"DOM"
|
||||||
],
|
],
|
||||||
"types": [
|
"types": [
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: Kane
|
* @Author: Kane
|
||||||
* @Date: 2023-02-15 09:25:52
|
* @Date: 2023-02-15 09:25:52
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @LastEditTime: 2023-03-24 15:47:31
|
* @LastEditTime: 2023-03-30 21:09:30
|
||||||
* @FilePath: /task_schedule/vite.config.js
|
* @FilePath: /task_schedule/vite.config.js
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
@ -39,7 +39,7 @@ export default defineConfig(( command, mode ) =>
|
|||||||
css: {
|
css: {
|
||||||
preprocessorOptions: {
|
preprocessorOptions: {
|
||||||
scss: {
|
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
Loading…
x
Reference in New Issue
Block a user