-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #923 from serlo/staging
Deployment
- Loading branch information
Showing
114 changed files
with
629 additions
and
502 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-3.54 KB
.yarn/cache/@bundled-es-modules-cookie-npm-2.0.0-936890fd62-53114eabbe.zip
Binary file not shown.
Binary file added
BIN
+3.83 KB
.yarn/cache/@bundled-es-modules-cookie-npm-2.0.1-fb001bd2b9-4f210f9316.zip
Binary file not shown.
Binary file renamed
BIN
+34 MB
...n-arm64-npm-1.20241011.1-ce73812275-8.zip → ...rwin-64-npm-1.20241106.1-10466c9371-8.zip
Binary file not shown.
Binary file renamed
BIN
+34.2 MB
...rwin-64-npm-1.20241011.1-58b4fcca4d-8.zip → ...n-arm64-npm-1.20241106.1-5b6cd598c0-8.zip
Binary file not shown.
Binary file renamed
BIN
+37.6 MB
...inux-64-npm-1.20241011.1-b83b11151b-8.zip → ...inux-64-npm-1.20241106.1-6a5f3cfb6e-8.zip
Binary file not shown.
Binary file renamed
BIN
+38.6 MB
...x-arm64-npm-1.20241011.1-5d6708f427-8.zip → ...x-arm64-npm-1.20241106.1-654ba9471d-8.zip
Binary file not shown.
Binary file removed
BIN
-267 KB
.yarn/cache/@cloudflare-workers-shared-npm-0.6.0-8926353e2d-100e8d2477.zip
Binary file not shown.
Binary file added
BIN
+269 KB
.yarn/cache/@cloudflare-workers-shared-npm-0.7.1-217a3cb1c3-894fd74202.zip
Binary file not shown.
Binary file removed
BIN
-942 KB
.yarn/cache/@cloudflare-workers-types-npm-4.20241018.0-de8c647282-c754756fb6.zip
Binary file not shown.
Binary file added
BIN
+942 KB
.yarn/cache/@cloudflare-workers-types-npm-4.20241106.0-0536688603-821e8beb9e.zip
Binary file not shown.
Binary file added
BIN
+72.5 KB
.yarn/cache/@eslint-community-regexpp-npm-4.12.1-ef4ab5217e-0d628680e2.zip
Binary file not shown.
Binary file removed
BIN
-66.4 KB
.yarn/cache/@eslint-community-regexpp-npm-4.6.2-0fc083c210-a3c341377b.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+32.5 KB
.yarn/cache/@eslint-config-array-npm-0.18.0-bb4bc4e301-5ff748e178.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+17.5 KB
.yarn/cache/@eslint-object-schema-npm-2.1.4-0546250476-5a03094115.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-16.4 KB
.yarn/cache/@humanwhocodes-config-array-npm-0.11.14-94a02fcc87-861ccce9ea.zip
Binary file not shown.
Binary file removed
BIN
-14.1 KB
.yarn/cache/@humanwhocodes-object-schema-npm-2.0.2-77b42018f9-2fc1150336.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-365 KB
.yarn/cache/@mswjs-interceptors-npm-0.29.1-b5be72ad54-c217f922c6.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+139 KB
...ypes-npm-8.35.0-c68c0a0037-bb9632f9eb.zip → ...ypes-npm-8.36.0-bfc3a7b94c-6b079739f0.zip
Binary file not shown.
Binary file removed
BIN
-67.4 KB
.yarn/cache/@testing-library-jest-dom-npm-6.5.0-fa5d3458cd-c2d14103eb.zip
Binary file not shown.
Binary file added
BIN
+70 KB
.yarn/cache/@testing-library-jest-dom-npm-6.6.3-733adae273-c1dc4260b0.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+823 KB
...ugin-npm-8.12.0-84fc5ba2a7-c5016fca4d.zip → ...ugin-npm-8.13.0-729f68b710-42d5c14abd.zip
Binary file not shown.
Binary file renamed
BIN
+9.12 KB
...rser-npm-8.11.0-1dbc8390a0-b7664933df.zip → ...rser-npm-8.14.0-3444f81ac4-11a2c52efc.zip
Binary file not shown.
Binary file renamed
BIN
+335 KB
...ager-npm-8.11.0-63dee792b4-f36212ac1d.zip → ...ager-npm-8.13.0-e43069aef7-7c80fddb07.zip
Binary file not shown.
Binary file renamed
BIN
+335 KB
...ager-npm-8.12.0-f9e588e4a2-5ea2589cac.zip → ...ager-npm-8.14.0-4e9e7df726-9c4011771e.zip
Binary file not shown.
Binary file renamed
BIN
+59.4 KB
...tils-npm-8.12.0-d58b784293-62ef69626c.zip → ...tils-npm-8.13.0-cc851ffd1e-98e369a49c.zip
Binary file not shown.
Binary file removed
BIN
-33.7 KB
.yarn/cache/@typescript-eslint-types-npm-8.11.0-62c557a0b9-2958f3b5b3.zip
Binary file not shown.
Binary file removed
BIN
-33.7 KB
.yarn/cache/@typescript-eslint-types-npm-8.12.0-e8ae59575b-f3892161c9.zip
Binary file not shown.
Binary file added
BIN
+33.8 KB
.yarn/cache/@typescript-eslint-types-npm-8.13.0-a4356c5098-361489858f.zip
Binary file not shown.
Binary file added
BIN
+33.8 KB
.yarn/cache/@typescript-eslint-types-npm-8.14.0-56131dda9e-032f1adb48.zip
Binary file not shown.
Binary file renamed
BIN
+185 KB
...tree-npm-8.11.0-2b184d9237-03ae4740d4.zip → ...tree-npm-8.13.0-59e9fc52dc-43d33fa341.zip
Binary file not shown.
Binary file renamed
BIN
+185 KB
...tree-npm-8.12.0-ec4a45b8a7-1c968ec73a.zip → ...tree-npm-8.14.0-2681614eed-9412bd801f.zip
Binary file not shown.
Binary file renamed
BIN
+115 KB
...tils-npm-8.12.0-e7f6bcc10a-d45c89cfc7.zip → ...tils-npm-8.13.0-033f0cf809-6d6ec83c48.zip
Binary file not shown.
Binary file removed
BIN
-9.75 KB
.yarn/cache/@typescript-eslint-visitor-keys-npm-8.11.0-b52c2f749c-29057642bf.zip
Binary file not shown.
Binary file removed
BIN
-9.75 KB
.yarn/cache/@typescript-eslint-visitor-keys-npm-8.12.0-20aa4e1884-7897a66ba0.zip
Binary file not shown.
Binary file added
BIN
+9.75 KB
.yarn/cache/@typescript-eslint-visitor-keys-npm-8.13.0-1f794557a7-eeefa461db.zip
Binary file not shown.
Binary file added
BIN
+9.75 KB
.yarn/cache/@typescript-eslint-visitor-keys-npm-8.14.0-c83f7a80b3-5f1279bf7c.zip
Binary file not shown.
Binary file removed
BIN
-13.9 KB
.yarn/cache/@ungap-structured-clone-npm-1.2.0-648f0b82e0-4f656b7b46.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+4.05 MB
...cript-npm-5.6.2-f0e21b35f9-48777e1dab.zip → ...cript-npm-5.6.3-cc9b3687b0-ba302f8822.zip
Binary file not shown.
Binary file renamed
BIN
+4.05 MB
...ypescript-patch-9a2b00cdc2-c084ee1ab8.zip → ...ypescript-patch-ff7ec94024-ade87bce23.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+394 KB
...-125958-e8ea22f-a4b3593f12-c17821aeb3.zip → ...-111401-d4156ac-43d233863a-57ceabd99a.zip
Binary file not shown.
Binary file renamed
BIN
+1.09 MB
...pm-1.20241011.1-983cf70ed5-7732e96be4.zip → ...pm-1.20241106.1-7a75420cc4-51ff7e6b3b.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
import typescriptEslint from '@typescript-eslint/eslint-plugin' | ||
import _import from 'eslint-plugin-import' | ||
import react from 'eslint-plugin-react' | ||
import _deprecation from 'eslint-plugin-deprecation' | ||
import { fixupPluginRules } from '@eslint/compat' | ||
import globals from 'globals' | ||
import tsParser from '@typescript-eslint/parser' | ||
import path from 'node:path' | ||
import { fileURLToPath } from 'node:url' | ||
import js from '@eslint/js' | ||
import { FlatCompat } from '@eslint/eslintrc' | ||
|
||
const __filename = fileURLToPath(import.meta.url) | ||
const __dirname = path.dirname(__filename) | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all, | ||
}) | ||
|
||
export default [ | ||
...compat.extends( | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended-requiring-type-checking', | ||
'plugin:react/recommended', | ||
'prettier', | ||
), | ||
{ | ||
plugins: { | ||
'@typescript-eslint': typescriptEslint, | ||
import: fixupPluginRules(_import), | ||
react, | ||
deprecation: fixupPluginRules(_deprecation), | ||
}, | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.jest, | ||
...globals.node, | ||
}, | ||
|
||
parser: tsParser, | ||
ecmaVersion: 5, | ||
sourceType: 'commonjs', | ||
|
||
parserOptions: { | ||
project: ['tsconfig.json'], | ||
}, | ||
}, | ||
|
||
settings: { | ||
react: { | ||
pragma: 'h', | ||
version: '16.8', | ||
}, | ||
}, | ||
|
||
rules: { | ||
'no-duplicate-imports': 'error', | ||
'no-unused-vars': 'off', | ||
'no-console': 'error', | ||
'@typescript-eslint/no-unsafe-argument': 'error', | ||
'@typescript-eslint/ban-ts-comment': 'warn', | ||
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'], | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/no-empty-function': 'off', | ||
'@typescript-eslint/no-extraneous-class': 'error', | ||
'@typescript-eslint/no-parameter-properties': 'off', | ||
'@typescript-eslint/no-this-alias': 'warn', | ||
|
||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
argsIgnorePattern: '^_', | ||
}, | ||
], | ||
|
||
'@typescript-eslint/no-use-before-define': [ | ||
'error', | ||
{ | ||
classes: false, | ||
functions: false, | ||
typedefs: false, | ||
}, | ||
], | ||
|
||
'@typescript-eslint/no-useless-constructor': 'error', | ||
'@typescript-eslint/prefer-ts-expect-error': 'error', | ||
'deprecation/deprecation': 'warn', | ||
'import/export': 'error', | ||
|
||
'import/extensions': [ | ||
'error', | ||
'never', | ||
{ | ||
json: 'always', | ||
}, | ||
], | ||
|
||
'import/first': 'error', | ||
'import/newline-after-import': 'error', | ||
'import/no-absolute-path': 'error', | ||
'import/no-commonjs': 'error', | ||
'import/no-cycle': 'error', | ||
'import/no-default-export': 'error', | ||
'import/prefer-default-export': 'off', | ||
'import/no-deprecated': 'error', | ||
|
||
'import/no-extraneous-dependencies': [ | ||
'error', | ||
{ | ||
devDependencies: [ | ||
'__stories__/**/*', | ||
'__tests-pacts__/**/*', | ||
'__tests__/**/*', | ||
'scripts/**/*', | ||
'jest.setup.ts', | ||
'webpack.config.js', | ||
], | ||
|
||
optionalDependencies: false, | ||
}, | ||
], | ||
|
||
'import/no-internal-modules': [ | ||
'error', | ||
{ | ||
allow: ['msw/node'], | ||
}, | ||
], | ||
|
||
'import/no-mutable-exports': 'error', | ||
'import/no-self-import': 'error', | ||
'import/no-unassigned-import': 'error', | ||
|
||
'import/no-useless-path-segments': [ | ||
'error', | ||
{ | ||
noUselessIndex: true, | ||
}, | ||
], | ||
|
||
'import/order': [ | ||
'error', | ||
{ | ||
alphabetize: { | ||
order: 'asc', | ||
}, | ||
|
||
groups: [ | ||
['builtin', 'external', 'internal'], | ||
['parent', 'sibling', 'index', 'unknown'], | ||
], | ||
|
||
'newlines-between': 'always', | ||
}, | ||
], | ||
|
||
'react/jsx-boolean-value': 'error', | ||
'react/jsx-curly-brace-presence': 'error', | ||
'react/jsx-fragments': ['error', 'syntax'], | ||
'react/prop-types': 'off', | ||
}, | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,35 +36,39 @@ | |
"toucan-js": "^4.0.0" | ||
}, | ||
"devDependencies": { | ||
"@cloudflare/workers-types": "^4.20241018.0", | ||
"@cloudflare/workers-types": "^4.20241106.0", | ||
"@eslint/compat": "^1.2.2", | ||
"@eslint/eslintrc": "^3.1.0", | ||
"@eslint/js": "^9.14.0", | ||
"@iarna/toml": "^2.2.5", | ||
"@jest/globals": "^29.7.0", | ||
"@sentry/types": "^8.35.0", | ||
"@testing-library/jest-dom": "^6.5.0", | ||
"@sentry/types": "^8.36.0", | ||
"@testing-library/jest-dom": "^6.6.3", | ||
"@types/iarna__toml": "^2.0.5", | ||
"@types/jest": "^29.5.14", | ||
"@typescript-eslint/eslint-plugin": "^8.12.0", | ||
"@typescript-eslint/parser": "^8.11.0", | ||
"@typescript-eslint/eslint-plugin": "^8.13.0", | ||
"@typescript-eslint/parser": "^8.14.0", | ||
"cross-env": "^7.0.3", | ||
"depcheck": "^1.4.7", | ||
"eslint": "^8.57.0", | ||
"eslint": "^9.14.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-deprecation": "^3.0.0", | ||
"eslint-plugin-import": "^2.31.0", | ||
"eslint-plugin-react": "^7.37.2", | ||
"globals": "^15.12.0", | ||
"jest": "^29.7.0", | ||
"msw": "^2.4.3", | ||
"msw": "^2.6.4", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^3.3.3", | ||
"prettier-plugin-packagejson": "^2.5.3", | ||
"prettier-plugin-sh": "^0.14.0", | ||
"ts-jest": "^29.2.5", | ||
"ts-unused-exports": "^10.1.0", | ||
"typescript": "^5.6.2", | ||
"wrangler": "^3.80.3" | ||
"typescript": "^5.6.3", | ||
"wrangler": "^3.86.1" | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": "^18.0.0" | ||
"node": "^20.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.