Skip to content

Commit 0330955

Browse files
authored
Merge pull request #88 from MOV-AI/FP-2920-configure-husky-lint-staged-and-prettier
FP 2920 configure husky lint staged and prettier
2 parents 634520e + 16a4782 commit 0330955

22 files changed

+692
-214
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@
1919
},
2020
"postCreateCommand": "bash -i -c 'nvm install $(cat .nvmrc) -y && nvm use && corepack enable && pnpm clean && pnpm install'",
2121
"remoteUser": "node",
22-
"runArgs": [
23-
"--network=host"
24-
],
22+
"runArgs": ["--network=host"],
2523
"mounts": [
2624
"type=bind,src=${localEnv:HOME}/.npmrc,dst=/home/node/.npmrc",
2725
"type=bind,src=${localEnv:HOME}/.ssh,dst=/home/node/.ssh",
2826
"type=bind,src=${localEnv:HOME}/movai/src/feapps,dst=/workspaces/"
2927
]
30-
}
28+
}

.github/workflows/TestOnPR.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
uses: MOV-AI/.github/.github/workflows/[email protected]
1313
with:
1414
deploy: "false"
15+
run_lint_staged: "true"
1516
run_tests: "true"
1617
use_nvmrc: "true"
1718
pm: "pnpm"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ typings/
5252

5353
# Optional npm cache directory
5454
.npm
55+
.pnpm-store
5556

5657
# Optional eslint cache
5758
.eslintcache

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm exec lint-staged

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package.json
2+
pnpm-lock.yaml

.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

.storybook/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
resolve: {
1212
alias: {
1313
vscode: require.resolve(
14-
"@codingame/monaco-languageclient/lib/vscode-compatibility"
14+
"@codingame/monaco-languageclient/lib/vscode-compatibility",
1515
),
1616
},
1717
extensions: [".js", ".json", ".ttf"],
@@ -39,5 +39,5 @@ module.exports = {
3939
core: {
4040
builder: "webpack5",
4141
},
42-
addons: ['storybook-addon-mock/register'],
42+
addons: ["storybook-addon-mock/register"],
4343
};

.storybook/middleware.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ module.exports = function (router) {
2020
ws: true,
2121
logLevel: "error",
2222
secure: false,
23-
}
24-
)
23+
},
24+
),
2525
);
2626

2727
// to test language server locally
@@ -33,7 +33,7 @@ module.exports = function (router) {
3333
logLevel: "error",
3434
secure: false,
3535
changeOrigin: true,
36-
})
36+
}),
3737
);
3838

3939
// using movai-flow dev

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["esbenp.prettier-vscode"]
3+
}

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"prettier.configPath": ".prettierrc.json",
3+
"editor.formatOnSave": true
4+
}

0 commit comments

Comments
 (0)