-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update packages * chore: fix ts issue * chore: Upgrade ESLint * Upgrade to astro v5 * fix spellings * update astro * update checks
- Loading branch information
Showing
59 changed files
with
3,759 additions
and
2,606 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
reactjs | ||
backbonejs | ||
Laravel | ||
codepen | ||
gitdir | ||
gutil | ||
sinθ | ||
cosθ | ||
sinα | ||
cosα | ||
sinβ | ||
cosβ | ||
fanzeyi | ||
pgsql | ||
jsfiddle | ||
AUTOCAD | ||
Autoloads | ||
allowtransparency | ||
kwframeid | ||
frontmatter | ||
noignore | ||
jsnext | ||
stackoverflow | ||
Symfony | ||
autoload | ||
PQRS |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Saurabh | ||
Mukherjea | ||
Vivek | ||
Kumar | ||
Bansal | ||
Monika | ||
Halan | ||
Kiyosaki | ||
Fosslien | ||
Maggiulli | ||
Marico | ||
HDFC | ||
IBAS | ||
Technik | ||
Abramov | ||
Ashkenas | ||
Otwell | ||
Devloper | ||
iamdevloper | ||
Regulex | ||
Bamford | ||
INSEAD | ||
vkbansal |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
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 |
---|---|---|
|
@@ -16,3 +16,4 @@ temp/ | |
.hashes.json | ||
.certificates | ||
.astro | ||
.vercel |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
pnpm lint | ||
pnpm typecheck | ||
pnpm fmtc | ||
pnpm check | ||
pnpm fmt:c | ||
pnpm spell |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
dictionaries: | ||
- node | ||
- typescript | ||
- html | ||
- css | ||
- latex | ||
- bash | ||
- npm | ||
- person-names | ||
- code | ||
dictionaryDefinitions: | ||
- name: person-names | ||
path: './.cspell/names.txt' | ||
- name: code | ||
path: './.cspell/code.txt' | ||
ignoreRegExpList: | ||
- >- | ||
src=".*" |
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 |
---|---|---|
@@ -0,0 +1,122 @@ | ||
import fs from 'node:fs'; | ||
|
||
import cspellESLintPluginRecommended from '@cspell/eslint-plugin/recommended'; | ||
import eslint from '@eslint/js'; | ||
import eslintConfigPrettier from 'eslint-config-prettier'; | ||
import eslintPluginAstro from 'eslint-plugin-astro'; | ||
import simpleImportSort from 'eslint-plugin-simple-import-sort'; | ||
import globals from 'globals'; | ||
import tsESLint from 'typescript-eslint'; | ||
|
||
const dirs = fs | ||
.readdirSync('./src', { withFileTypes: true }) | ||
.filter((dirent) => dirent.isDirectory()) | ||
.map((dirent) => dirent.name); | ||
|
||
export default tsESLint.config( | ||
eslint.configs.recommended, | ||
...tsESLint.configs.recommended, | ||
eslintConfigPrettier, | ||
cspellESLintPluginRecommended, | ||
...eslintPluginAstro.configs.recommended, | ||
{ | ||
rules: { | ||
'@cspell/spellchecker': [ | ||
'error', | ||
{ | ||
configFile: new URL( | ||
'./cspell.config.yaml', | ||
import.meta.url, | ||
).toString(), | ||
checkScope: [ | ||
['ImportDeclaration[moduleSpecifier] StringLiteral', true], | ||
], | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
}, | ||
}, | ||
rules: { | ||
'no-console': 2, | ||
'no-unused-vars': 0, | ||
'@typescript-eslint/no-unused-expressions': 0, | ||
'@typescript-eslint/no-unused-vars': [ | ||
2, | ||
{ | ||
vars: 'all', | ||
args: 'after-used', | ||
ignoreRestSiblings: true, | ||
argsIgnorePattern: '^_', | ||
caughtErrors: 'all', | ||
caughtErrorsIgnorePattern: '^_', | ||
}, | ||
], | ||
'@typescript-eslint/explicit-function-return-type': [ | ||
2, | ||
{ | ||
allowExpressions: true, | ||
allowHigherOrderFunctions: true, | ||
}, | ||
], | ||
'@typescript-eslint/consistent-type-imports': [ | ||
2, | ||
{ | ||
prefer: 'type-imports', | ||
fixStyle: 'inline-type-imports', | ||
}, | ||
], | ||
'@typescript-eslint/naming-convention': [ | ||
2, | ||
{ | ||
selector: ['interface', 'typeAlias'], | ||
format: ['StrictPascalCase'], | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
plugins: { | ||
'simple-import-sort': simpleImportSort, | ||
}, | ||
rules: { | ||
'simple-import-sort/imports': [ | ||
2, | ||
{ | ||
groups: [ | ||
// Side effect imports. | ||
['^\\u0000'], | ||
// Node.js builtins prefixed with `node:`. | ||
['^node:', '^astro:'], | ||
// Packages. | ||
// Things that start with a letter (or digit or underscore), or `@` followed by a letter. | ||
['^@?\\w'], | ||
// Absolute imports and other imports such as Vue-style `@/foo`. | ||
// Anything not matched in another group. | ||
['^'], | ||
|
||
// Custom imports. | ||
dirs.map((dir) => `^${dir}`), | ||
// Relative imports. | ||
// Anything that starts with a dot. | ||
['^\\.'], | ||
// style files | ||
['\\.css$', '\\.scss$'], | ||
], | ||
}, | ||
], | ||
'simple-import-sort/exports': 'error', | ||
}, | ||
}, | ||
{ | ||
files: ['src/env.d.ts'], | ||
rules: { | ||
'@typescript-eslint/triple-slash-reference': '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
Oops, something went wrong.