diff --git a/README.md b/README.md index 7370911..35d4aab 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ yarn 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/eslint-parser @babel/plugin-syntax-flow @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 +@babel/core @babel/eslint-parser @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 ``` ## Set up diff --git a/index.js b/index.js index 0e3daec..9d53944 100644 --- a/index.js +++ b/index.js @@ -45,6 +45,9 @@ module.exports = { 'ft-flow/interface-id-match': ['error', '^_?([A-Z][A-Za-z0-9$]*I)$'], 'ft-flow/type-id-match': ['error', '^_?([A-Z][A-Za-z0-9$]*T|Props)$'], 'import/no-extraneous-dependencies': ['error', { devDependencies: true }], + // Rule incompatible with flowtype's type imports + // eg: import type { Blah } from 'blah'; module.exports = {}; + 'import/no-import-module-exports': 0, 'import/no-named-as-default': 0, 'import/order': [ 'error', diff --git a/package.json b/package.json index 44c9827..7f4c632 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.5", + "version": "1.0.6", "main": "index.js", "repository": "git@github.com:Brianzchen/eslint-config-bzc.git", "author": "Brian Chen", @@ -17,6 +17,7 @@ "@babel/core": "^7.0.0", "@babel/eslint-parser": "^7.12.0", "@babel/plugin-syntax-flow": "^7.16.0", + "@babel/plugin-syntax-jsx": "^7.16.0", "@babel/plugin-transform-react-jsx": "^7.16.0", "eslint-config-airbnb": ">=17.0.0 || >=18.0.0", "eslint-plugin-fb-flow": ">=0.0.1",