pl-fe: lint, lint-staged changes
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
pnpm precommit
|
||||
cd packages/pl-fe && pnpm precommit && cd -
|
||||
@ -1,7 +1,8 @@
|
||||
{
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"precommit": "lint-staged"
|
||||
"precommit": "lint-staged",
|
||||
"prepare": "husky"
|
||||
},
|
||||
"devDependencies": {
|
||||
"husky": "^9.0.0",
|
||||
|
||||
@ -1,8 +0,0 @@
|
||||
{
|
||||
"*.js": "eslint --cache",
|
||||
"*.cjs": "eslint --cache",
|
||||
"*.mjs": "eslint --cache",
|
||||
"*.ts": "eslint --cache",
|
||||
"*.tsx": "eslint --cache",
|
||||
"src/styles/**/*.scss": "stylelint"
|
||||
}
|
||||
@ -29,7 +29,7 @@
|
||||
"lint": "${npm_execpath} run lint:js && ${npm_execpath} run lint:sass",
|
||||
"lint:js": "npx eslint --ext .js,.jsx,.cjs,.mjs,.ts,.tsx . --cache",
|
||||
"lint:sass": "npx stylelint src/styles/**/*.scss",
|
||||
"precommit": "npx lint-staged"
|
||||
"precommit": "lint-staged"
|
||||
},
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"browserslist": [
|
||||
@ -180,9 +180,7 @@
|
||||
"eslint-plugin-tailwindcss": "^3.17.5",
|
||||
"fake-indexeddb": "^6.0.0",
|
||||
"globals": "^15.14.0",
|
||||
"husky": "^9.1.7",
|
||||
"jsdom": "^25.0.1",
|
||||
"lint-staged": "^15.3.0",
|
||||
"rollup-plugin-bundle-stats": "^4.17.0",
|
||||
"stylelint": "^16.12.0",
|
||||
"stylelint-config-standard-scss": "^12.0.0",
|
||||
@ -198,5 +196,9 @@
|
||||
"vite-plugin-require": "^1.2.14",
|
||||
"vite-plugin-static-copy": "^2.3.2",
|
||||
"vitest": "^2.1.9"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js,cjs,mjs,ts,tsx}": "eslint --cache",
|
||||
"src/styles/**/*.scss": "stylelint"
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,6 +23,7 @@ import Input from 'pl-fe/components/ui/input';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import Toggle from 'pl-fe/components/ui/toggle';
|
||||
import ContentTypeButton from 'pl-fe/features/compose/components/content-type-button';
|
||||
import { isCurrentOrFutureDate } from 'pl-fe/features/compose/components/schedule-form';
|
||||
import { ComposeEditor, DatePicker } from 'pl-fe/features/ui/util/async-components';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
@ -33,7 +34,6 @@ import toast from 'pl-fe/toast';
|
||||
import UploadButton from '../components/upload-button';
|
||||
|
||||
import type { Location } from 'pl-api';
|
||||
import ContentTypeButton from 'pl-fe/features/compose/components/content-type-button';
|
||||
|
||||
const messages = defineMessages({
|
||||
eventNamePlaceholder: { id: 'compose_event.fields.name_placeholder', defaultMessage: 'Name' },
|
||||
|
||||
6
pnpm-lock.yaml
generated
6
pnpm-lock.yaml
generated
@ -536,15 +536,9 @@ importers:
|
||||
globals:
|
||||
specifier: ^15.14.0
|
||||
version: 15.15.0
|
||||
husky:
|
||||
specifier: ^9.1.7
|
||||
version: 9.1.7
|
||||
jsdom:
|
||||
specifier: ^25.0.1
|
||||
version: 25.0.1
|
||||
lint-staged:
|
||||
specifier: ^15.3.0
|
||||
version: 15.5.2
|
||||
rollup-plugin-bundle-stats:
|
||||
specifier: ^4.17.0
|
||||
version: 4.21.1(core-js@3.44.0)(rollup@2.79.2)(vite@5.4.21(@types/node@22.17.0)(sass@1.89.2)(terser@5.44.0))
|
||||
|
||||
Reference in New Issue
Block a user