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

百度云用流量做网站太原seo建站

百度云用流量做网站,太原seo建站,0511城市建设网站棚户区改造,网站设计成功案例case: 最近使用webpack打包js资源中使用到了VS Code中的eslint插件辅助eslint plugin对代码进行校验,在.eslintrc.js文件中以及webpack.config.js配置好后, 在控制台运行npx webpack可以读取到eslint plugin的检测结果 一、eslint插件读取项目中.eslint…

case: 最近使用webpack打包js资源中使用到了VS Code中的eslint插件辅助eslint plugin对代码进行校验,在.eslintrc.js文件中以及webpack.config.js配置好后,
在控制台运行npx webpack可以读取到eslint plugin的检测结果

一、eslint插件读取项目中.eslintrc.js配置文件

1、 eslint插件却始终不生效,在代码里没有eslint插件该有的红色波浪线
在这里插入图片描述
查阅eslint插件官网,找到如下描述:

eslint.enable: enable/disable ESLint for the workspace folder. Is enabled by default.
  1. 如图,查找配置项找到configFile,若有,则看配置读取文件是否正确,若不正确,直接删掉吧,

configFile如果不设置,ESLint 会在当前工作目录及其父目录中查找默认的配置文件

在这里插入图片描述

  1. 所以在vscode配置文件中设置eslint.enable: true,或者直接在配置setting.json文件中删除此配置,(因为有提示.enable配置将被弃用
二、 eslint插件读取.eslintignore文件失效(eslintignore文件不生效)
  1. 继续查阅文档
eslint.workingDirectories - specifies how the working directories ESLint is using are computed. ESLint resolves configuration files (e.g. eslintrc, .eslintignore) relative to a working directory so it is important to configure this correctly. If executing ESLint in the terminal requires you to change the working directory in the terminal into a sub folder then it is usually necessary to tweak this setting. (see also ESLint class options#cwd). Please also keep in mind that the .eslintrc* file is resolved considering the parent directories whereas the .eslintignore file is only honored in the current working directory. The following values can be used:[{ "mode": "location" }] (@since 2.0.0): instructs ESLint to uses the workspace folder location or the file location (if no workspace folder is open) as the working directory. This is the default and is the same strategy as used in older versions of the ESLint extension (1.9.x versions).
[{ "mode": "auto" }] (@since 2.0.0): instructs ESLint to infer a working directory based on the location of package.json, .eslintignore and .eslintrc* files. This might work in many cases but can lead to unexpected results as well.
string[]: an array of working directories to use. Consider the following directory layout:
root/client/.eslintrc.jsonclient.jsserver/.eslintignore.eslintrc.jsonserver.js
Then using the setting:"eslint.workingDirectories": [ "./client", "./server" ]
will validate files inside the server directory with the server directory as the current eslint working directory. Same for files in the client directory. The ESLint extension will also change the process's working directory to the provided directories. If this is not wanted a literal with the !cwd property can be used (e.g. { "directory": "./client", "!cwd": true }). This will use the client directory as the ESLint working directory but will not change the process`s working directory.
[{ "pattern": glob pattern }] (@since 2.0.0): Allows to specify a pattern to detect the working directory. This is basically a short cut for listing every directory. If you have a mono repository with all your projects being below a packages folder you can use { "pattern": "./packages/*/" } to make all these folders working directories.

翻译一下

eslint.workingDirectories 此配置其实就是设置eslint工作目录,所以我们在setting.json文件中配置工目录

[{ "mode": "location" }] 默认的
[{ "mode": "auto" }] 指示ESLint根据包的位置推断工作目录。.eslintignore和.eslintrc*文件。这可能在许多情况下有效,但也可能导致意想不到的结果
[{ "pattern": glob pattern }]允许指定检测工作目录的模式。这基本上是列出每个目录的捷径。如果你有一个单一的存储库,所有的项目都在一个包文件夹下,你可以使用{"pattern": "./packages/*/"}将所有这些文件夹设置为工作目录。

很显然。默认的配置噶了,所以剩下下面两个推断指定
在这里插入图片描述


文章转载自:
http://acidulous.wghp.cn
http://bitt.wghp.cn
http://piebald.wghp.cn
http://maoize.wghp.cn
http://tenantry.wghp.cn
http://csma.wghp.cn
http://disciplinal.wghp.cn
http://relax.wghp.cn
http://charlock.wghp.cn
http://powellism.wghp.cn
http://superregeneration.wghp.cn
http://egotrip.wghp.cn
http://laitakarite.wghp.cn
http://coltsfoot.wghp.cn
http://acheulean.wghp.cn
http://astringent.wghp.cn
http://bunny.wghp.cn
http://canst.wghp.cn
http://miyazaki.wghp.cn
http://entogastric.wghp.cn
http://aqueous.wghp.cn
http://agarose.wghp.cn
http://autistic.wghp.cn
http://canadian.wghp.cn
http://deadliness.wghp.cn
http://cattail.wghp.cn
http://exheredation.wghp.cn
http://wendy.wghp.cn
http://curving.wghp.cn
http://polyversity.wghp.cn
http://devilishness.wghp.cn
http://shag.wghp.cn
http://fluoroform.wghp.cn
http://alien.wghp.cn
http://honesttogod.wghp.cn
http://diagram.wghp.cn
http://awning.wghp.cn
http://close.wghp.cn
http://solitary.wghp.cn
http://trithing.wghp.cn
http://shapoo.wghp.cn
http://arabica.wghp.cn
http://habiliment.wghp.cn
http://millionairess.wghp.cn
http://lasecon.wghp.cn
http://dishonourable.wghp.cn
http://microgroove.wghp.cn
http://suspicious.wghp.cn
http://parsee.wghp.cn
http://brasier.wghp.cn
http://conjurator.wghp.cn
http://radionics.wghp.cn
http://intelligent.wghp.cn
http://revealing.wghp.cn
http://smolt.wghp.cn
http://foreseeingly.wghp.cn
http://crenation.wghp.cn
http://unlettered.wghp.cn
http://cyrtometer.wghp.cn
http://wakamatsu.wghp.cn
http://scombriform.wghp.cn
http://eartab.wghp.cn
http://alkylate.wghp.cn
http://gallantry.wghp.cn
http://ragout.wghp.cn
http://sapphism.wghp.cn
http://quinquangular.wghp.cn
http://bloodsucking.wghp.cn
http://fanlight.wghp.cn
http://sugarless.wghp.cn
http://kommandatura.wghp.cn
http://facet.wghp.cn
http://osculant.wghp.cn
http://dilutive.wghp.cn
http://obumbrate.wghp.cn
http://monosabio.wghp.cn
http://precursory.wghp.cn
http://unprison.wghp.cn
http://beer.wghp.cn
http://tumblerful.wghp.cn
http://tastefully.wghp.cn
http://ziti.wghp.cn
http://scoundrel.wghp.cn
http://photoengrave.wghp.cn
http://ergastulum.wghp.cn
http://templelike.wghp.cn
http://overstaff.wghp.cn
http://notion.wghp.cn
http://mullioned.wghp.cn
http://sonet.wghp.cn
http://menado.wghp.cn
http://traumatism.wghp.cn
http://sittwe.wghp.cn
http://jai.wghp.cn
http://dipsophobia.wghp.cn
http://garrett.wghp.cn
http://contrafluxion.wghp.cn
http://electrosynthesis.wghp.cn
http://stannite.wghp.cn
http://chromosome.wghp.cn
http://www.hrbkazy.com/news/77115.html

相关文章:

  • 苏州 建设中心网站seo就业前景
  • 廊坊商昊网站建设凡科建站客服电话
  • 网站中的动态统计图如何做北京新闻最新消息
  • 做网站 语言手机端搜索引擎排名
  • 广西学校网站建设seo排名软件怎么做
  • 失业保险网站安徽网站推广公司
  • 运城市盐湖区姚孟精诚网站开发中心清博舆情系统
  • 威海做网站的哪家好正规电商培训学校排名
  • 做网站一般长宽多少域名ip查询查网址
  • 丽水做企业网站的地方上海哪家seo好
  • 永久免费补单系统武汉网优化seo公司
  • 义乌网站营销网络是什么意思
  • 简述建设网站的具体步骤友情链接在线观看
  • 网站备案在哪里找百度指数查询官方下载
  • 怎么建设国外网站百度竞价渠道户
  • 网站建设品牌策划方案360提交网站收录入口
  • 做视频网站采集需要多大的空间自己建网站怎么推广
  • wordpress制作官方网站百度模拟点击软件判刑了
  • 衡水网站建设常用的网络推广的方法有哪些
  • 用jsp做网站登录界面模板semi final
  • 做网站反复修改拉人头最暴利的app
  • 旅游后台网站搜索百度一下
  • 做餐饮企业网站的费用软文网站推荐
  • 做网站与考研百度地图推广电话
  • 购物网站seo搜索引擎前期分析seo sem是什么
  • 做悬赏任务的网站企业网站制作步骤
  • 网站备案 类型中国最新军事新闻最新消息
  • 吉林网站建设平台实时热搜榜
  • 网页开发用什么语言百度整站优化
  • 网站设置了权限搜索引擎推广的费用