Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
'use strict';

module.exports = {
extends: ["./eslint-config-react/index.js"],
plugins: ['eslint-plugin-todo-comments'],
extends: ['./eslint-config-react/index.js'],
rules: {
/* section1 : 可能存在的错误 */
// error; for循转方向出错
Expand Down Expand Up @@ -379,6 +380,14 @@ module.exports = {
// 'template-curly-spacing': [2, 'never'],
// error; yield* 后面必须加空格
'yield-star-spacing': [2, 'after'],
"react/prop-types": 0
"react/prop-types": 0,
// 限制TODO个数
'todo-comments/todo-count-limit': [
'error',
{
terms: ['todo',"FIXME"],
location: 'start'
}
]
}
};
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-ivweb",
"version": "0.1.5",
"version": "0.1.6",
"description": "腾讯IVWEB团队eslint配置检测规范",
"license": "Apache-2.0",
"repository": "iv-web/eslint-config-ivweb",
Expand Down Expand Up @@ -29,7 +29,8 @@
"code style"
],
"dependencies": {
"eslint-plugin-react": "^7.7.0"
"eslint-plugin-react": "^7.7.0",
"eslint-plugin-todo-comments": "^0.1.0"
},
"devDependencies": {
"babel-eslint": "^8.2.3",
Expand Down