Skip to content

Commit

Permalink
feat: react-js 添加React引入认为是使用
Browse files Browse the repository at this point in the history
  • Loading branch information
eyea committed Sep 12, 2024
1 parent 8026f20 commit 5ee1263
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Empty file modified bin/index.js
100644 → 100755
Empty file.
3 changes: 3 additions & 0 deletions lib/configs/react-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ module.exports = {
// 'react/jsx-uses-react': 0,
// 'react/react-in-jsx-scope': 1,

// JSX中使用了React,那么把这些都视作已经被使用过的
"react/jsx-uses-react": "error",

// Basic react.js 35条,
// 涉及到jsx-runtime的放在上面了 走默认
'react/jsx-key': 1,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@afuteam/eslint-plugin-fe",
"version": "2.0.8",
"version": "2.0.9",
"description": "AfuTeam ESLint Plugin",
"main": "./lib/index.js",
"exports": {
Expand Down

0 comments on commit 5ee1263

Please sign in to comment.