Skip to content

Commit

Permalink
Update lint-staged config
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmilburn committed Dec 3, 2024
1 parent 2afbf5b commit b664041
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion admin/src/contentManagerHooks/addPreviewColumn.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { UID } from '@strapi/strapi';
import get from 'lodash/get';
import type { UID } from '@strapi/strapi';

import { ListViewColumn } from '../components';
import { pluginId } from '../utils';
Expand Down
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
],
"scripts": {
"build": "strapi-plugin build",
"format": "prettier --check \"**/*.+(js|jsx|ts|tsx|json|css|md)\"",
"format:fix": "prettier --write \"**/*.+(js|jsx|ts|tsx|json|css|md)\"",
"format": "prettier --check \"{admin,server}/**/*.(ts|tsx|json|md)\"",
"format:fix": "prettier --write \"{admin,server}/**/*.(ts|tsx|json|md)\"",
"lint": "eslint --fix-dry-run '{admin,server}/**/*.{ts,tsx}'",
"lint:fix": "eslint --fix '{admin,server}/**/*.{ts,tsx}'",
"prepare": "husky",
Expand All @@ -54,10 +54,8 @@
"watch:link": "strapi-plugin watch:link"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --check",
"eslint --fix-dry-run"
]
"{admin,server}/**/*.(ts|tsx|json|css|md)": "prettier --check",
"{admin,server}/**/*.{ts,tsx}": "eslint --fix-dry-run"
},
"prettier": {
"endOfLine": "lf",
Expand Down

0 comments on commit b664041

Please sign in to comment.