diff --git a/lint-staged.config.js b/lint-staged.config.js index 869ff40d53..2935935cfb 100644 --- a/lint-staged.config.js +++ b/lint-staged.config.js @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MPL-2.0 // Copyright (C) 2020 - 2021 Gemeente Amsterdam module.exports = { - '*.{js,ts,tsx}': 'eslint', + '*.{js,jsx,ts,tsx}': ['prettier --write', 'eslint'], } diff --git a/package.json b/package.json index d09331b04d..7ae266ac0e 100644 --- a/package.json +++ b/package.json @@ -183,11 +183,5 @@ "webpack-cli": "^5.1.4", "webpack-dev-server": "^4.15.2" }, - "private": true, - "lint-staged": { - "*.{js,jsx,ts,tsx}": [ - "prettier --write", - "eslint" - ] - } + "private": true }