mirror of https://github.com/mastodon/mastodon
Replace `prettier` with `oxfmt` (#37893)
parent
8e7c3973dc
commit
e24737c612
@ -0,0 +1,92 @@
|
||||
{
|
||||
"$schema": "./node_modules/oxfmt/configuration_schema.json",
|
||||
"singleQuote": true,
|
||||
"jsxSingleQuote": true,
|
||||
"printWidth": 80,
|
||||
"ignorePatterns": [
|
||||
"/tmp",
|
||||
"/coverage",
|
||||
"/public/assets",
|
||||
"/public/emoji",
|
||||
"/public/packs",
|
||||
"/public/packs-test",
|
||||
"/public/system",
|
||||
"/public/vite*",
|
||||
|
||||
"*.html",
|
||||
"docker-compose.override.yml",
|
||||
|
||||
// Ignore config YAML files that include ERB/ruby code
|
||||
"config/email.yml",
|
||||
|
||||
// Vendored CSS
|
||||
"app/javascript/styles/mastodon/reset.scss",
|
||||
|
||||
// Automatically generated
|
||||
"/app/javascript/mastodon/features/emoji/emoji_map.json",
|
||||
"/app/javascript/mastodon/features/emoji/emoji_data.json",
|
||||
"AUTHORS.md",
|
||||
"/app/javascript/mastodon/locales/*.json",
|
||||
"/config/locales",
|
||||
".storybook/static/mockServiceWorker.js",
|
||||
|
||||
// do not reformat JS files as this will change too many files and cause merge conflicts with open PRs and forks
|
||||
"app/javascript/**/*.js",
|
||||
"app/javascript/**/*.jsx",
|
||||
"streaming/**/*.js"
|
||||
],
|
||||
"experimentalSortPackageJson": false,
|
||||
"experimentalSortImports": {
|
||||
"groups": [
|
||||
["builtin"],
|
||||
["react"],
|
||||
["react-intl"],
|
||||
["react-utils"],
|
||||
["redux"],
|
||||
["external", "type-external"],
|
||||
["internal", "type-internal"],
|
||||
["mastodon-internals"],
|
||||
["parent", "type-parent"],
|
||||
["sibling", "type-sibling", "index", "type-index"],
|
||||
["side_effect"]
|
||||
],
|
||||
"customGroups": [
|
||||
{
|
||||
"groupName": "react",
|
||||
"elementNamePattern": [
|
||||
"react",
|
||||
"react-dom",
|
||||
"react-dom/client",
|
||||
"prop-types"
|
||||
]
|
||||
},
|
||||
{
|
||||
"groupName": "react-intl",
|
||||
"elementNamePattern": ["react-intl", "intl-messageformat"]
|
||||
},
|
||||
{
|
||||
"groupName": "react-utils",
|
||||
"elementNamePattern": [
|
||||
"classnames",
|
||||
"react-helmet",
|
||||
"react-router",
|
||||
"react-router-dom"
|
||||
]
|
||||
},
|
||||
{
|
||||
"groupName": "redux",
|
||||
"elementNamePattern": [
|
||||
"immutable",
|
||||
"@reduxjs/toolkit",
|
||||
"react-redux",
|
||||
"react-immutable-proptypes",
|
||||
"react-immutable-pure-component"
|
||||
]
|
||||
},
|
||||
{
|
||||
"groupName": "mastodon-internals",
|
||||
"elementNamePattern": ["mastodon/**", "@/**"]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@ -1,86 +0,0 @@
|
||||
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
||||
#
|
||||
# If you find yourself ignoring temporary files generated by your text editor
|
||||
# or operating system, you probably want to add a global ignore instead:
|
||||
# git config --global core.excludesfile '~/.gitignore_global'
|
||||
|
||||
# Ignore bundler config and downloaded libraries.
|
||||
/.bundle
|
||||
/vendor/bundle
|
||||
|
||||
# Ignore the default SQLite database.
|
||||
/db/*.sqlite3
|
||||
/db/*.sqlite3-journal
|
||||
|
||||
# Ignore all logfiles and tempfiles.
|
||||
.eslintcache
|
||||
/log/*
|
||||
!/log/.keep
|
||||
/tmp
|
||||
/coverage
|
||||
.env
|
||||
.env.production
|
||||
.env.development
|
||||
/node_modules/
|
||||
/build/
|
||||
|
||||
# Ignore Vagrant files
|
||||
.vagrant/
|
||||
|
||||
# Ignore IDE files
|
||||
.vscode/
|
||||
.idea/
|
||||
|
||||
# Ignore postgres + redis + elasticsearch volume optionally created by docker-compose
|
||||
/postgres
|
||||
/postgres14
|
||||
/redis
|
||||
/elasticsearch
|
||||
|
||||
# Ignore Apple files
|
||||
.DS_Store
|
||||
|
||||
# Ignore vim files
|
||||
*~
|
||||
*.swp
|
||||
|
||||
# Ignore log files
|
||||
*.log
|
||||
|
||||
# Ignore Docker option files
|
||||
docker-compose.override.yml
|
||||
|
||||
# Ignore public
|
||||
/public/assets
|
||||
/public/emoji
|
||||
/public/packs
|
||||
/public/packs-test
|
||||
/public/system
|
||||
/public/vite*
|
||||
|
||||
# Ignore emoji map file
|
||||
/app/javascript/mastodon/features/emoji/emoji_map.json
|
||||
/app/javascript/mastodon/features/emoji/emoji_data.json
|
||||
|
||||
# Ignore locale files
|
||||
/app/javascript/mastodon/locales/*.json
|
||||
/config/locales
|
||||
|
||||
# Ignore vendored CSS reset
|
||||
app/javascript/styles/mastodon/reset.scss
|
||||
|
||||
# Ignore Javascript pending https://github.com/mastodon/mastodon/pull/23631
|
||||
*.js
|
||||
*.jsx
|
||||
|
||||
# Ignore HTML till cleaned and included in CI
|
||||
*.html
|
||||
|
||||
# Ignore the generated AUTHORS.md
|
||||
AUTHORS.md
|
||||
|
||||
# Process a few selected JS files
|
||||
!lint-staged.config.js
|
||||
|
||||
# Ignore config YAML files that include ERB/ruby code prettier does not understand
|
||||
/config/email.yml
|
||||
@ -1,4 +0,0 @@
|
||||
module.exports = {
|
||||
singleQuote: true,
|
||||
jsxSingleQuote: true
|
||||
};
|
||||
Loading…
Reference in New Issue