Skip to content

Commit

Permalink
style: Fix whitespace and quotes formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall committed Nov 20, 2023
1 parent 6f404c4 commit 166946b
Show file tree
Hide file tree
Showing 11 changed files with 13,283 additions and 13,277 deletions.
14 changes: 7 additions & 7 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ services:
# Update this to the name of the service you want to work with in your docker-compose.yml file
web:
# If you want add a non-root user to your Dockerfile, you can use the "remoteUser"
# property in devcontainer.json to cause VS Code its sub-processes (terminals, tasks,
# debugging) to execute as the user. Uncomment the next line if you want the entire
# container to run as this user instead. Note that, on Linux, you may need to
# ensure the UID and GID of the container user you create matches your local user.
# property in devcontainer.json to cause VS Code its sub-processes (terminals, tasks,
# debugging) to execute as the user. Uncomment the next line if you want the entire
# container to run as this user instead. Note that, on Linux, you may need to
# ensure the UID and GID of the container user you create matches your local user.
# See https://aka.ms/vscode-remote/containers/non-root for details.
#
# user: vscode

# Uncomment if you want to override the service's Dockerfile to one in the .devcontainer
# folder. Note that the path of the Dockerfile and context is relative to the *primary*
# Uncomment if you want to override the service's Dockerfile to one in the .devcontainer
# folder. Note that the path of the Dockerfile and context is relative to the *primary*
# docker-compose.yml file (the first in the devcontainer.json "dockerComposeFile"
# array). The sample below assumes your primary file is in the root of your project.
#
Expand All @@ -31,7 +31,7 @@ services:
- .:/workspace:cached

# Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker-compose for details.
# - /var/run/docker.sock:/var/run/docker.sock
# - /var/run/docker.sock:/var/run/docker.sock

# Uncomment the next four lines if you will use a ptrace-based debugger like C++, Go, and Rust.
# cap_add:
Expand Down
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ indent_style = tab
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{md,yml,yaml}]
indent_style = space
342 changes: 171 additions & 171 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,174 +4,174 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jsdoc/recommended-typescript"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"jsdoc"
],
"rules": {
//https://github.com/typescript-eslint/typescript-eslint/issues/1824, indent is therefore turned off and we use typescript-eslint/indent instead
"indent": [
"off"
],
"@typescript-eslint/indent": [
"error",
"tab",
{
"SwitchCase": 1
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"no-trailing-spaces": [
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single",
{
"avoidEscape": true
}
],
"max-len": [
"error",
{
"code": 150,
"tabWidth": 0
}
],
"comma-dangle": [
"error",
"never"
],
"arrow-parens": [
"error",
"as-needed"
]
},
"overrides": [
{
// TODO: Remove this override once these components have been converted to use hooks
"files": [
"src/client/app/containers/admin/CreateUserContainer.tsx",
"src/client/app/containers/csv/UploadCSVContainer.tsx"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
// only to be used when declaring props as {}.
// is used in conjunction with overrides
// https://eslint.org/docs/user-guide/configuring/configuration-files#configuration-based-on-glob-patterns
"@typescript-eslint/ban-types": [
"error",
{
"extendDefaults": true,
"types": {
"{}": false
}
}
],
// same rules need to be added.
"indent": [
"off"
],
"@typescript-eslint/indent": [
"error",
"tab",
{
"SwitchCase": 1
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"no-trailing-spaces": [
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single",
{
"avoidEscape": true
}
],
"max-len": [
"error",
{
"code": 150,
"tabWidth": 0
}
],
"comma-dangle": [
"error",
"never"
],
"arrow-parens": [
"error",
"as-needed"
]
}
},
{
// disable jsdoc requirement for reducers and actions
"files": [
"src/client/app/reducers/*.ts",
"src/client/app/actions/*.ts"
],
"rules": {
"jsdoc/require-jsdoc": "off",
"jsdoc/require-returns": "off"
}
},
{
// disable jsdoc for containers separately
// jsdoc makes sense for containers but we are working on removing them from the codebase
// TODO: Remove this override once containers have been converted
"files": [
"src/client/app/containers/*/*",
"src/client/app/containers/*"
],
"rules": {
"jsdoc/require-jsdoc": "off",
"jsdoc/require-returns": "off",
"jsdoc/require-param": "off"
}
}
]
}
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jsdoc/recommended-typescript"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"jsdoc"
],
"rules": {
//https://github.com/typescript-eslint/typescript-eslint/issues/1824, indent is therefore turned off and we use typescript-eslint/indent instead
"indent": [
"off"
],
"@typescript-eslint/indent": [
"error",
"tab",
{
"SwitchCase": 1
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"no-trailing-spaces": [
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single",
{
"avoidEscape": true
}
],
"max-len": [
"error",
{
"code": 150,
"tabWidth": 0
}
],
"comma-dangle": [
"error",
"never"
],
"arrow-parens": [
"error",
"as-needed"
]
},
"overrides": [
{
// TODO: Remove this override once these components have been converted to use hooks
"files": [
"src/client/app/containers/admin/CreateUserContainer.tsx",
"src/client/app/containers/csv/UploadCSVContainer.tsx"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
// only to be used when declaring props as {}.
// is used in conjunction with overrides
// https://eslint.org/docs/user-guide/configuring/configuration-files#configuration-based-on-glob-patterns
"@typescript-eslint/ban-types": [
"error",
{
"extendDefaults": true,
"types": {
"{}": false
}
}
],
// same rules need to be added.
"indent": [
"off"
],
"@typescript-eslint/indent": [
"error",
"tab",
{
"SwitchCase": 1
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"no-trailing-spaces": [
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single",
{
"avoidEscape": true
}
],
"max-len": [
"error",
{
"code": 150,
"tabWidth": 0
}
],
"comma-dangle": [
"error",
"never"
],
"arrow-parens": [
"error",
"as-needed"
]
}
},
{
// disable jsdoc requirement for reducers and actions
"files": [
"src/client/app/reducers/*.ts",
"src/client/app/actions/*.ts"
],
"rules": {
"jsdoc/require-jsdoc": "off",
"jsdoc/require-returns": "off"
}
},
{
// disable jsdoc for containers separately
// jsdoc makes sense for containers but we are working on removing them from the codebase
// TODO: Remove this override once containers have been converted
"files": [
"src/client/app/containers/*/*",
"src/client/app/containers/*"
],
"rules": {
"jsdoc/require-jsdoc": "off",
"jsdoc/require-returns": "off",
"jsdoc/require-param": "off"
}
}
]
}
Loading

0 comments on commit 166946b

Please sign in to comment.