1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2026-01-03 17:02:28 +03:00

Do not format with eslint, use prettier directly

This is way faster and prevents unnecessary editor feedback
This commit is contained in:
Quentin Gliech
2024-04-03 11:33:17 +02:00
parent 564bade714
commit b8205f2afd
2 changed files with 4 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ module.exports = {
// General rules for JS/TS files
{
extends: [
"plugin:prettier/recommended",
"prettier",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:matrix-org/typescript",
@@ -80,7 +80,6 @@ module.exports = {
"plugin:@graphql-eslint/schema-recommended",
"plugin:@graphql-eslint/relay",
"prettier",
"plugin:prettier/recommended",
],
rules: {
"@graphql-eslint/input-name": [

View File

@@ -5,8 +5,9 @@
"type": "module",
"scripts": {
"dev": "vite",
"generate": "graphql-codegen && eslint --fix .",
"lint": "graphql-codegen && eslint . && tsc && i18next --fail-on-warnings --fail-on-update",
"generate": "graphql-codegen",
"lint": "graphql-codegen && prettier --check . && eslint . && tsc && i18next --fail-on-warnings --fail-on-update",
"format": "prettier --write . && eslint --fix .",
"build": "rimraf ./dist/ && vite build",
"preview": "vite preview",
"test": "vitest",
@@ -69,7 +70,6 @@
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-matrix-org": "^1.2.1",
"eslint-plugin-prettier": "^5.1.3",
"happy-dom": "^14.3.9",
"i18next-parser": "^8.13.0",
"postcss": "^8.4.38",