packages: add lint-staged-config
This commit is contained in:
parent
b159d811b5
commit
1e06d6da23
1
apps/web/lint-staged.config.mjs
Normal file
1
apps/web/lint-staged.config.mjs
Normal file
@ -0,0 +1 @@
|
||||
export { default } from '@repo/lint-staged-config/config';
|
||||
@ -19,6 +19,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@repo/eslint-config": "workspace:*",
|
||||
"@repo/lint-staged-config": "workspace:*",
|
||||
"@repo/typescript-config": "workspace:*",
|
||||
"@types/node": "catalog:",
|
||||
"@types/react": "catalog:",
|
||||
@ -28,10 +29,5 @@
|
||||
"postcss": "catalog:",
|
||||
"tailwindcss": "catalog:",
|
||||
"typescript": "catalog:"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js,jsx,ts,tsx,md,json}": [
|
||||
"eslint --fix"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
3
packages/lint-staged-config/config.mjs
Normal file
3
packages/lint-staged-config/config.mjs
Normal file
@ -0,0 +1,3 @@
|
||||
export default {
|
||||
'*.{js,jsx,ts,tsx,md,json}': ['eslint --fix'],
|
||||
};
|
||||
13
packages/lint-staged-config/package.json
Normal file
13
packages/lint-staged-config/package.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "@repo/lint-staged-config",
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"exports": {
|
||||
"./config": "./config.mjs"
|
||||
}
|
||||
}
|
||||
1
packages/ui/lint-staged.config.mjs
Normal file
1
packages/ui/lint-staged.config.mjs
Normal file
@ -0,0 +1 @@
|
||||
export { default } from '@repo/lint-staged-config/config';
|
||||
@ -29,6 +29,7 @@
|
||||
"devDependencies": {
|
||||
"@radix-ui/react-slot": "catalog:",
|
||||
"@repo/eslint-config": "workspace:*",
|
||||
"@repo/lint-staged-config": "workspace:*",
|
||||
"@repo/typescript-config": "workspace:*",
|
||||
"@types/react": "catalog:",
|
||||
"autoprefixer": "catalog:",
|
||||
@ -46,10 +47,5 @@
|
||||
"dependencies": {
|
||||
"react": "catalog:",
|
||||
"react-dom": "catalog:"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js,jsx,ts,tsx,md,json}": [
|
||||
"eslint --fix"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
8
pnpm-lock.yaml
generated
8
pnpm-lock.yaml
generated
@ -117,6 +117,9 @@ importers:
|
||||
'@repo/eslint-config':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/eslint-config
|
||||
'@repo/lint-staged-config':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/lint-staged-config
|
||||
'@repo/typescript-config':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/typescript-config
|
||||
@ -160,6 +163,8 @@ importers:
|
||||
specifier: 'catalog:'
|
||||
version: 2.3.2(eslint@9.15.0(jiti@1.21.6))
|
||||
|
||||
packages/lint-staged-config: {}
|
||||
|
||||
packages/typescript-config: {}
|
||||
|
||||
packages/ui:
|
||||
@ -177,6 +182,9 @@ importers:
|
||||
'@repo/eslint-config':
|
||||
specifier: workspace:*
|
||||
version: link:../eslint-config
|
||||
'@repo/lint-staged-config':
|
||||
specifier: workspace:*
|
||||
version: link:../lint-staged-config
|
||||
'@repo/typescript-config':
|
||||
specifier: workspace:*
|
||||
version: link:../typescript-config
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user