Skip to content

Commit

Permalink
Extend Prettier configs &Unify Json formatting
Browse files Browse the repository at this point in the history
* Set tab width on json files to 2, because some of json files have tab
  width of 2 and the rest is having tab width of 4
* Apply prettier formatting to all json files in the repo
  • Loading branch information
AmmarAbouZor committed Dec 9, 2024
1 parent d355970 commit 2924f32
Show file tree
Hide file tree
Showing 31 changed files with 934 additions and 987 deletions.
11 changes: 10 additions & 1 deletion application/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,14 @@
"trailingComma": "all",
"tabWidth": 4,
"printWidth": 100,
"singleQuote": true
"singleQuote": true,
"overrides": [
{
"files": ["*.json", ".prettierrc"],
"options": {
"tabWidth": 2,
"printWidth": 60
}
}
]
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[
{
"path": "a.log",
"offset": 0,
"format": "MM-DD-YYYY hh:mm:ss.s",
"tag": "A-TAG"
},
{
"path": "b.log",
"offset": 0,
"format": "MM-DD-YYYY hh:mm:ss.s",
"tag": "B-TAG"
}
{
"path": "a.log",
"offset": 0,
"format": "MM-DD-YYYY hh:mm:ss.s",
"tag": "A-TAG"
},
{
"path": "b.log",
"offset": 0,
"format": "MM-DD-YYYY hh:mm:ss.s",
"tag": "B-TAG"
}
]
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[
{
"path": "a.log",
"offset": 0,
"format": "MM-DD-YYYY hh:mm:ss.s",
"tag": "A-TAG"
},
{
"path": "b.log",
"offset": 0,
"format": "MM-DD-YYYY hh:mm:ss.s",
"tag": "B-TAG"
}
{
"path": "a.log",
"offset": 0,
"format": "MM-DD-YYYY hh:mm:ss.s",
"tag": "A-TAG"
},
{
"path": "b.log",
"offset": 0,
"format": "MM-DD-YYYY hh:mm:ss.s",
"tag": "B-TAG"
}
]
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[
{
"path": "a.log",
"offset": 0,
"format": "YYYY-MM-DDThh:mm:ss.s TZD",
"tag": "A-TAG"
},
{
"path": "b.log",
"offset": 0,
"tag": "B-TAG",
"format": "YYYY-MM-DDThh:mm:ss.s TZD"
}
{
"path": "a.log",
"offset": 0,
"format": "YYYY-MM-DDThh:mm:ss.s TZD",
"tag": "A-TAG"
},
{
"path": "b.log",
"offset": 0,
"tag": "B-TAG",
"format": "YYYY-MM-DDThh:mm:ss.s TZD"
}
]
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[
{
"path": "a.log",
"offset": 0,
"format": "MM-DD-YYYY hh:mm:ss.s",
"tag": "A-TAG"
},
{
"path": "b.log",
"offset": 0,
"format": "MM-DD-YYYY hh:mm:ss.s",
"tag": "B-TAG"
}
{
"path": "a.log",
"offset": 0,
"format": "MM-DD-YYYY hh:mm:ss.s",
"tag": "A-TAG"
},
{
"path": "b.log",
"offset": 0,
"format": "MM-DD-YYYY hh:mm:ss.s",
"tag": "B-TAG"
}
]
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[
{
"path": "a.log",
"offset": 0,
"format": "YYYY-MM-DD_hh:mm:ss.s",
"tag": "A-TAG"
},
{
"path": "b.log",
"offset": 0,
"format": "YYYY-MM-DD_hh:mm:ss.s",
"tag": "B-TAG"
}
{
"path": "a.log",
"offset": 0,
"format": "YYYY-MM-DD_hh:mm:ss.s",
"tag": "A-TAG"
},
{
"path": "b.log",
"offset": 0,
"format": "YYYY-MM-DD_hh:mm:ss.s",
"tag": "B-TAG"
}
]
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[
{
"path": "a.log",
"offset": 0,
"format": "MM-DD-YYYY hh:mm:ss.s",
"tag": "A-TAG"
},
{
"path": "b.log",
"offset": 0,
"format": "MM-DD-YYYY hh:mm:ss.s",
"tag": "B-TAG"
}
{
"path": "a.log",
"offset": 0,
"format": "MM-DD-YYYY hh:mm:ss.s",
"tag": "A-TAG"
},
{
"path": "b.log",
"offset": 0,
"format": "MM-DD-YYYY hh:mm:ss.s",
"tag": "B-TAG"
}
]
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[
{
"path": "a.log",
"offset": 0,
"format": "MM-DD-YYYY hh:mm:ss.s",
"tag": "A-TAG"
},
{
"path": "b.log",
"offset": 0,
"tag": "B-TAG",
"format": "MM-DD hh:mm:ss.s TZD",
"year": 2019
}
{
"path": "a.log",
"offset": 0,
"format": "MM-DD-YYYY hh:mm:ss.s",
"tag": "A-TAG"
},
{
"path": "b.log",
"offset": 0,
"tag": "B-TAG",
"format": "MM-DD hh:mm:ss.s TZD",
"year": 2019
}
]
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[
{
"path": "a.log",
"offset": 0,
"format": "MM-DD hh:mm:ss.s TZD",
"tag": "A-TAG",
"year": 2019
},
{
"path": "b.log",
"offset": 0,
"tag": "B-TAG",
"format": "MM-DD hh:mm:ss.s TZD",
"year": 2019
}
{
"path": "a.log",
"offset": 0,
"format": "MM-DD hh:mm:ss.s TZD",
"tag": "A-TAG",
"year": 2019
},
{
"path": "b.log",
"offset": 0,
"tag": "B-TAG",
"format": "MM-DD hh:mm:ss.s TZD",
"year": 2019
}
]
50 changes: 27 additions & 23 deletions application/apps/rustcore/ts-bindings/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"ignorePatterns": ["dist/**", "spec/**"],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"ignorePatterns":["dist/**", "spec/**"],
"rules": {
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-this-alias": "off"
}
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-this-alias": "off"
}
}
32 changes: 16 additions & 16 deletions application/apps/rustcore/ts-bindings/launch.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jasmine Current File",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
"program": "${workspaceFolder}/node_modules/.bin/jasmine",
"args": ["${file}"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jasmine Current File",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
"program": "${workspaceFolder}/node_modules/.bin/jasmine",
"args": ["${file}"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}
Loading

0 comments on commit 2924f32

Please sign in to comment.