Skip to content

Commit

Permalink
feat: Add multiple length support
Browse files Browse the repository at this point in the history
Add support for different lengths of solutions, other than just 5
letters.

This is a hidden feature (for now?) because I want to "soft-launch" it
until I decide how it should look and act. For now, it's implemented as
different languages: `nb-no-3`, `nn-no-7`, etc. The 5-letter version is
still left at `nb-no` and `nn-no` for consistency.
  • Loading branch information
evancharlton committed Oct 19, 2024
1 parent 998eefd commit 8961ffb
Show file tree
Hide file tree
Showing 27 changed files with 203,437 additions and 287 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ dist-ssr
.terraform
.terraform.lock.hcl
terraform.*.backup

# Build artifacts
*.tsbuildinfo
34 changes: 21 additions & 13 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,36 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'
import js from "@eslint/js";
import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import tseslint from "typescript-eslint";

export default tseslint.config(
{ ignores: ['dist'] },
{ ignores: ["dist"] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
files: ["**/*.{ts,tsx}"],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
"react-hooks": reactHooks,
"react-refresh": reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
},
},
)
}
);
Loading

0 comments on commit 8961ffb

Please sign in to comment.