Linting (#2083)
* Runs yarn format * Update website * Web lint is failing * Formatting * Adds cache for dependency install * Adds linting reports for GH * Fixes artifact upload * Caching tests * Merge reports on GH actions * Linting * Fix prettier plugin conflicts * Dep fixes * Moves tailwind to monorepo package (#2091) * New Crowdin translations by Github Action (#2077) Co-authored-by: Crowdin Bot <[email protected]> * fix redirection to 404 page on login (#2086) Co-authored-by: Peer Richelsen <[email protected]> * fix: update contributing (#2084) Co-authored-by: Bailey Pumfleet <[email protected]> * Formatting * Update website Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Crowdin Bot <[email protected]> Co-authored-by: Hariom Balhara <[email protected]> Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Louis <[email protected]> Co-authored-by: Bailey Pumfleet <[email protected]>
This commit is contained in:
16 files changed
+412
-245
No files matched your search
@@ -0,0 +1,14 @@
|
||||
/* @see https://github.com/tailwindlabs/prettier-plugin-tailwindcss/issues/31#issuecomment-1024722576 */
|
||||
const tailwind = require("prettier-plugin-tailwindcss");
|
||||
const sortImports = require("@trivago/prettier-plugin-sort-imports");
|
||||
|
||||
const combinedFormatter = {
|
||||
parsers: {
|
||||
typescript: {
|
||||
...tailwind.parsers.typescript,
|
||||
preprocess: sortImports.parsers.typescript.preprocess,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = combinedFormatter;
|
||||
@@ -4,17 +4,21 @@
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"eslint-preset.js"
|
||||
"eslint-preset.js",
|
||||
"prettier-preset.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"eslint-config-next": "^12.0.8",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-plugin-playwright": "^0.7.1",
|
||||
"eslint-plugin-prettier": "^3.4.0"
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-playwright": "^0.8.0",
|
||||
"eslint-plugin-prettier": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/forms": "^0.5.0",
|
||||
"@tailwindcss/typography": "^0.5.2",
|
||||
"@trivago/prettier-plugin-sort-imports": "3.2.0",
|
||||
"prettier-plugin-tailwindcss": "^0.1.8",
|
||||
"prettier": "^2.5.1",
|
||||
"tailwindcss": "^3.0.23",
|
||||
"typescript": "^4.5.3"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
module.exports = {
|
||||
bracketSpacing: true,
|
||||
bracketSameLine: true,
|
||||
singleQuote: false,
|
||||
jsxSingleQuote: false,
|
||||
trailingComma: "es5",
|
||||
semi: true,
|
||||
printWidth: 110,
|
||||
arrowParens: "always",
|
||||
importOrder: ["^@(calcom|ee)/(.*)$", "^@lib/(.*)$", "^@components/(.*)$", "^@(server|trpc)/(.*)$", "^[./]"],
|
||||
importOrderSeparation: true,
|
||||
plugins: [require("./merged-prettier-plugin")],
|
||||
};
|
||||
Reference in new issue
Block a user