Skip to content

Commit 6a0f39d

Browse files
Add prettier, Husky, and prettified files
1 parent 2dfef6b commit 6a0f39d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+22718
-32730
lines changed

.devcontainer/devcontainer.json

+9-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
22
// https://github.com/microsoft/vscode-dev-containers/tree/v0.158.0/containers/typescript-node
33
{
4-
"name": "Node.js & TypeScript",
5-
"build": {
6-
"dockerfile": "Dockerfile",
7-
"args": {
8-
"VARIANT": "14"
9-
}
10-
},
11-
"extensions": [
12-
"ethansk.restore-terminals",
13-
"esbenp.prettier-vscode"
14-
],
15-
"remoteUser": "node"
4+
"name": "Node.js & TypeScript",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
"args": {
8+
"VARIANT": "14"
9+
}
10+
},
11+
"extensions": ["ethansk.restore-terminals", "esbenp.prettier-vscode"],
12+
"remoteUser": "node"
1613
}

.prettierrc

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
11
{
2-
"arrowParens": "avoid"
2+
"tabWidth": 4,
3+
"printWidth": 120,
4+
"semi": true,
5+
"jsxBracketSameLine": true,
6+
"arrowParens": "avoid",
7+
"bracketSpacing": true,
8+
"cursorOffset": -1,
9+
"endOfLine": "lf",
10+
"htmlWhitespaceSensitivity": "css",
11+
"insertPragma": false,
12+
"jsxSingleQuote": false,
13+
"proseWrap": "preserve",
14+
"quoteProps": "as-needed",
15+
"rangeStart": 0,
16+
"requirePragma": false,
17+
"singleQuote": false,
18+
"trailingComma": "es5",
19+
"useTabs": false,
20+
"vueIndentScriptAndStyle": false
321
}

.vscode/settings.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"restoreTerminals.terminals": [
3-
{
4-
"splitTerminals": [
2+
"restoreTerminals.terminals": [
53
{
6-
"name": "start",
7-
"commands": ["npm install", "npm run start"]
4+
"splitTerminals": [
5+
{
6+
"name": "start",
7+
"commands": ["npm install", "npm run start"]
8+
}
9+
]
810
}
9-
]
10-
}
11-
]
11+
]
1212
}

jest.config.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
22
module.exports = {
3-
preset: "ts-jest",
4-
testEnvironment: "jsdom",
5-
setupFiles: ["./jest.setup.js"],
6-
roots: ["src"],
3+
preset: "ts-jest",
4+
testEnvironment: "jsdom",
5+
setupFiles: ["./jest.setup.js"],
6+
roots: ["src"],
77
};

next.config.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
* @type {import('next').NextConfig}
33
*/
44
module.exports = {
5-
webpack: (config, { isServer }) => {
6-
// Fixes npm packages that depend on `fs` module
7-
if (!isServer) {
8-
config.resolve.fallback.fs = false;
9-
}
10-
return config;
11-
},
5+
webpack: (config, { isServer }) => {
6+
// Fixes npm packages that depend on `fs` module
7+
if (!isServer) {
8+
config.resolve.fallback.fs = false;
9+
}
10+
return config;
11+
},
1212
};

0 commit comments

Comments
 (0)