保存进度!
This commit is contained in:
commit
cb730ded34
@ -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",
|
||||
|
@ -131,6 +131,8 @@ export default {
|
||||
span {
|
||||
display: block;
|
||||
|
||||
margin-top: 5px;
|
||||
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
|
||||
|
@ -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
|
||||
|
@ -10,4 +10,6 @@ body {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
overflow: hidden;
|
||||
|
||||
@include no-select;
|
||||
}
|
@ -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, };
|
||||
|
@ -15,7 +15,7 @@
|
||||
"module": "ESNext",
|
||||
// "module": "CommonJS",
|
||||
// "moduleResolution": "node",
|
||||
"moduleResolution": "nodenext",
|
||||
"moduleResolution": "node",
|
||||
"strict": true,
|
||||
"jsx": "preserve",
|
||||
"sourceMap": true,
|
||||
|
@ -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": [
|
||||
|
@ -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
Loading…
x
Reference in New Issue
Block a user