Always run Prettier via ESLint

This commit is contained in:
Niels van Velzen 2023-10-07 10:37:40 +02:00
parent 83fa27dda6
commit 80c8c43d80
5 changed files with 7 additions and 16 deletions

View File

@ -9,7 +9,6 @@ module.exports = {
'plugin:jsdoc/recommended', 'plugin:jsdoc/recommended',
'plugin:json/recommended', 'plugin:json/recommended',
'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:prettier/recommended', 'plugin:prettier/recommended',
'plugin:promise/recommended', 'plugin:promise/recommended',
'plugin:import/errors', 'plugin:import/errors',
@ -30,7 +29,7 @@ module.exports = {
} }
} }
], ],
plugins: ['prettier', 'promise', 'import', 'jsdoc'], plugins: ['promise', 'import', 'jsdoc'],
root: true, root: true,
rules: { rules: {
'@typescript-eslint/explicit-function-return-type': 'error', '@typescript-eslint/explicit-function-return-type': 'error',

View File

@ -1,5 +0,0 @@
dist/
node_modules/
package-lock.json
LICENSE.md

View File

@ -1,6 +0,0 @@
{
"semi": true,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "none"
}

4
.prettierrc.yaml Normal file
View File

@ -0,0 +1,4 @@
semi: true
singleQuote: true
tabWidth: 4
trailingComma: none

View File

@ -38,9 +38,8 @@
"start": "vite", "start": "vite",
"build": "vite build", "build": "vite build",
"test": "vitest", "test": "vitest",
"lint": "npm run lint:code && npm run lint:css && npm run prettier", "lint": "npm run lint:code && npm run lint:css",
"lint:code": "eslint --ext .ts,.js,.json .", "lint:code": "eslint --ext .ts,.js,.json .",
"lint:css": "stylelint src/**/*.css", "lint:css": "stylelint src/**/*.css"
"prettier": "prettier --check ."
} }
} }