Skip to content

Commit

Permalink
feat: overrides react/jsx-no-undef to allow globals
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Aug 11, 2019
1 parent a36a69b commit f7d5194
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ npm i -D @rxts/eslint-plugin-mdx
),
rules: {
'lines-between-class-members': 0,
'react/jsx-no-undef': [
2,
{
allowGlobals: true,
},
],
'react/react-in-jsx-scope': 0,
},
},
Expand Down
6 changes: 6 additions & 0 deletions packages/eslint-mdx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ npm i -D @rxts/eslint-plugin-mdx
),
rules: {
'lines-between-class-members': 0,
'react/jsx-no-undef': [
2,
{
allowGlobals: true,
},
],
'react/react-in-jsx-scope': 0,
},
},
Expand Down
6 changes: 6 additions & 0 deletions packages/eslint-plugin-mdx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ npm i -D @rxts/eslint-plugin-mdx
),
rules: {
'lines-between-class-members': 0,
'react/jsx-no-undef': [
2,
{
allowGlobals: true,
},
],
'react/react-in-jsx-scope': 0,
},
},
Expand Down
6 changes: 6 additions & 0 deletions packages/eslint-plugin-mdx/src/configs/overrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ export const overrides = {
),
rules: {
'lines-between-class-members': 0, // See https://github.com/mdx-js/mdx/issues/195
'react/jsx-no-undef': [
2,
{
allowGlobals: true,
},
],
'react/react-in-jsx-scope': 0,
},
}

0 comments on commit f7d5194

Please sign in to comment.