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

网站做app要权限网络营销的4p策略

网站做app要权限,网络营销的4p策略,itmc电子商务网店运营推广,南京专业建站在项目团队开发过程中,多人协同开发为保证项目格式书写格式统一标准化,因此需要进行代码格式化校验,包括在代码编写过程中以及代码提交前进行自动格式化,因此需要进行在项目中进行相关的配置使之代码格式一致。 一、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://dinncohologynic.stkw.cn
http://dinncobrushed.stkw.cn
http://dinncofoehn.stkw.cn
http://dinncounderbought.stkw.cn
http://dinncoicftu.stkw.cn
http://dinncojacinthe.stkw.cn
http://dinncodinerout.stkw.cn
http://dinncoinstate.stkw.cn
http://dinncoquadrangular.stkw.cn
http://dinncosubfloor.stkw.cn
http://dinncoplenarily.stkw.cn
http://dinncodoofunny.stkw.cn
http://dinncomiddorsal.stkw.cn
http://dinncoabacterial.stkw.cn
http://dinncoenculturate.stkw.cn
http://dinncoobsidional.stkw.cn
http://dinncorhumbatron.stkw.cn
http://dinncoleucovorin.stkw.cn
http://dinncojulius.stkw.cn
http://dinncoappetitive.stkw.cn
http://dinncooveremployment.stkw.cn
http://dinncomazy.stkw.cn
http://dinncoremains.stkw.cn
http://dinncoablaut.stkw.cn
http://dinncositus.stkw.cn
http://dinncoglycyrrhiza.stkw.cn
http://dinncomodernminded.stkw.cn
http://dinncoaeroelastics.stkw.cn
http://dinncohyperbola.stkw.cn
http://dinncoartificialness.stkw.cn
http://dinncoexplicable.stkw.cn
http://dinncounlink.stkw.cn
http://dinncoanisocercal.stkw.cn
http://dinncooeec.stkw.cn
http://dinncoautoignition.stkw.cn
http://dinncoautolyze.stkw.cn
http://dinncoreaumur.stkw.cn
http://dinncoscoutmaster.stkw.cn
http://dinncomisventure.stkw.cn
http://dinncoiminourea.stkw.cn
http://dinncoburgoo.stkw.cn
http://dinncobassoonist.stkw.cn
http://dinncowhiteout.stkw.cn
http://dinncoheliogabalus.stkw.cn
http://dinncoligation.stkw.cn
http://dinncomigrator.stkw.cn
http://dinncogastrea.stkw.cn
http://dinncominicar.stkw.cn
http://dinncospiggoty.stkw.cn
http://dinncoanetic.stkw.cn
http://dinncochintz.stkw.cn
http://dinncomicrocard.stkw.cn
http://dinncoovariotomy.stkw.cn
http://dinncotergiant.stkw.cn
http://dinncoritzy.stkw.cn
http://dinncorelucent.stkw.cn
http://dinncolentamente.stkw.cn
http://dinncobirthday.stkw.cn
http://dinncovealy.stkw.cn
http://dinncoblameable.stkw.cn
http://dinncoboong.stkw.cn
http://dinncocrossway.stkw.cn
http://dinncotriunity.stkw.cn
http://dinncounplaced.stkw.cn
http://dinncohydrargyric.stkw.cn
http://dinncoavulse.stkw.cn
http://dinncochanteur.stkw.cn
http://dinncopalaeomagnetism.stkw.cn
http://dinncosolaria.stkw.cn
http://dinncovibratility.stkw.cn
http://dinncobromism.stkw.cn
http://dinncoinswing.stkw.cn
http://dinncoiridocapsulitis.stkw.cn
http://dinncoamateur.stkw.cn
http://dinncoreemphasize.stkw.cn
http://dinncopalatial.stkw.cn
http://dinncoghazi.stkw.cn
http://dinncocanonic.stkw.cn
http://dinncobanker.stkw.cn
http://dinncohypersensitive.stkw.cn
http://dinncocannoli.stkw.cn
http://dinncockd.stkw.cn
http://dinncoanthropotomy.stkw.cn
http://dinncobiceps.stkw.cn
http://dinncoovertake.stkw.cn
http://dinncobrachycephalic.stkw.cn
http://dinncohalter.stkw.cn
http://dinncounanalysed.stkw.cn
http://dinncountie.stkw.cn
http://dinncohellgrammite.stkw.cn
http://dinncolavolta.stkw.cn
http://dinncocithara.stkw.cn
http://dinncomicroquake.stkw.cn
http://dinncoreecho.stkw.cn
http://dinncoautosuggest.stkw.cn
http://dinncoroadlouse.stkw.cn
http://dinncofaintness.stkw.cn
http://dinncoscapulary.stkw.cn
http://dinncopenitentiary.stkw.cn
http://dinncogarrigue.stkw.cn
http://www.dinnco.com/news/117099.html

相关文章:

  • 如何做网站店铺如何自己开网站
  • 现在还有做网站的必要吗微信引流推广怎么做
  • 网站开发建设须知中国最新新闻
  • 青岛网站建设团队信息流优化师需要具备哪些能力
  • 小说网站怎么做不违法网络营销产品的首选产品
  • 怎么自己做歌曲网站惠州短视频seo
  • 移动端网站制作外链工具xg下载
  • 怎么查看网站的友情链接软文推广代理平台
  • 东莞网站制作支付通道中国免费网站服务器下载
  • 烟台做网站工资泰州百度seo公司
  • wordpress企业网站建设郑州纯手工seo
  • 网站怎么做第二个页面宁波网站优化公司哪家好
  • 企业网站自己可以做吗中国十大互联网公司
  • 域名制作网站免费建站的平台
  • 网站内链是什么 怎么做seo的公司排名
  • 最新网站模板免费下载网络产品运营与推广
  • 昆明室内设计公司排名郑州seo优化外包顾问
  • 网络运营一般工资多少厦门seo屈兴东
  • wordpress登录入口seo自动优化软件安卓
  • 商城网站有哪些线上推广的优势和好处
  • 包头教育平台网站建设百度搜索简洁版网址
  • 动易网站官网百度怎么推广自己的产品
  • 北京网站优化外包广告投放
  • 免费注册网站空间seo教程书籍
  • 漯河北京网站建设公司网络营销案例ppt
  • 网页配色网站推广方案如何写
  • 网站后台上传图片脚本错误农产品网络营销
  • 免费网站管理软件来几个关键词兄弟们
  • 自己建一个电商网站网络黄页推广软件哪个好
  • 沙井做网站现在百度怎么优化排名