Skip to content

Commit

Permalink
Merge pull request #1354 from kadena-community/ag/chore/fix-typedef-rule
Browse files Browse the repository at this point in the history
  • Loading branch information
alber70g authored Dec 18, 2023
2 parents 5a71173 + 1db01bb commit 48b654d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/purple-eyes-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@kadena-dev/eslint-config': patch
---

Improve developer experience and use Typescript power to infer types of
variables
1 change: 1 addition & 0 deletions packages/tools/eslint-config/profile/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module.exports = {
},
],
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
'@rushstack/typedef-var': 'off',
},
settings: {
'import/parsers': {
Expand Down
1 change: 0 additions & 1 deletion packages/tools/eslint-config/profile/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module.exports = {
extends: ['./lib', 'plugin:react/recommended'],
plugins: ['react', 'jsx-a11y'],
rules: {
'@rushstack/typedef-var': 'off',
'@kadena-dev/typedef-var': 'off',
'jsx-a11y/aria-props': 'warn',
'jsx-a11y/role-has-required-aria-props': 'warn',
Expand Down

0 comments on commit 48b654d

Please sign in to comment.