mirror of
https://github.com/outline/outline.git
synced 2025-12-17 00:34:30 -06:00
* 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>
60 lines
1.1 KiB
Plaintext
60 lines
1.1 KiB
Plaintext
{
|
|
"presets": [
|
|
[
|
|
"@babel/preset-react",
|
|
{
|
|
"runtime": "automatic"
|
|
}
|
|
],
|
|
"@babel/preset-env",
|
|
"@babel/preset-typescript"
|
|
],
|
|
"plugins": [
|
|
"babel-plugin-transform-typescript-metadata",
|
|
[
|
|
"@babel/plugin-proposal-decorators",
|
|
{
|
|
"legacy": true
|
|
}
|
|
],
|
|
"@babel/plugin-transform-class-properties",
|
|
[
|
|
"transform-inline-environment-variables",
|
|
{
|
|
"include": ["SOURCE_COMMIT", "SOURCE_VERSION"]
|
|
}
|
|
],
|
|
"tsconfig-paths-module-resolver"
|
|
],
|
|
"env": {
|
|
"production": {
|
|
"plugins": [
|
|
[
|
|
"styled-components",
|
|
{
|
|
"displayName": false
|
|
}
|
|
]
|
|
],
|
|
"ignore": ["**/__mocks__", "**/*.test.ts"]
|
|
},
|
|
"development": {
|
|
"ignore": ["**/__mocks__", "**/*.test.ts"]
|
|
},
|
|
"test": {
|
|
"presets": [
|
|
[
|
|
"@babel/preset-env",
|
|
{
|
|
"corejs": {
|
|
"version": "3",
|
|
"proposals": true
|
|
},
|
|
"useBuiltIns": "usage"
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
}
|