8000 GitHub - infinityjs/vue3-tutorial
[go: up one dir, main page]

Skip to content

infinityjs/vue3-tutorial

Repository files navigation

Vue 3 + Vite

准备环境

pnpm create vite@latest vue3-tutorial
cd vue3-tutorial
pnpm install
pnpm run dev

添加 eslint 代码规范检查

npm init @eslint/config

编写验证代码

console.log('this is a error no-undef: %d', app.count)

验证

pnpm run lint

输出结果

error  'app' is not defined  no-undef

修改自定义代码规则

 "rules": {
        "no-undef" : ["warn"] 
    }

再次验证

pnpm run lint

输出结果

warning  'app' is not defined  no-undef

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0