Skip to content

Commit ebaf59d

Browse files
refactor(eslint): update @squonk/eslint-config-squonk to v2 and fix errors (#1334)
1 parent 138bdd7 commit ebaf59d

File tree

305 files changed

+2521
-1945
lines changed

Some content is hidden

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

305 files changed

+2521
-1945
lines changed

.devcontainer/devcontainer.json

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
33
{
4-
"name": "Node.js",
5-
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/javascript-node:0-18",
7-
"features": {
8-
"ghcr.io/devcontainers-contrib/features/pnpm:2": {
9-
"version": "8.15.4"
10-
}
11-
},
12-
// Features to add to the dev container. More info: https://containers.dev/features.
13-
// "features": {},
14-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
15-
// "forwardPorts": [],
16-
// Use 'postCreateCommand' to run commands after the container is created.
17-
"postCreateCommand": "pnpm i && pnpm exec playwright install-deps && pnpm exec playwright install",
18-
// Configure tool-specific properties.
19-
"customizations": {
20-
// Configure properties specific to VS Code.
21-
"vscode": {
22-
// Add the IDs of extensions you want installed when the container is created.
23-
"extensions": [
24-
"dbaeumer.vscode-eslint",
25-
"vivaxy.vscode-conventional-commits",
26-
"streetsidesoftware.code-spell-checker",
27-
"unifiedjs.vscode-mdx"
28-
]
29-
}
30-
},
31-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
32-
// "remoteUser": "root"
33-
"secrets": {
34-
"DATA_MANAGER_API_SERVER": {
35-
"description": "URL the data manager API"
36-
},
37-
"ACCOUNT_SERVER_API_SERVER": {
38-
"description": "URL the account server API"
39-
},
40-
"KEYCLOAK_URL": {
41-
"description": "URL to Keycloak Realm used for Auth"
42-
},
43-
"AUTH0_CLIENT_ID": {
44-
"description": "Client ID for Keycloak Client"
45-
},
46-
"AUTH0_CLIENT_SECRET": {
47-
"description": "Secret corresponding to Client ID for Keycloak Client"
48-
}
49-
},
50-
"containerEnv": {
51-
"BASE_URL": "${localEnv:CODESPACE_NAME}-3000.${localEnv:GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}",
52-
"AUTH0_SECRET": "LONG_RANDOM_VALUE"
53-
}
4+
"name": "Node.js",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/javascript-node:0-18",
7+
"features": {
8+
"ghcr.io/devcontainers-contrib/features/pnpm:2": {
9+
"version": "8.15.4"
10+
}
11+
},
12+
// Features to add to the dev container. More info: https://containers.dev/features.
13+
// "features": {},
14+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
15+
// "forwardPorts": [],
16+
// Use 'postCreateCommand' to run commands after the container is created.
17+
"postCreateCommand": "pnpm i && pnpm exec playwright install-deps && pnpm exec playwright install",
18+
// Configure tool-specific properties.
19+
"customizations": {
20+
// Configure properties specific to VS Code.
21+
"vscode": {
22+
// Add the IDs of extensions you want installed when the container is created.
23+
"extensions": [
24+
"dbaeumer.vscode-eslint",
25+
"vivaxy.vscode-conventional-commits",
26+
"streetsidesoftware.code-spell-checker",
27+
"unifiedjs.vscode-mdx"
28+
]
29+
}
30+
},
31+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
32+
// "remoteUser": "root"
33+
"secrets": {
34+
"DATA_MANAGER_API_SERVER": {
35+
"description": "URL the data manager API"
36+
},
37+
"ACCOUNT_SERVER_API_SERVER": {
38+
"description": "URL the account server API"
39+
},
40+
"KEYCLOAK_URL": {
41+
"description": "URL to Keycloak Realm used for Auth"
42+
},
43+
"AUTH0_CLIENT_ID": {
44+
"description": "Client ID for Keycloak Client"
45+
},
46+
"AUTH0_CLIENT_SECRET": {
47+
"description": "Secret corresponding to Client ID for Keycloak Client"
48+
}
49+
},
50+
"containerEnv": {
51+
"BASE_URL": "${localEnv:CODESPACE_NAME}-3000.${localEnv:GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}",
52+
"AUTH0_SECRET": "LONG_RANDOM_VALUE"
53+
}
5454
}

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 10 deletions
This file was deleted.
File renamed without changes.

.github/renovate.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,13 @@
1212
":semanticCommitTypeAll(chore)",
1313
":disableRateLimiting"
1414
],
15-
"labels": [
16-
"dependencies"
17-
],
15+
"labels": ["dependencies"],
1816
"constraints": {
1917
"pnpm": "8"
2018
},
2119
"packageRules": [
2220
{
23-
"excludePackageNames": [
24-
"nextjs-routes"
25-
]
21+
"excludePackageNames": ["nextjs-routes"]
2622
}
2723
]
2824
}

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ yarn.lock
44
package-lock.json
55
pnpm-lock.yaml
66
public
7+
.sentryclirc
8+
*.yml
9+
*.yaml
10+
CHANGELOG.md

.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"trailingComma": "all",
3+
"singleQuote": false,
4+
"printWidth": 100,
5+
"semi": true,
6+
"arrowParens": "always",
7+
"bracketSpacing": true,
8+
"bracketSameLine": false,
9+
"useTabs": false,
10+
"tabWidth": 2
11+
}

.vscode/components.code-snippets

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
{
2-
"childcomp": {
3-
"prefix": "childcomp",
4-
"description": "React functional component with FC component type and props interface",
5-
"body": [
6-
"import type { FC } from 'react';",
7-
"",
8-
"export interface ${TM_FILENAME_BASE}Props {",
9-
" $1",
10-
"}",
11-
"",
12-
"export const ${TM_FILENAME_BASE}: FC<${TM_FILENAME_BASE}Props> = ({ $2 }) => {",
13-
" return (",
14-
" <>",
15-
" $3",
16-
" </>",
17-
" );",
18-
"};",
19-
""
20-
]
21-
},
22-
"comp": {
23-
"prefix": "comp",
24-
"description": "React functional component with props",
25-
"body": [
26-
"export interface ${TM_FILENAME_BASE}Props {",
27-
" $1",
28-
"}",
29-
"",
30-
"export const ${TM_FILENAME_BASE} = ({ $2 }: ${TM_FILENAME_BASE}Props) => {",
31-
" return (",
32-
" <>",
33-
" $3",
34-
" </>",
35-
" );",
36-
"};",
37-
""
38-
]
39-
}
2+
"childcomp": {
3+
"prefix": "childcomp",
4+
"description": "React functional component with FC component type and props interface",
5+
"body": [
6+
"import type { FC } from 'react';",
7+
"",
8+
"export interface ${TM_FILENAME_BASE}Props {",
9+
" $1",
10+
"}",
11+
"",
12+
"export const ${TM_FILENAME_BASE}: FC<${TM_FILENAME_BASE}Props> = ({ $2 }) => {",
13+
" return (",
14+
" <>",
15+
" $3",
16+
" </>",
17+
" );",
18+
"};",
19+
"",
20+
],
21+
},
22+
"comp": {
23+
"prefix": "comp",
24+
"description": "React functional component with props",
25+
"body": [
26+
"export interface ${TM_FILENAME_BASE}Props {",
27+
" $1",
28+
"}",
29+
"",
30+
"export const ${TM_FILENAME_BASE} = ({ $2 }: ${TM_FILENAME_BASE}Props) => {",
31+
" return (",
32+
" <>",
33+
" $3",
34+
" </>",
35+
" );",
36+
"};",
37+
"",
38+
],
39+
},
4040
}

.vscode/launch.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
"type": "node",
66
"request": "attach",
77
"name": "Launch Program",
8-
"skipFiles": [
9-
"<node_internals>/**"
10-
],
8+
"skipFiles": ["<node_internals>/**"],
119
"port": 9229
1210
},
1311
{

.vscode/settings.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
11
{
22
"typescript.tsdk": "node_modules/typescript/lib",
33
"editor.tabSize": 2,
4-
"eslint.format.enable": true,
54
"[typescriptreact][typescript][javascript]": {
6-
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
7-
"editor.codeActionsOnSave": {
8-
"source.fixAll.eslint": "explicit"
9-
},
10-
"editor.rulers": [
11-
100
12-
],
5+
"editor.rulers": [100]
136
},
147
"javascript.preferences.importModuleSpecifier": "relative",
158
"typescript.preferences.importModuleSpecifier": "relative",
16-
"playwright.reuseBrowser": false,
17-
"eslint.options": {
18-
"resolvePluginsRelativeTo": "../../libs/eslint-config"
19-
},
9+
"playwright.reuseBrowser": false
2010
}

0 commit comments

Comments
 (0)