Skip to content

Commit

Permalink
turn off imports with module export
Browse files Browse the repository at this point in the history
  • Loading branch information
Brianzchen committed Dec 28, 2021
1 parent bc1e024 commit 31cdf78
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
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.5",
"version": "1.0.6",
"main": "index.js",
"repository": "[email protected]:Brianzchen/eslint-config-bzc.git",
"author": "Brian Chen",
Expand All @@ -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",
Expand Down

0 comments on commit 31cdf78

Please sign in to comment.