Skip to content

Commit

Permalink
fix: disable no-undef
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanleung committed Feb 25, 2021
1 parent df3730e commit 52926ad
Show file tree
Hide file tree
Showing 4 changed files with 1,399 additions and 1,486 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
],
"devDependencies": {
"@spotify/eslint-config-oss": "^1.0.0",
"@spotify/eslint-plugin": "^9.0.1",
"husky": "^4.0.0",
"lerna": "^3.20.2",
"typescript": "^4.0.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-base/es5.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ module.exports = {
// disallow use of undefined when initializing variables
'no-undef-init': 0,
// disallow use of undeclared variables unless mentioned in a /*global */ block
'no-undef': 2,
'no-undef': 0,
// disallow use of undefined variable
'no-undefined': 0,
// disallow declaration of variables that are not used in the code
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = {
// Prevent duplicate props in JSX
'react/jsx-no-duplicate-props': 0,
// Disallow undeclared variables in JSX
'react/jsx-no-undef': 2,
'react/jsx-no-undef': 0,
// Enforce quote style for JSX attributes
'react/jsx-quotes': 0,
// Enforce propTypes declarations alphabetical sorting
Expand Down
Loading

0 comments on commit 52926ad

Please sign in to comment.