diff --git a/.lintstagedrc.json b/.lintstagedrc.json deleted file mode 100644 index 9a24a41b..00000000 --- a/.lintstagedrc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "composer.json": "composer validate", - "package.json": "npmPkgJsonLint --allowEmptyTargets", - "*.md": ["markdownlint", "prettier --check"], - "*.{js,cjs,mjs,json,jsx,mdx,ts,tsx}": ["eslint --no-error-on-unmatched-pattern", "prettier --check"], - "*.{css,scss}": ["stylelint --allow-empty-input", "prettier --check"] -} diff --git a/.prettierignore b/.prettierignore index 4472642c..1f8ec9ea 100644 --- a/.prettierignore +++ b/.prettierignore @@ -23,3 +23,5 @@ components/components.d.ts packages/web-components-stencil/loader packages/web-components-react/src/react-component-lib/ packages/web-components-react/src/components.ts + +.*ignore diff --git a/lint-staged.config.cjs b/lint-staged.config.cjs new file mode 100644 index 00000000..6eb4f6eb --- /dev/null +++ b/lint-staged.config.cjs @@ -0,0 +1,7 @@ +module.exports = { + '*': 'prettier --write', + 'package.json': 'npmPkgJsonLint --allowEmptyTargets', + '*.md': ['markdownlint'], + '*.{js,cjs,mjs,json,jsx,mdx,ts,tsx}': ['eslint --no-error-on-unmatched-pattern'], + '*.{css,scss}': ['stylelint --allow-empty-input'], +};