diff --git a/.lintstagedrc.json b/.lintstagedrc.json deleted file mode 100644 index f30ffed..0000000 --- a/.lintstagedrc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "*.{js,jsx}": "eslint", - "*.{css,js,jsx,json,md}": "prettier --write" -} diff --git a/lint-staged.config.js b/lint-staged.config.js new file mode 100644 index 0000000..93c0c9d --- /dev/null +++ b/lint-staged.config.js @@ -0,0 +1,7 @@ +/** @type {import("lint-staged").Config} */ +const config = { + '*.{js,jsx}': 'eslint --fix', + '*.{css,js,jsx,json,md}': 'prettier --write', +}; + +export default config;