Skip to content

Commit

Permalink
add react namespace rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Brianzchen committed Mar 17, 2024
1 parent f10cf84 commit fe214ad
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pnpm add -D eslint-config-bzc

In addition you will also need a list of peer dependencies for the linter to run properly
```
@babel/core @babel/plugin-syntax-flow @babel/plugin-syntax-jsx @babel/plugin-transform-react-jsx eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-jest eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-fb-flow eslint-plugin-ft-flow eslint-plugin-react-hooks eslint-plugin-testing-library hermes-eslint
@babel/core @babel/plugin-syntax-flow @babel/plugin-syntax-jsx @babel/plugin-transform-react-jsx eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-jest eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-fb-flow eslint-plugin-ft-flow eslint-plugin-react-hooks eslint-plugin-testing-library eslint eslint-plugin-unicorn hermes-eslint
```

## Set up
Expand Down
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,12 @@ module.exports = {
'testing-library/no-wait-for-side-effects': 2,
'testing-library/prefer-screen-queries': 2,
'testing-library/prefer-wait-for': 2,
'unicorn/import-style': [2, {
styles: {
react: {
namespace: true,
},
},
}],
},
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eslint-config-bzc",
"description": "Eslint Config for my personal and professional projects",
"version": "1.0.11",
"version": "1.0.12",
"main": "index.js",
"repository": "git@github.com:Brianzchen/eslint-config-bzc.git",
"author": "Brian Chen",
Expand All @@ -24,6 +24,7 @@
"eslint-plugin-react": ">=7.27.0",
"eslint-plugin-react-hooks": ">=4.0.0",
"eslint-plugin-testing-library": ">=4.0.0",
"eslint eslint-plugin-unicorn": ">=51.0.1",
"hermes-eslint": ">=0.15.0"
},
"devDependencies": {
Expand Down

0 comments on commit fe214ad

Please sign in to comment.