Skip to content

Commit

Permalink
Added rule for enforcing JSX files to have extension JSX
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Oct 9, 2024
1 parent 860772e commit b1bebd6
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ module.exports = {
extends: `${coreLocation}/packages/volto/.eslintrc`,
rules: {
'import/no-unresolved': 1,
'import/named': 2,
'import/named': 'error',
'react/jsx-filename-extension': 'error',
'no-restricted-imports': [
'error',
{
Expand Down
2 changes: 1 addition & 1 deletion packages/volto-light-theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@kitconcept/volto-light-theme",
"version": "5.0.1",
"description": "Volto Light Theme by kitconcept",
"main": "src/index.js",
"main": "src/index.jsx",
"types": "src/types/index.d.ts",
"repository": {
"type": "git",
Expand Down
File renamed without changes.

0 comments on commit b1bebd6

Please sign in to comment.