diff --git a/README.md b/README.md index c35456a..1506537 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/index.js b/index.js index 3c13e5a..d8b85be 100644 --- a/index.js +++ b/index.js @@ -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, + }, + }, + }], }, }; diff --git a/package.json b/package.json index ee025e1..462ba17 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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": {