保存进度!
This commit is contained in:
parent
dfde67a3aa
commit
c20aabdfd0
@ -7,7 +7,6 @@
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: { // 需要在env中指定运行的环境,这些环境其实就是一组预定义的全局变量,让 ESLint 知道当前环境存在这些全局变量
|
||||
@ -16,10 +15,13 @@ module.exports = {
|
||||
es2021: true,
|
||||
},
|
||||
parser:"espree",
|
||||
parserOptions:{
|
||||
sourceType: "module",
|
||||
ecmaVersion: 2021,
|
||||
},
|
||||
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",
|
||||
"no-unused-vars": "warn",
|
||||
|
Loading…
x
Reference in New Issue
Block a user