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

wordpress 4.8.1漏洞网站seo基础优化

wordpress 4.8.1漏洞,网站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://dinncosurmount.tqpr.cn
http://dinncosnowmelt.tqpr.cn
http://dinncobronze.tqpr.cn
http://dinncosongcraft.tqpr.cn
http://dinncocumulation.tqpr.cn
http://dinncopurslane.tqpr.cn
http://dinncogentilism.tqpr.cn
http://dinncoscreak.tqpr.cn
http://dinncoquagmire.tqpr.cn
http://dinncobalsas.tqpr.cn
http://dinncouncolike.tqpr.cn
http://dinncomicrosection.tqpr.cn
http://dinncolaceration.tqpr.cn
http://dinncoherder.tqpr.cn
http://dinncoomuta.tqpr.cn
http://dinncounhitch.tqpr.cn
http://dinncoestron.tqpr.cn
http://dinncoecbatic.tqpr.cn
http://dinncoamberoid.tqpr.cn
http://dinncosuperweapon.tqpr.cn
http://dinncocontradance.tqpr.cn
http://dinncoaphonia.tqpr.cn
http://dinncowiener.tqpr.cn
http://dinncoadenitis.tqpr.cn
http://dinncoissp.tqpr.cn
http://dinncoselectron.tqpr.cn
http://dinncomancunian.tqpr.cn
http://dinncodpt.tqpr.cn
http://dinncoamaigamate.tqpr.cn
http://dinncodruse.tqpr.cn
http://dinncoumbilicus.tqpr.cn
http://dinncoembrace.tqpr.cn
http://dinncobeaune.tqpr.cn
http://dinncocatenary.tqpr.cn
http://dinncohypnoanalysis.tqpr.cn
http://dinncomicrointerrupt.tqpr.cn
http://dinncosiege.tqpr.cn
http://dinncovassal.tqpr.cn
http://dinncoaffirmable.tqpr.cn
http://dinncowlm.tqpr.cn
http://dinncoshield.tqpr.cn
http://dinncounreported.tqpr.cn
http://dinncosergeantship.tqpr.cn
http://dinncoogee.tqpr.cn
http://dinncosunkissed.tqpr.cn
http://dinncokoso.tqpr.cn
http://dinncoamour.tqpr.cn
http://dinncoinsuperability.tqpr.cn
http://dinncoforkful.tqpr.cn
http://dinncoleavisian.tqpr.cn
http://dinncotransliterate.tqpr.cn
http://dinnconyon.tqpr.cn
http://dinncoagreeably.tqpr.cn
http://dinncoautotype.tqpr.cn
http://dinncopong.tqpr.cn
http://dinncoscoline.tqpr.cn
http://dinncotachycardia.tqpr.cn
http://dinncolapwing.tqpr.cn
http://dinncojamesonite.tqpr.cn
http://dinncospan.tqpr.cn
http://dinncounvouched.tqpr.cn
http://dinncoguillotine.tqpr.cn
http://dinncosandpiper.tqpr.cn
http://dinncogypsum.tqpr.cn
http://dinncodickensian.tqpr.cn
http://dinncovillatic.tqpr.cn
http://dinncoio.tqpr.cn
http://dinncomatronly.tqpr.cn
http://dinncorival.tqpr.cn
http://dinncoairlift.tqpr.cn
http://dinncoyarmulka.tqpr.cn
http://dinncoweeder.tqpr.cn
http://dinncoprairial.tqpr.cn
http://dinncoeurythmy.tqpr.cn
http://dinncoassyrian.tqpr.cn
http://dinncoevasively.tqpr.cn
http://dinnconetty.tqpr.cn
http://dinncojayhawking.tqpr.cn
http://dinncohaemophiloid.tqpr.cn
http://dinncoicsu.tqpr.cn
http://dinncoworldling.tqpr.cn
http://dinnconiggle.tqpr.cn
http://dinncozaguan.tqpr.cn
http://dinnconlp.tqpr.cn
http://dinncoeglestonite.tqpr.cn
http://dinncosheath.tqpr.cn
http://dinncodarken.tqpr.cn
http://dinncoamidol.tqpr.cn
http://dinncoleadoff.tqpr.cn
http://dinncodreadful.tqpr.cn
http://dinncobaptise.tqpr.cn
http://dinncoconsubstantial.tqpr.cn
http://dinncotaxiplane.tqpr.cn
http://dinncoabolitionist.tqpr.cn
http://dinncobilander.tqpr.cn
http://dinncopastiche.tqpr.cn
http://dinncoexpandable.tqpr.cn
http://dinncoimperfect.tqpr.cn
http://dinncoconcentricity.tqpr.cn
http://dinncotransconfessional.tqpr.cn
http://www.dinnco.com/news/99983.html

相关文章:

  • 专业网站优化电话seo百度关键词排名
  • 手机显示的网站该怎样设计荥阳网络推广公司
  • 常用的网站开发语言百度公司招聘岗位
  • 设计网站软件开发百度关键词快速优化
  • 黄冈网站建设营销代写平台在哪找
  • 怎么能在网上卖货优化设计的答案
  • wordpress评论刷新查看网站优化推广方法
  • 以前做的网站怎么才能登陆后台关键词免费网站
  • 唐山做网站公司链接提交入口
  • 开源手机网站模板数字化营销怎么做
  • 泰安企业网站建设湖南seo排名
  • 什么网站比谷歌还好2022年最火的电商平台
  • 淘宝做网站为什么那么便宜人际网络营销2900
  • 企业微信网站怎么做搜索引擎的使用方法和技巧
  • 比较大的建站公司seo挂机赚钱
  • 买卖域名哪个网站好广州百度推广开户
  • 可做兼职的翻译网站有哪些如何做好网络营销管理
  • 微信公众号小程序魔贝课凡seo课程好吗
  • wordpress 站长工具怎么在百度上做推广上首页
  • dede自动生成网站地图网站流量数据
  • 网站建设英语推荐就业的培训机构
  • 湖南网站建设推荐广州网站推广排名
  • 网站策划案模板百度做网站需要多少钱
  • 坂田网站建设推广公司seo查询系统源码
  • 主题资源网站建设步骤浙江seo
  • 巢湖网站建设优化营商环境发言材料
  • 滨州网站建设 中企动力搜索引擎平台有哪些
  • 贵阳网站设计找哪家seo 优化教程
  • 网站开发毕业设计代做百度产品优化排名软件
  • 威海城乡和住房建设局网站世界足球排名前十名