Skip to content

Commit

Permalink
style: add json formatting (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsndr authored Sep 9, 2023
1 parent 553dd0a commit 17ed02c
Show file tree
Hide file tree
Showing 6 changed files with 377 additions and 136 deletions.
56 changes: 28 additions & 28 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
{
"name": "Yuow",
"dockerComposeFile": "docker-compose.yml",
"workspaceFolder": "/workspace",
"service": "app",
"remoteUser": "node",
"waitFor": "postCreateCommand",
"postCreateCommand": "sudo chown node node_modules && npm ci && chmod +x ./node_modules/husky/lib/bin.js",
"postAttachCommand": "git config core.fileMode false && git config --global --add safe.directory ${containerWorkspaceFolder}",
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint",
"vivaxy.vscode-conventional-commits",
"firsttris.vscode-jest-runner",
"redhat.vscode-yaml",
"Gruntfuggly.todo-tree",
"eamodio.gitlens"
],
"settings": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"eslint.format.enable": true,
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
}
"name": "Yuow",
"dockerComposeFile": "docker-compose.yml",
"workspaceFolder": "/workspace",
"service": "app",
"remoteUser": "node",
"waitFor": "postCreateCommand",
"postCreateCommand": "sudo chown node node_modules && npm ci && chmod +x ./node_modules/husky/lib/bin.js",
"postAttachCommand": "git config core.fileMode false && git config --global --add safe.directory ${containerWorkspaceFolder}",
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint",
"vivaxy.vscode-conventional-commits",
"firsttris.vscode-jest-runner",
"redhat.vscode-yaml",
"Gruntfuggly.todo-tree",
"eamodio.gitlens"
],
"settings": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"eslint.format.enable": true,
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
}
}
}
}
}
}
7 changes: 6 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
module.exports = {
root: true,
plugins: ['json-format'],
extends: [
'eslint:recommended',
'plugin:prettier/recommended',
'plugin:import/recommended',
'plugin:eslint-comments/recommended',
'plugin:json/recommended',
],
ignorePatterns: [
'**/dist/*',
'/coverage',
'node_modules',
'!.vscode',
'package-lock.json',
'!.devcontainer',
],
env: {
node: true,
},
settings: {
'json/sort-package-json': false,
'json/json-with-comments-files': [],
},
overrides: [
{
files: ['*.ts'],
Expand Down
Loading

0 comments on commit 17ed02c

Please sign in to comment.