Skip to content

Commit

Permalink
feat: change paths linter for aliases, fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TomatoVan committed Mar 9, 2024
1 parent 50b37b1 commit 2fe1578
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = {
'no-undef': 'off',
'react/no-array-index-key': 'off',
'react/jsx-no-useless-fragment': 'off',
'paths-fixes/path-checker': 'error',
'paths-fixes/path-checker': ['error', { alias: '@' }],
},
globals: {
__IS_DEV__: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"eslint-plugin-i18next": "^5.1.2",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-paths-fixes": "^0.0.1",
"eslint-plugin-paths-fixes": "^0.0.2",
"eslint-plugin-react": "^7.29.2",
"eslint-plugin-react-hooks": "^4.3.0",
"file-loader": "^6.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/shared/ui/Popups/ui/Popover/Popover.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ const Template: ComponentStory<typeof Popover> = (args) => <Popover {...args} />

export const Normal = Template.bind({});
Normal.args = {
trigger: <button>Click me</button>,
trigger: <button type="button">Click me</button>,
children: <div>Popover content</div>,
};
2 changes: 1 addition & 1 deletion src/shared/ui/StarRating/StarRating.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { memo, useState } from 'react';
import { classNames } from '@/shared/lib/classNames/classNames';
import cls from './StarRating.module.scss';
import { Icon } from '@/shared/ui/Icon/Icon';
import { Icon } from '../Icon/Icon';
import StarIcon from '@/shared/assets/icons/star.svg';

interface StarRatingProps {
Expand Down

0 comments on commit 2fe1578

Please sign in to comment.