Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
style: 🎨 lint && reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
ecxyzzy committed May 20, 2024
1 parent fb09bab commit ebcba95
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 33 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.cdk.staging
.docusaurus
cdk.out
coverage
build
Expand Down
4 changes: 2 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const config = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["./tsconfig.json", "./apps/docs/tsconfig.json"],
project: ["./tsconfig.json"],
sourceType: "module",
},
plugins: ["import", "@typescript-eslint"],
Expand Down Expand Up @@ -38,7 +38,7 @@ const config = {
},
],
},
ignorePatterns: ["docusaurus.config.js", "*.cjs"],
ignorePatterns: ["*.cjs"],
env: {
es2020: true,
node: true,
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,3 @@ tools/grades-updater/outputData

# grades-updater logs
tools/grades-updater/logs

# docusaurus
.docusaurus
build/
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.cdk.staging
.docusaurus
cdk.out
coverage
build
Expand Down
4 changes: 2 additions & 2 deletions libs/lambda/src/compress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export function compress(body: string, acceptEncoding?: string): CompressionResu
return { body };
}

const matchingAlgorithm = compressionAlgorithmEntries.find(
(algorithm) => acceptEncoding?.includes(algorithm[0]),
const matchingAlgorithm = compressionAlgorithmEntries.find((algorithm) =>
acceptEncoding?.includes(algorithm[0]),
);

// If accept-encoding is present and not empty, prioritize gzip over deflate.
Expand Down
2 changes: 1 addition & 1 deletion libs/uc-irvine-lib/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": ["../../tsconfig.json"],
"extends": ["../../tsconfig.json"]
}
15 changes: 0 additions & 15 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,6 @@
"labels": ["type: dependency"],
"nvm": { "enabled": false },
"packageRules": [
{
"matchPackagePatterns": ["@docusaurus/*"],
"groupName": "Docusaurus v2",
"allowedVersions": "<3.0.0"
},
{
"matchPackagePatterns": ["react(?:-router)?"],
"groupName": "Docusaurus v2: React dependencies",
"allowedVersions": "<18.0.0"
},
{
"matchPackageNames": ["@mdx-js/react", "clsx", "prism-react-renderer", "prismjs"],
"groupName": "Docusaurus v2: other dependencies",
"allowedVersions": "<2.0.0"
},
{
"matchPackageNames": ["constructs"],
"groupName": "Constructs",
Expand Down
8 changes: 1 addition & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,5 @@
"resolveJsonModule": true
},
"include": ["*.ts", "apps/**/*", "libs/**/*", "packages/**/*", "services/**/*", "tools/**/*"],
"exclude": [
"**/build/**/*",
"**/cdk.out/**/*",
"**/dist/**/*",
"**/node_modules/**/*",
"apps/docs/**/*"
]
"exclude": ["**/build/**/*", "**/cdk.out/**/*", "**/dist/**/*", "**/node_modules/**/*"]
}

0 comments on commit ebcba95

Please sign in to comment.