chore: use constants for superblocks (#43886)

* chore: use constants for superblocks

* add prettier ts dec to challenge-helper-scripts

* config/ to ts. broken

* typescripterise tools/ and config/

* create global tsconfig, remove alternate configs

* delete temp ts->js, add to gitignore

* fix gitignore

* re-import SuperBlocks in super-block-intro.tsx

* remove renamed files added again

* fix config

* remove accidental files

* remove snap

* delete built files

* adjust eslintrc for enums

* add node types to root

* ignore build files in lint and prettier

* fix tools/ in tsconfig

* ignore annoying ts warnings

* prettierise Map/index.tsx

* fix enum to match lint rule

* rejig Map to render RWD superblock

* 'pretty minor' - implicitly tsc within root

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* fix client/package.json for Gitpod

* broken: migrate @types to root

* fix: use typeRoots to prevent duplication

* fix show.tsx, try typeroots in root

* silly fix for duplicate node_modules types

* remove typeRoots from root

* fix: tsconfig or not tsconfig, that is the...

* fix: ...question: Whether 'tis nobler in the mind

to suffer the slings and arrows of outrageous configs...

* fix: Or to take Arms against a Sea of lint errors
And by opposing end them

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
Shaun Hamilton
2021-11-19 14:19:40 +00:00
committed by GitHub
parent d944fa0c8e
commit d75e43a1e7
29 changed files with 1391 additions and 262 deletions

View File

@ -20,7 +20,6 @@
"homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme",
"dependencies": {
"@babel/preset-typescript": "7.16.0",
"@types/jest": "27.0.2",
"@types/node": "16.11.7",
"@types/react": "17.0.33",
"@types/react-dom": "17.0.11",
@ -39,18 +38,20 @@
"@storybook/addon-links": "6.3.12",
"@storybook/addon-postcss": "2.0.0",
"@storybook/react": "6.3.12",
"@testing-library/jest-dom": "^5.15.0",
"@testing-library/react": "12.1.2",
"@types/jest": "^27.0.2",
"autoprefixer": "10.4.0",
"babel-loader": "8.2.3",
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
"cross-env": "7.0.3",
"postcss": "8.3.11",
"postcss-import": "14.0.2",
"tailwindcss": "2.2.19",
"rimraf": "3.0.2",
"rollup": "2.60.0",
"rollup-plugin-postcss": "4.0.1",
"rollup-plugin-terser": "7.0.2"
"rollup-plugin-terser": "7.0.2",
"tailwindcss": "2.2.19"
},
"scripts": {
"storybook": "start-storybook -p 6006",

View File

@ -8,6 +8,7 @@
"esModuleInterop": true,
"moduleResolution": "node",
"strict": true,
"noEmit": true
"noEmit": true,
"typeRoots": ["./node_modules/@types"]
}
}