am-freescan/am-web/lint-staged.config.mjs
2026-10-22 16:18:37 +08:00

13 lines
509 B
JavaScript

export default {
'src/**/*.{js,ts,tsx,vue}': [
'eslint --fix --cache --cache-location node_modules/.cache/eslint/',
'prettier --write --loglevel warn --cache --cache-location node_modules/.cache/prettier/.prettier-cache'
],
'src/**/*.{css,less,scss,postcss,vue}': [
'stylelint --fix --cache --cache-location node_modules/.cache/stylelint/'
],
'src/**/*.{json,html,md}': [
'prettier --write --loglevel warn --cache --cache-location node_modules/.cache/prettier/.prettier-cache'
]
}