Skip to content

Commit

Permalink
feat: adding lesson_08 homework and lesson_09 pre-work (#275)
Browse files Browse the repository at this point in the history
* feat: adds lesson_08 content and lesson_09 pre-work.

* chore: updates code format

* chore: adjusting lesson 8 code.
  • Loading branch information
anthonydmays authored Oct 11, 2024
1 parent 1536bd9 commit 432eb99
Show file tree
Hide file tree
Showing 15 changed files with 6,178 additions and 14 deletions.
13 changes: 0 additions & 13 deletions README.md

This file was deleted.

5 changes: 4 additions & 1 deletion lesson_08/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ Please review the following resources before lecture:

## Homework

TODO(anthonydmays): Finish this.
- [ ] Memorize the `printPermutations` and `reverseString` methods in [algos_app][algos-app].
- [ ] Do pre-work for [lesson 09](/lesson_09/).

[algos-app]: ./algos/algos_app/src/main/java/com/codedifferently/lesson08/Lesson08.java
11 changes: 11 additions & 0 deletions lesson_08/algos/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
insert_final_newline = true
organize_imports = true
trim_trailing_whitespace = true
quote_type = single
1 change: 1 addition & 0 deletions lesson_08/algos/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
3 changes: 3 additions & 0 deletions lesson_08/algos/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore artifacts:
build
coverage
1 change: 1 addition & 0 deletions lesson_08/algos/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
28 changes: 28 additions & 0 deletions lesson_08/algos/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// @ts-check

import eslint from '@eslint/js';
import stylistic from '@stylistic/eslint-plugin';
import eslintConfigPrettier from 'eslint-config-prettier';
import tseslint from 'typescript-eslint';

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.strict,
...tseslint.configs.stylistic,
eslintConfigPrettier,
{
ignores: ['build'],
plugins: { '@stylistic': stylistic },
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-extraneous-class': 'off',
'@stylistic/quotes': [
'error',
'single',
{ avoidEscape: true, allowTemplateLiterals: false },
],
},
},
);
11 changes: 11 additions & 0 deletions lesson_08/algos/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/** @type {import('ts-jest').JestConfigWithTsJest} **/
export default {
testEnvironment: 'node',
transform: {
'^.+.tsx?$': ['ts-jest', { useESM: true }],
},
moduleNameMapper: {
'^(\\.\\.?\\/.+)\\.js$': '$1',
},
extensionsToTreatAsEsm: ['.ts'],
};
Loading

0 comments on commit 432eb99

Please sign in to comment.