Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions apps/react-vite/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ module.exports = {
},
],
'import/no-cycle': 'error',
'linebreak-style': ['error', 'unix'],
'linebreak-style': ['error', 'windows'],
'react/prop-types': 'off',
'import/order': [
'error',
Expand Down Expand Up @@ -125,7 +125,11 @@ module.exports = {
'@typescript-eslint/explicit-module-boundary-types': ['off'],
'@typescript-eslint/no-empty-function': ['off'],
'@typescript-eslint/no-explicit-any': ['off'],
'prettier/prettier': ['error', {}, { usePrettierrc: true }],
'prettier/prettier': [
'error',
{},
{ usePrettierrc: true, endOfLine: 'auto' },
],
'check-file/filename-naming-convention': [
'error',
{
Expand Down
3 changes: 2 additions & 1 deletion apps/react-vite/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"trailingComma": "all",
"printWidth": 80,
"tabWidth": 2,
"useTabs": false
"useTabs": false,
"endOfLine": "auto"
}
7 changes: 5 additions & 2 deletions apps/react-vite/generators/component/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@ module.exports = {
},
{
type: 'add',
path: componentGeneratePath + '/{{kebabCase name}}/{{kebabCase name}}.tsx',
path:
componentGeneratePath + '/{{kebabCase name}}/{{kebabCase name}}.tsx',
templateFile: 'generators/component/component.tsx.hbs',
},
{
type: 'add',
path: componentGeneratePath + '/{{kebabCase name}}/{{kebabCase name}}.stories.tsx',
path:
componentGeneratePath +
'/{{kebabCase name}}/{{kebabCase name}}.stories.tsx',
templateFile: 'generators/component/component.stories.tsx.hbs',
},
];
Expand Down
Loading