项目文件及配置优化,并增加EsLint代码检查
parent
39fbfdb72e
commit
fc340bb168
@ -0,0 +1 @@
|
|||||||
|
/dist
|
@ -0,0 +1,15 @@
|
|||||||
|
module.exports = {
|
||||||
|
// 继承 Eslint 规则
|
||||||
|
extends: ["eslint:recommended"],
|
||||||
|
env: {
|
||||||
|
node: true, // 启用node中全局变量
|
||||||
|
browser: true, // 启用浏览器中全局变量
|
||||||
|
},
|
||||||
|
parserOptions: {
|
||||||
|
ecmaVersion: 6,
|
||||||
|
sourceType: "module",
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
"no-var": 2, // 不能使用 var 定义变量
|
||||||
|
},
|
||||||
|
};
|
@ -1,2 +1,3 @@
|
|||||||
node_modules
|
node_modules
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
dist
|
Loading…
Reference in New Issue