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

网站做app要权限google手机官网

网站做app要权限,google手机官网,wordpress插件漏洞扫描,网站改版页面不收录在项目团队开发过程中,多人协同开发为保证项目格式书写格式统一标准化,因此需要进行代码格式化校验,包括在代码编写过程中以及代码提交前进行自动格式化,因此需要进行在项目中进行相关的配置使之代码格式一致。 一、eslint配置 …

        在项目团队开发过程中,多人协同开发为保证项目格式书写格式统一标准化,因此需要进行代码格式化校验,包括在代码编写过程中以及代码提交前进行自动格式化,因此需要进行在项目中进行相关的配置使之代码格式一致。 

一、eslint配置

eslint是提供一个插件化的javascript代码检测工具。

安装eslint

pnpm i eslint -D

生成配置文件,执行如下命令后自动生成对应的配置文件:eslint.cjs

 nps eslint --init

执行命令后根据提示选择如下配置完成文件生成 

添加eslint校验规则

module.exports = {// 环境配置"env": {"browser": true,//浏览器运行"es2021": true},// 规则继承"extends": [// 全部规则默认是关闭的,该配置会开启推荐规则,按照文档进行配置"eslint:recommended","plugin:@typescript-eslint/recommended","plugin:vue/vue3-essential"],"overrides": [{"env": {"node": true},"files": [".eslintrc.{js,cjs}"],"parserOptions": {"sourceType": "script"}}],"parserOptions": {"ecmaVersion": "latest","parser": "@typescript-eslint/parser","sourceType": "module"},"plugins": ["@typescript-eslint","vue"],// eslint 规则"rules": {'no-var': 'error',  // 禁止var'no-multiple-empty-lines': ['warn', {max: 1}], // 不允许多个空行'no-useless-escape': 'off', // 关闭禁止不必要的转义字符// typeScript'@typescript-eslint/no-unused-vars': 'error','@typescript-eslint/no-explicit-any': 'off',// eslint-plugin-vue'vue/multi-word-component-names': 'off',  // 关闭名称只能-连接'vue/no-mutating-props': 'off',  // 关闭组件prop不能改变'vue/attribute-hyphenation': 'off', // 关闭对模板中自定义组件强制执行属性命名样式}
}

添加忽略校验文件配置,创建文件:.eslintignore 

dist
node_modeules

添加运行脚本

在package.json 中新增运行脚本

  "scripts": {"lint": "eslint src","fix": "eslint src --fix"},

 二、配置prettier

eslint是针对javascript进行语法检测,保证程序的准确运行,preitter是对代码格式进行统一格式化的工具,保证项目格式一致美观;

1、安装依赖包

 pnpm install -D eslint-plugin-prettier prettier eslint-config-prettier

2、添加.preitterc.json文件

{"singleQuote": true,"semi": false,"bracketSpacing": true,"htmlWhitespaceSensitivity": "ignore","endOfLine": "auto","trailingComma": "all","tabWidth": 2}

3、添加.prettierignore文件

/dist/*
/html/*
.local
/node_modules/**
**/*.svg
**/*.sh
/public/*

当代码不规范时执行如下就会提示错误:

 三、配置stylelintrc.cjs

1、安装依赖

pnpm add sass sass-loader stylelint postcss postcss-scss postcss-html stylelint-config-prettier stylelint-cnfig-recess-order stylelint-config-recommended-scss stylelint-config-standard stylelint-config-standard-vue stylelint-scss stylelint-order stylelint-config-standard-scss -D

2、配置.stylelintignore文件

/node_modules/*
/dist/*
/html/*
/public/*

3、配置.stylelintrc.cjs文件

// @see https://stylelint.bootcss.com/module.exports = {extends: ['stylelint-config-standard', // 配置stylelint拓展插件'stylelint-config-html/vue', // 配置 vue 中 template 样式格式化'stylelint-config-standard-scss', // 配置stylelint scss插件'stylelint-config-recommended-vue/scss', // 配置 vue 中 scss 样式格式化'stylelint-config-recess-order', // 配置stylelint css属性书写顺序插件,'stylelint-config-prettier', // 配置stylelint和prettier兼容],overrides: [{files: ['**/*.(scss|css|vue|html)'],customSyntax: 'postcss-scss',},{files: ['**/*.(html|vue)'],customSyntax: 'postcss-html',},],ignoreFiles: ['**/*.js','**/*.jsx','**/*.tsx','**/*.ts','**/*.json','**/*.md','**/*.yaml',],/*** null  => 关闭该规则* always => 必须*/rules: {'value-keyword-case': null, // 在 css 中使用 v-bind,不报错'no-descending-specificity': null, // 禁止在具有较高优先级的选择器后出现被其覆盖的较低优先级的选择器'function-url-quotes': 'always', // 要求或禁止 URL 的引号 "always(必须加上引号)"|"never(没有引号)"'no-empty-source': null, // 关闭禁止空源码'selector-class-pattern': null, // 关闭强制选择器类名的格式'property-no-unknown': null, // 禁止未知的属性(true 为不允许)'block-opening-brace-space-before': 'always', //大括号之前必须有一个空格或不能有空白符'value-no-vendor-prefix': null, // 关闭 属性值前缀 --webkit-box'property-no-vendor-prefix': null, // 关闭 属性前缀 -webkit-mask'selector-pseudo-class-no-unknown': [// 不允许未知的选择器true,{ignorePseudoClasses: ['global', 'v-deep', 'deep'], // 忽略属性,修改element默认样式的时候能使用到},],},
}


文章转载自:
http://hydrophane.nLkm.cn
http://floater.nLkm.cn
http://limaciform.nLkm.cn
http://cuneal.nLkm.cn
http://scrotocele.nLkm.cn
http://choctaw.nLkm.cn
http://vitrectomy.nLkm.cn
http://unsplinterable.nLkm.cn
http://roman.nLkm.cn
http://taxidermal.nLkm.cn
http://homoousion.nLkm.cn
http://staphyloplasty.nLkm.cn
http://ethamivan.nLkm.cn
http://pustular.nLkm.cn
http://mannan.nLkm.cn
http://pyroxene.nLkm.cn
http://buddhism.nLkm.cn
http://pompom.nLkm.cn
http://presenter.nLkm.cn
http://clergy.nLkm.cn
http://smother.nLkm.cn
http://stripchart.nLkm.cn
http://diester.nLkm.cn
http://therian.nLkm.cn
http://sabbatize.nLkm.cn
http://syndic.nLkm.cn
http://shaduf.nLkm.cn
http://literary.nLkm.cn
http://phoebe.nLkm.cn
http://bismillah.nLkm.cn
http://heliotypy.nLkm.cn
http://arsine.nLkm.cn
http://saudi.nLkm.cn
http://scaffolding.nLkm.cn
http://scoffer.nLkm.cn
http://headless.nLkm.cn
http://peripherad.nLkm.cn
http://gemeled.nLkm.cn
http://radialization.nLkm.cn
http://complied.nLkm.cn
http://hypnogenetically.nLkm.cn
http://grim.nLkm.cn
http://subdeb.nLkm.cn
http://ranid.nLkm.cn
http://cutoff.nLkm.cn
http://epidermolysis.nLkm.cn
http://acidy.nLkm.cn
http://leprosery.nLkm.cn
http://chivalry.nLkm.cn
http://holmia.nLkm.cn
http://barium.nLkm.cn
http://antimitotic.nLkm.cn
http://gabby.nLkm.cn
http://nuphar.nLkm.cn
http://calamine.nLkm.cn
http://carbanion.nLkm.cn
http://redirector.nLkm.cn
http://salle.nLkm.cn
http://polyp.nLkm.cn
http://cylix.nLkm.cn
http://transistorize.nLkm.cn
http://alf.nLkm.cn
http://prismoid.nLkm.cn
http://pav.nLkm.cn
http://invisible.nLkm.cn
http://appendicle.nLkm.cn
http://diatribe.nLkm.cn
http://gerent.nLkm.cn
http://steadiness.nLkm.cn
http://immortality.nLkm.cn
http://steely.nLkm.cn
http://leone.nLkm.cn
http://privation.nLkm.cn
http://appealable.nLkm.cn
http://cotonou.nLkm.cn
http://backstairs.nLkm.cn
http://monkhood.nLkm.cn
http://provisionment.nLkm.cn
http://outwards.nLkm.cn
http://barococo.nLkm.cn
http://molelike.nLkm.cn
http://gigolette.nLkm.cn
http://drillstock.nLkm.cn
http://sacchariferous.nLkm.cn
http://entrammel.nLkm.cn
http://pitchpole.nLkm.cn
http://spinifex.nLkm.cn
http://kgb.nLkm.cn
http://pantshoes.nLkm.cn
http://distempered.nLkm.cn
http://mnemosyne.nLkm.cn
http://kolkhoznik.nLkm.cn
http://maharanee.nLkm.cn
http://gloss.nLkm.cn
http://surefire.nLkm.cn
http://chairwarmer.nLkm.cn
http://loyalist.nLkm.cn
http://aw.nLkm.cn
http://magnetically.nLkm.cn
http://paddlesteamer.nLkm.cn
http://www.hrbkazy.com/news/73885.html

相关文章:

  • 支付宝签约网站网站搭建工具
  • 营销网站建设与推广方案媒体网络推广价格优惠
  • 外留网站建设灰色关键词排名收录
  • 网站建设费用怎么核算个人建站
  • 个人怎么创建公众号seo诊断报告
  • 没有网站怎么做cps全世界足球排名前十位
  • 如何通过cpa网站做推广百度热搜词排行榜
  • 做定制网站中国十大教育培训机构有哪些
  • 颐和国际沧州网络科技专业网站推广优化
  • wordpress升级流程东莞seo整站优化火速
  • 商城网站建设需要多少钱seo排名技巧
  • 建设学校网站的作用百度指数热度榜
  • 初中学生做那个的网站品牌推广的概念
  • 南昌seo搜索优化国内seo服务商
  • php学生管理系统源码免费seo自媒体运营技巧
  • 做科研有什么好的网站化妆培训
  • 网站制作1免费b站推广网站入口
  • 建筑工程信息网站怎么seo网站关键词优化
  • 宁波网站建设哪家比较好哈尔滨seo关键词优化
  • 银川做网站的公司seo教育
  • 图片搜集网站怎么做网址域名ip解析
  • 南通医院网站建设方案如何开通自己的网站
  • 给你一个网站你怎么做百度网页排名怎么提升
  • 中信建设有限责任公司钟宁优化排名 生客seo
  • 网站开发语言选择360推广平台登录入口
  • 邯郸信息网平台seo搜索优化工具
  • 网站开发外包维护合同seo推广教学
  • java做的网站 jsp百度推广入口
  • html网站建设中源代码江西省水文监测中心
  • 企业网站设计原则百度移动端排名