Skip to content

Commit

Permalink
fix: add rules to base and react configs
Browse files Browse the repository at this point in the history
  • Loading branch information
xobotyi committed Jul 3, 2023
1 parent 0517b51 commit b6b4429
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion base.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ module.exports = {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {},
rules: {
'import/no-useless-path-segments': 'error',
},
};
5 changes: 5 additions & 0 deletions react.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
module.exports = {
extends: ['xo-react', 'plugin:prettier/recommended'],
rules: {
// While using ts with `react-jsx` preset - there
// is no need in importing react in each file
'react/react-in-jsx-scope': 'off',
},
};

0 comments on commit b6b4429

Please sign in to comment.