-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5669e7
commit 8c69039
Showing
14 changed files
with
15,009 additions
and
12,792 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"type": "module", | ||
"dependencies": { | ||
"@epic-web/config": "^1.5.3", | ||
"@epic-web/workshop-app": "^4.5.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,9 @@ | ||
{ | ||
"include": ["**/*.ts", "**/*.tsx", "**/*.js"], | ||
"compilerOptions": { | ||
"lib": ["ES2023"], | ||
"isolatedModules": true, | ||
"esModuleInterop": true, | ||
"module": "ES2022", | ||
"moduleResolution": "Bundler", | ||
"resolveJsonModule": true, | ||
"target": "ES2022", | ||
"strict": true, | ||
"noImplicitAny": true, | ||
"allowJs": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"skipLibCheck": true, | ||
"allowImportingTsExtensions": true, | ||
"noEmit": true | ||
} | ||
} | ||
"include": ["**/*.ts", "**/*.tsx", "**/*.js"], | ||
"extends": ["@epic-web/config/typescript"], | ||
"compilerOptions": { | ||
"paths": { | ||
"#*": ["./*"] | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,40 +1,14 @@ | ||
/** @type {import('@types/eslint').Linter.Config} */ | ||
export default { | ||
files: ['**/*.js', '**/*.ts', '**/*.tsx'], | ||
languageOptions: { parser: await import('@typescript-eslint/parser') }, | ||
plugins: { | ||
'@typescript-eslint': (await import('@typescript-eslint/eslint-plugin')) | ||
.default, | ||
'react-hooks': (await import('eslint-plugin-react-hooks')).default, | ||
import: (await import('eslint-plugin-import')).default, | ||
}, | ||
rules: { | ||
'react-hooks/rules-of-hooks': 'error', | ||
'react-hooks/exhaustive-deps': 'warn', | ||
import defaultConfig from '@epic-web/config/eslint' | ||
|
||
'@typescript-eslint/consistent-type-imports': [ | ||
'warn', | ||
{ | ||
prefer: 'type-imports', | ||
disallowTypeAnnotations: true, | ||
fixStyle: 'inline-type-imports', | ||
}, | ||
], | ||
'import/no-duplicates': ['warn', { 'prefer-inline': true }], | ||
'import/consistent-type-specifier-style': ['warn', 'prefer-inline'], | ||
'import/order': [ | ||
'warn', | ||
{ | ||
alphabetize: { order: 'asc', caseInsensitive: true }, | ||
groups: [ | ||
'builtin', | ||
'external', | ||
'internal', | ||
'parent', | ||
'sibling', | ||
'index', | ||
], | ||
}, | ||
], | ||
/** @type {import("eslint").Linter.Config} */ | ||
export default [ | ||
{ ignores: ['**/babel-standalone.js'] }, | ||
...defaultConfig, | ||
{ | ||
rules: { | ||
// we leave unused vars around for the exercises | ||
'no-unused-vars': 'off', | ||
'@typescript-eslint/no-unused-vars': '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
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
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
4 changes: 2 additions & 2 deletions
4
exercises/06.layout-computation/01.problem.layout-effect/posts.tsx
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
4 changes: 2 additions & 2 deletions
4
exercises/06.layout-computation/01.solution.layout-effect/posts.tsx
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.