mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
Separate Prettier and ESLint according to best practices (#9565)
* Separate Prettier and ESLint according to best practices - Create standalone .prettierrc configuration file - Remove eslint-plugin-prettier integration from ESLint config - Replace with eslint-config-prettier to disable conflicting rules - Remove eslint-plugin-prettier dependency - Add dedicated format and format:check scripts - Update lint-staged to run Prettier and ESLint separately - Format entire codebase with new Prettier configuration This follows the recommended approach from Prettier documentation: https://prettier.io/docs/integrating-with-linters#notes * Remove test comment --------- Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>
This commit is contained in:
+6
-21
@@ -9,12 +9,7 @@
|
||||
"isolatedModules": true,
|
||||
"baseUrl": ".",
|
||||
"jsx": "react-jsx",
|
||||
"lib": [
|
||||
"dom",
|
||||
"es2020",
|
||||
"dom.iterable",
|
||||
"esnext.asynciterable"
|
||||
],
|
||||
"lib": ["dom", "es2020", "dom.iterable", "esnext.asynciterable"],
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"noErrorTruncation": true,
|
||||
@@ -30,20 +25,10 @@
|
||||
"ignoreDeprecations": "5.0",
|
||||
"target": "es2020",
|
||||
"paths": {
|
||||
"@server/*": [
|
||||
"./server/*"
|
||||
],
|
||||
"@shared/*": [
|
||||
"./shared/*"
|
||||
],
|
||||
"~/*": [
|
||||
"./app/*"
|
||||
]
|
||||
"@server/*": ["./server/*"],
|
||||
"@shared/*": ["./shared/*"],
|
||||
"~/*": ["./app/*"]
|
||||
}
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"build",
|
||||
"server/migrations"
|
||||
]
|
||||
}
|
||||
"exclude": ["node_modules", "build", "server/migrations"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user