10 lines
516 B
JavaScript
10 lines
516 B
JavaScript
// .lintstagedrc.js
|
|
module.exports = {
|
|
'*.{js,jsx,ts,tsx}': ['prettier --cache --ignore-unknown --write', 'eslint --cache --fix'],
|
|
'{!(package)*.json,*.code-snippets,.!(browserslist)*rc}': ['prettier --cache --write--parser json'],
|
|
'package.json': ['prettier --cache --write'],
|
|
'*.vue': ['prettier --write', 'eslint --cache --fix', 'stylelint --fix'],
|
|
'*.{scss,less,styl,html}': ['prettier --cache --ignore-unknown --write', 'stylelint --fix'],
|
|
'*.md': ['prettier --cache --ignore-unknown --write'],
|
|
};
|