保存进度!

This commit is contained in:
Kane 2023-02-10 23:43:56 +08:00
parent e142a2a624
commit 2d9178e4ae
3 changed files with 25 additions and 6 deletions

View File

@ -54,5 +54,6 @@ module.exports = {
// "comma-spacing": ["error", { "before": false, "after": true, },],
"brace-style": ["error", "allman", { allowSingleLine: true, },],
"@typescript-eslint/no-extra-semi": "off",
"prefer-const": "warn",
},
};

View File

@ -108,7 +108,7 @@
},
"node_modules/@typescript-eslint/eslint-plugin": {
"version": "5.51.0",
"resolved": "https://registry.npmmirror.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.51.0.tgz",
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.51.0.tgz",
"integrity": "sha512-wcAwhEWm1RgNd7dxD/o+nnLW8oH+6RK1OGnmbmkj/GGoDPV1WWMVP0FXYQBivKHdwM1pwii3bt//RC62EriIUQ==",
"dev": true,
"dependencies": {
@ -126,6 +126,10 @@
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/typescript-eslint"
},
"peerDependencies": {
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
@ -138,7 +142,7 @@
},
"node_modules/@typescript-eslint/parser": {
"version": "5.51.0",
"resolved": "https://registry.npmmirror.com/@typescript-eslint/parser/-/parser-5.51.0.tgz",
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.51.0.tgz",
"integrity": "sha512-fEV0R9gGmfpDeRzJXn+fGQKcl0inIeYobmmUWijZh9zA7bxJ8clPhV9up2ZQzATxAiFAECqPQyMDB4o4B81AaA==",
"dev": true,
"dependencies": {
@ -150,6 +154,10 @@
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/typescript-eslint"
},
"peerDependencies": {
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
},
@ -499,7 +507,7 @@
},
"node_modules/eslint": {
"version": "8.33.0",
"resolved": "https://registry.npmmirror.com/eslint/-/eslint-8.33.0.tgz",
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.33.0.tgz",
"integrity": "sha512-WjOpFQgKK8VrCnAtl8We0SUOy/oVZ5NHykyMiagV1M9r8IFpIJX7DduK6n1mpfhlG7T1NLWm2SuD8QB7KFySaA==",
"dev": true,
"dependencies": {
@ -548,6 +556,9 @@
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
},
"funding": {
"url": "https://opencollective.com/eslint"
}
},
"node_modules/eslint-scope": {

View File

@ -2,13 +2,14 @@
* @Author: Kane
* @Date: 2023-02-10 15:08:53
* @LastEditors: Kane
* @LastEditTime: 2023-02-10 15:15:41
* @LastEditTime: 2023-02-10 23:43:30
* @FilePath: //src/DataType/DataType.ts
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
/* eslint */
/*eslint no-unused-vars: "off" */
/*eslint @typescript-eslint/no-unused-vars: "off" */
//Tuple
@ -16,3 +17,9 @@ const tu: readonly [number, number, number] = [1, 1, 2,];
const toArray: [number, number, string] = [1, 2, "3",];
const v1: (number | string)[] = toArray;
const s1 = "string";
console.log(typeof s1);
const obj: object = {x:0, y:0,};