{"pageProps":{"code":{"gitlab-ci_lint.yml":{"name":"gitlab-ci_lint.yml","content":"image: comp1531/basic:latest\n\ncache:\n  paths:\n    - node_modules\n    \nstages:\n  - checks\n\ntesting:\n  stage: checks\n  script:\n    - npm run test\n\ntypecheck:\n  stage: checks\n  script:\n    - npm run tsc\n\nlinting:\n  stage: checks\n  script:\n    - npm run lint\n","path":"code/1531/24T1/3.4/gitlab-ci_lint.yml","fileext":"yml"},"jest.config.js":{"name":"jest.config.js","content":"module.exports = {\n  preset: 'ts-jest',\n  testEnvironment: 'node',\n  maxWorkers: 1,\n};\n","path":"code/1531/24T1/3.4/jest.config.js","fileext":"js"},"package.json":{"name":"package.json","content":"{\n  \"name\": \"env2\",\n  \"version\": \"1.0.0\",\n  \"description\": \"\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"test\": \"jest src\",\n    \"tsc\": \"tsc --noImplicitAny\",\n    \"lint\": \"eslint src/**.ts\",\n    \"lint-fix\": \"eslint --fix src/**.ts\",\n    \"ts-node\": \"ts-node\",\n    \"jest\": \"jest\",\n    \"nodemon\": \"nodemon\",\n    \"ts-node-coverage\": \"nyc --reporter=text --reporter=lcov ts-node\"\n  },\n  \"author\": \"\",\n  \"license\": \"ISC\",\n  \"devDependencies\": {\n    \"@types/express\": \"^4.17.13\",\n    \"@types/http-errors\": \"^1.8.2\",\n    \"@types/jest\": \"^27.5.0\",\n    \"@types/node\": \"^17.0.27\",\n    \"@types/prompt-sync\": \"^4.1.1\",\n    \"@typescript-eslint/eslint-plugin\": \"^5.21.0\",\n    \"@typescript-eslint/parser\": \"^5.21.0\",\n    \"eslint\": \"^8.14.0\",\n    \"eslint-plugin-jest\": \"^26.1.5\",\n    \"jest\": \"^28.1.0\",\n    \"middleware-http-errors\": \"^0.1.0\",\n    \"nodemon\": \"^2.0.16\",\n    \"nyc\": \"^15.1.0\",\n    \"ts-jest\": \"^28.0.2\",\n    \"typescript\": \"^4.6.3\"\n  },\n  \"dependencies\": {\n    \"express\": \"^4.18.0\",\n    \"http-errors\": \"^2.0.0\",\n    \"sync-request\": \"^6.1.0\",\n    \"ts-node\": \"^10.7.0\"\n  }\n}\n","path":"code/1531/24T1/3.4/package.json","fileext":"json"},"style_bad.js":{"name":"style_bad.js","content":"/* eslint-disable */\nfunction a(b,c){\n let d = '';\n  for\n   (let i = 0; i < b; i++) \nd += c;\n return d;\n}\nconsole.log(a(5, 'hello '));\n","path":"code/1531/24T1/3.4/style_bad.js","fileext":"js"},"style_good.js":{"name":"style_good.js","content":"function manyString(repeat, str) {\n  let outString = '';\n  for (let i = 0; i < repeat; i++) {\n    outString += str;\n  }\n  return outString;\n}\nconsole.log(manyString(5, 'hello '));\n","path":"code/1531/24T1/3.4/style_good.js","fileext":"js"},"tsconfig.json":{"name":"tsconfig.json","content":"{\n    \"compilerOptions\": {\n        \"esModuleInterop\": true,\n        \"noImplicitAny\": false,\n        \"noEmit\": true,\n        \"resolveJsonModule\": true\n    },\n    \"exclude\": [\n      \"**/**_broken.ts\"\n    ]\n}\n\n","path":"code/1531/24T1/3.4/tsconfig.json","fileext":"json"}}},"__N_SSG":true}