Skip to content

Commit

Permalink
chore: Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Sep 13, 2023
1 parent fffa22d commit cf8a81c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx}": [
"eslint --max-warnings=0 --fix -c .eslintrc.publish.js",
"prettier --write"
"prettier --write",
"eslint --max-warnings=0 --fix -c .eslintrc.publish.js"
],
"**/*.{css,scss}": [
"stylelint --fix",
"prettier --write"
"prettier --write",
"stylelint --fix"
],
"**/*.{json,yaml,yml,md}": [
"prettier --write"
Expand Down
3 changes: 2 additions & 1 deletion src/components/Controls/Controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {FeedbackSendData, Lang, SubscribeData, TextSizes, Theme} from '../../mod
import {Feedback, FeedbackView} from '../Feedback';
import {Subscribe, SubscribeView} from '../Subscribe';

import './Controls.scss';
import {ControlsLayoutContext} from './ControlsLayout';

import {
Expand All @@ -18,6 +17,8 @@ import {
SinglePageControl,
} from './';

import './Controls.scss';

const b = block('dc-controls');

export interface ControlsProps {
Expand Down
3 changes: 2 additions & 1 deletion src/components/Feedback/Feedback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import React, {PropsWithChildren, useCallback, useEffect, useRef, useState} from
import {usePopupState, useTranslation} from '../../hooks';
import {FeedbackSendData, FeedbackType} from '../../models';

import './Feedback.scss';
import DislikeControl from './controls/DislikeControl';
import DislikeVariantsPopup, {FormData} from './controls/DislikeVariantsPopup';
import LikeControl from './controls/LikeControl';
import SuccessPopup from './controls/SuccessPopup';

import './Feedback.scss';

const b = block('dc-feedback');

export enum FeedbackView {
Expand Down
3 changes: 2 additions & 1 deletion src/components/Toc/Toc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ import {Controls, ControlsLayout} from '../Controls';
import {HTML} from '../HTML';
import {TocItem as Item} from '../TocItem';

import './Toc.scss';
import {TocItemRegistry} from './TocItemRegistry';

import './Toc.scss';

const b = block('dc-toc');
const HEADER_DEFAULT_HEIGHT = 0;

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"module": "CommonJS",
"target": "ES2017",
"outDir": "build/cjs",
"outDir": "build/cjs"
},
"include": ["src/**/*.ts", "src/**/*.tsx"]
}
2 changes: 1 addition & 1 deletion tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"module": "ESNext",
"target": "ES2017",
"outDir": "build/cjs",
"outDir": "build/esm"
},
"include": ["src/**/*.ts", "src/**/*.tsx"]
}

0 comments on commit cf8a81c

Please sign in to comment.