Skip to content

Commit

Permalink
Add a temporary override for the React import (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrm007 committed Jul 7, 2023
1 parent 8644977 commit 1efcef3
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/kind-coins-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'eslint-config-seek': patch
---

Add a temporary override until everybody removes the `React` import
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "."
}
16 changes: 16 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@ const eslintConfig = {
rules: {
...reactRules,
},
overrides: [
{
// temporary override until everybody removes the React import
files: [`**/*.tsx`],
rules: {
'@typescript-eslint/no-unused-vars': [
ERROR,
{
argsIgnorePattern: '^_',
ignoreRestSiblings: true,
varsIgnorePattern: '^React$',
},
],
},
},
],
};

module.exports = eslintConfig;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"scripts": {
"release": "changeset publish",
"test": "eslint --config index.js . && eslint --config base.js .",
"test": "eslint . && eslint --config base.js .",
"changeset-version": "changeset version && prettier --write ."
},
"homepage": "https://github.com/seek-oss/eslint-config-seek#readme",
Expand Down

0 comments on commit 1efcef3

Please sign in to comment.