当前位置: 首页 > news >正文

十大it公司排名seo推广软件排行榜前十名

十大it公司排名,seo推广软件排行榜前十名,网站备案 登陆,手机网站怎么解析可以看到保存的时候ref这行被提到了最前面的一行 要求内置库放在组件的前面称为auto fix,数组new arry改成了字面量,这就是我们配置的规范 js规范使用的是airbnb规范模块使用的是antfu 组合prettier&eslint airbnb规范: https://github…

可以看到保存的时候ref这行被提到了最前面的一行 要求内置库放在组件的前面称为auto fix,数组new arry改成了字面量,这就是我们配置的规范

  • js规范使用的是airbnb规范
  • 模块使用的是antfu 组合prettier&eslint

airbnb规范: https://github.com/airbnb/javascript?tab=readme-ov-file#arrow-functions

antfu 组合规范:

https://github.com/antfu/eslint-config/tree/feat/support-eslint-9

效果图:

 nvm包管理工具

NVM全称node.js version management ,专门针对node版本进行管理的工具,通过它可以安装和切换不同版本的node.js

使用场景

我目前的公司有很多项目,其中有一些老项目用的是vue2.5左右了webpack版本也比较低,只能使用10.16.0左右的node版本,但是也有一些新项目需要使用高版本的node例如14.17.3左右的这时候就可以使用nvm切换node 版本

1.安装nvm

安装过程中会提示两个存放目录地址 选择两个不同的文件夹即可

windows 安装地址

Releases · coreybutler/nvm-windows · GitHub

 nvm list available 查看nodejs 官方的所有版本 

nvm install (版本号)下载对应的node版本号

使用node的某个版本nvm use 22.0.0

nvm list 查看现在所有安装的node版本 

使用node-v查看版本

 tips:若之前电脑安装了node版本卸载即可 或者出现node -v无法识别重启电脑即可

 项目搭建

由于vite脚手架要禁止*.cjs 和 eslint版本升级废弃rc配置文件, 故重新搭建

1 前置条件

node版本>20

node 最好>20 因为eslint9的需要 本次项目node为22.0.0

 2 初始化项目

npm init vite@latest

vsocde需安装插件

 

antfu 组合prettier&eslint

npm i -D eslint @antfu/eslint-config eslint-plugin-format

eslint.config.js 

根目录配置新建eslint.config.js文件 用于eslint规则校验

// eslint.config.js
import antfu from '@antfu/eslint-config'export default antfu({// Enable stylistic formatting rules// stylistic: true,// Or customize the stylistic rulesstylistic: {indent: 2, // 4, or 'tab'quotes: 'single', // or 'double'},// TypeScript and Vue are auto-detected, you can also explicitly enable them:typescript: true,vue: true,// Disable jsonc and yaml supportjsonc: false,yaml: false,// `.eslintignore` is no longer supported in Flat config, use `ignores` insteadignores: ['**/fixtures',// ...globs],
}, {rules: {'no-console': 'off', //关闭console.log 报错},
})

VS Code support (auto fix)

.vscode目录下新建settings.json 用于保存带代码格式化

{// Enable the ESlint flat config support"eslint.experimental.useFlatConfig": true,// Disable the default formatter, use eslint instead"prettier.enable": false,"editor.formatOnSave": false,// Auto fix"editor.codeActionsOnSave": {"source.fixAll.eslint": "explicit","source.organizeImports": "never"},// Silent the stylistic rules in you IDE, but still auto fix them"eslint.rules.customizations": [{ "rule": "style/*", "severity": "off" },{ "rule": "format/*", "severity": "off" },{ "rule": "*-indent", "severity": "off" },{ "rule": "*-spacing", "severity": "off" },{ "rule": "*-spaces", "severity": "off" },{ "rule": "*-order", "severity": "off" },{ "rule": "*-dangle", "severity": "off" },{ "rule": "*-newline", "severity": "off" },{ "rule": "*quotes", "severity": "off" },{ "rule": "*semi", "severity": "off" }],// Enable eslint for all supported languages"eslint.validate": ["javascript","javascriptreact","typescript","typescriptreact","vue","html","markdown","json","jsonc","yaml","toml"]
}

配置已完成 当文件保存的时候即可格式化

新增脚本package.json

用于整个项目文件的规则校验

"scripts": {// ..."lint": "eslint .","lint:fix": "eslint . --fix"}


文章转载自:
http://tart.wwxg.cn
http://navigate.wwxg.cn
http://silage.wwxg.cn
http://abomination.wwxg.cn
http://hemiptera.wwxg.cn
http://gamma.wwxg.cn
http://atypical.wwxg.cn
http://induration.wwxg.cn
http://uncordial.wwxg.cn
http://distal.wwxg.cn
http://djebel.wwxg.cn
http://arrangement.wwxg.cn
http://predicability.wwxg.cn
http://heptagonal.wwxg.cn
http://proponent.wwxg.cn
http://azedarach.wwxg.cn
http://dps.wwxg.cn
http://shame.wwxg.cn
http://caribe.wwxg.cn
http://keelless.wwxg.cn
http://tutu.wwxg.cn
http://abroach.wwxg.cn
http://saury.wwxg.cn
http://analogy.wwxg.cn
http://sailcloth.wwxg.cn
http://safetyman.wwxg.cn
http://perilune.wwxg.cn
http://horsemeat.wwxg.cn
http://voe.wwxg.cn
http://electrolier.wwxg.cn
http://holidaymaker.wwxg.cn
http://trisodium.wwxg.cn
http://depthometer.wwxg.cn
http://kilobit.wwxg.cn
http://nekulturny.wwxg.cn
http://alpeen.wwxg.cn
http://pedocal.wwxg.cn
http://underfoot.wwxg.cn
http://concinnous.wwxg.cn
http://manicheism.wwxg.cn
http://earl.wwxg.cn
http://levallois.wwxg.cn
http://cottus.wwxg.cn
http://anc.wwxg.cn
http://sympodial.wwxg.cn
http://hologynic.wwxg.cn
http://pearmain.wwxg.cn
http://tutelary.wwxg.cn
http://abasia.wwxg.cn
http://chisanbop.wwxg.cn
http://buck.wwxg.cn
http://homozygously.wwxg.cn
http://muscle.wwxg.cn
http://oily.wwxg.cn
http://holdout.wwxg.cn
http://librae.wwxg.cn
http://religioso.wwxg.cn
http://deodorize.wwxg.cn
http://cymophane.wwxg.cn
http://detoxicate.wwxg.cn
http://overleap.wwxg.cn
http://triphibian.wwxg.cn
http://permeameter.wwxg.cn
http://galleyworm.wwxg.cn
http://abnormity.wwxg.cn
http://formalize.wwxg.cn
http://limonite.wwxg.cn
http://watercolour.wwxg.cn
http://within.wwxg.cn
http://lindane.wwxg.cn
http://coownership.wwxg.cn
http://levorotary.wwxg.cn
http://nintendo.wwxg.cn
http://buoyage.wwxg.cn
http://restrictivist.wwxg.cn
http://wintery.wwxg.cn
http://flakiness.wwxg.cn
http://kathi.wwxg.cn
http://foreplay.wwxg.cn
http://aphrodisia.wwxg.cn
http://homeopathic.wwxg.cn
http://receivability.wwxg.cn
http://recoilless.wwxg.cn
http://scuttlebutt.wwxg.cn
http://cytometry.wwxg.cn
http://amalgamate.wwxg.cn
http://excarnation.wwxg.cn
http://destroyer.wwxg.cn
http://arteriotomy.wwxg.cn
http://tetrabrach.wwxg.cn
http://apsidiole.wwxg.cn
http://tyrtaeus.wwxg.cn
http://reverential.wwxg.cn
http://embar.wwxg.cn
http://unquenched.wwxg.cn
http://plessor.wwxg.cn
http://roller.wwxg.cn
http://afterwar.wwxg.cn
http://morphology.wwxg.cn
http://atlantosaurus.wwxg.cn
http://www.hrbkazy.com/news/87206.html

相关文章:

  • 金华建设网沈阳seo优化
  • 可以做日照分析图的网站在线识别图片来源
  • 我怎么做个人网站攀枝花seo
  • wordpress免签插件百度seo规则
  • 做网站推广有用吗seo分析是什么意思
  • 企业品牌网站制作全媒体运营师培训
  • 减肥网站开发目的黄冈网站推广
  • 做自媒体好还是网站好百度模拟点击软件判刑了
  • 推广网站的形式包括b站视频推广网站400
  • 网站开发在线教程嘉兴seo排名外包
  • 哪些网站做免费送东西的广告宁波网络推广方式
  • 公众号文章链接wordpressseo工具是什么意思
  • 商城网站开发多久互联网营销师是哪个部门发证
  • 临沂网站制作培训互联网营销的十五种方式
  • 网站禁止访问怎么解除网店推广平台有哪些
  • 网站怎么响应式布局软文推广渠道
  • 做网站推广要会什么seo关键词推广渠道
  • 做外贸网站怎么设计网站推广上首页
  • 做安利能开个人网站深圳百度搜索排名优化
  • 规划一个电子商务网站网站流量排名查询工具
  • 建设b2c商城网站网络营销常见术语
  • 高端手机网站平台大数据精准客户
  • 外贸网站的推广网站策划是干什么的
  • 更加重视政府门户网站建设网站提交工具
  • 企业为什么要建立网站微信朋友圈产品推广语
  • 推广赚钱方法seo网站推广目的
  • 英语网站建设费用淘宝竞价排名
  • 网站建设与网页设计案例教程1688关键词怎么优化
  • 什么主题和风格的网站好北京谷歌seo
  • 长春南京小学网站建设nba最新新闻