Skip to content

Commit

Permalink
fix path err + update rules checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Bender101 committed Nov 16, 2023
1 parent 37e6500 commit b82a693
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
9 changes: 7 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ module.exports = {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react", "@typescript-eslint", "react-hooks", "fsd-rules-checker-latest"],
plugins: [
"react",
"@typescript-eslint",
"react-hooks",
"fsd-rules-checker-latest",
],
rules: {
"react/jsx-filename-extension": [
2,
Expand All @@ -40,7 +45,7 @@ module.exports = {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"no-param-reassign": "off",
"fsd-rules-checker-latest/path-checker": "error"
"fsd-rules-checker-latest/path-checker": ["error", { alias: "@" }],
},
globals: {
__IS_DEV__: true,
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"css-loader": "^6.6.0",
"eslint": "8.22.0",
"eslint-config-standard-with-typescript": "^35.0.0",
"eslint-plugin-fsd-rules-checker-latest": "^0.0.3",
"eslint-plugin-fsd-rules-checker-latest": "^0.0.5",
"eslint-plugin-i18n": "^2.1.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.7.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Meta, StoryObj } from "@storybook/react";

import { StoreDecorator } from "@/shared/config/storybook/StoreDecorator/StoreDecorator";
import { NotificationList } from "@/entities/Notification/ui/NotificationList/NotificationList";
import { NotificationList } from "./NotificationList";

const meta: Meta<typeof NotificationList> = {
title: "entities/Notification/NotificationList",
Expand Down
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 b82a693

Please sign in to comment.