腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
视频
沙龙
1
回答
Lint双逗号数组
javascript
、
visual-studio-code
、
lint
、
vscode-settings
我有一个问题,关于验证javascript文件。我们有用于配置各种东西的大型javascript对象。人们经常犯错误,在数组中输入双逗号。 config.items = [ { foo: true }, , { foo: false } , { foo: true } ] 这将导致类似于 [{...}, empty, {...}, {...}] 有趣的是,这甚至可以用打字稿来制作: let items: string[] = ["", , "", ""]; 而林特根本就不关心这事。 我的问题是:为了验证这些错误,我应该设置
浏览 0
提问于2018-09-20
得票数 1
回答已采纳
1
回答
无法找到配置中指定的下列规则的实现
javascript
、
eslint
、
tslint
、
eslintrc
、
eslint-plugin-vue
no-multiple-var-decl no-unnecessary-bind no-unnecessary-semicolons no-octal-literal
no-sparse-arrays
浏览 11
提问于2020-12-16
得票数 3
回答已采纳
1
回答
Eslint babel在将样式导入react组件时抑制错误
reactjs
、
ecmascript-6
、
lint
、
eslint
no-irregular-whitespace: 2 no-negated-in-lhs: 2 no-obj-calls: 2 no-regex-spaces: 2
no-sparse-arrays
浏览 6
提问于2017-02-23
得票数 0
1
回答
VSCode (角)- EsLint更漂亮的问题
angular
、
visual-studio-code
、
eslint
、
prettier
no-redeclare": "error", "no-return-await": "error", "no-sequences": "error", "
no-sparse-arrays
浏览 3
提问于2022-09-08
得票数 2
1
回答
ESLint和回溯断言
javascript
、
regex
、
eslint
no-self-assign": 2, "no-setter-return": 2, "no-shadow-restricted-names": 2, "
no-sparse-arrays
浏览 3
提问于2020-11-09
得票数 6
回答已采纳
1
回答
我将所有推荐的规则从eslint添加到我的.eslintrc.js文件中,它们都抛出“未找到规则的定义”
typescript
、
eslint
、
eslintrc
、
typescript-eslint
no-self-compare': 'error', '@typescript-eslint/no-setter-return': 'error', '@typescript-eslint/
no-sparse-arrays
@typescript-eslint/no-setter-return 1:1 error Definition for rule '@typescript-eslint/
no-sp
浏览 32
提问于2022-02-22
得票数 1
1
回答
TypeError:在加载规则‘function /jsx key’时出错: ruleCreator不是一个函数
eslint
、
gulp-eslint
这个错误意味着什么?我该怎么解决呢?: /home/jmunsch/PycharmProjects/testing/node_modules/gulp-eslint/node_modules/eslint/lib/eslint.js:706 throw ex; ^ TypeError: Error while loading rule 'react/jsx-key': ruleCreator is not a function at /home/jmunsch/PycharmProject
浏览 2
提问于2019-04-11
得票数 0
3
回答
将“eslint:推荐”改为警告
eslint
我在用 "extends": "eslint:recommended", 在我的.eslintrc文件中。这些规则在默认情况下使皮棉失效。我是否有办法将所有警告更改为警告,而不必分别指定每个警告?那么,是否有一种方法可以更改扩展规则集的规则级别? 例如,我希望能够做这样的事情: "extends": [ ["eslint:recommended", 1] ],
浏览 7
提问于2015-09-03
得票数 13
回答已采纳
1
回答
VisualStudio2019显示Power生成的ESLint文件的ESLint错误
typescript
、
visual-studio
、
visual-studio-2019
、
eslint
、
powerapps
no-redeclare": 1, "no-regex-spaces": 1, "no-self-assign": 1, "no-shadow-restricted-names": 1, "
no-sparse-arrays
浏览 2
提问于2021-06-07
得票数 0
1
回答
ESLint“无隐式全局”规则被忽略了。
javascript
、
eslint
、
sencha-touch
no-redeclare": 1, "no-regex-spaces": 1, "no-self-assign": 1, "no-shadow-restricted-names": 1, "
no-sparse-arrays
浏览 17
提问于2022-05-03
得票数 1
回答已采纳
3
回答
回复类型记录: eslint最大长度自动修复不起作用
typescript
、
eslint
no-func-assign": "warn", "no-inner-declarations": "warn", "no-irregular-whitespace": "warn", "
no-sparse-arrays
浏览 5
提问于2020-05-06
得票数 17
回答已采纳
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券