-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #210 from xen0n/linting
Housekeeping
- Loading branch information
Showing
49 changed files
with
2,122 additions
and
862 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
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,14 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
- package-ecosystem: yarn | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
- package-ecosystem: gomod | ||
directory: /scripts/asmdb | ||
schedule: | ||
interval: weekly |
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,29 @@ | ||
name: PR checks | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
lints: | ||
name: Lints | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the source code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Enable Corepack for Yarn Modern | ||
run: corepack enable | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: yarn | ||
- name: Install dependencies | ||
run: yarn install --immutable | ||
- name: Check code style with Prettier | ||
run: yarn prettier --check . | ||
- name: Lint with ESLint | ||
run: yarn eslint | ||
- name: Type-check with tsc | ||
run: yarn tsc |
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,11 @@ | ||
/.github | ||
/.vscode | ||
/.yarn | ||
/3rdparty | ||
/build | ||
/node_modules | ||
/scripts | ||
/static | ||
/yarn.lock | ||
*.md | ||
*.mdx |
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,7 @@ | ||
tabWidth = 2 | ||
semi = false | ||
singleQuote = true | ||
|
||
[[overrides]] | ||
files = ["*.md", "*.mdx"] | ||
options = { tabWidth = 4 } |
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,5 @@ | ||
import docusaurusPreset from '@docusaurus/core/lib/babel/preset' | ||
|
||
export default { | ||
presets: [docusaurusPreset], | ||
} |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// @ts-check | ||
|
||
import eslint from '@eslint/js' | ||
import tseslint from 'typescript-eslint' | ||
|
||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
{ | ||
ignores: ['.docusaurus/', '.yarn/', '.pnp.*', 'build/'], | ||
}, | ||
{ | ||
rules: { | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
args: 'all', | ||
argsIgnorePattern: '^_', | ||
caughtErrors: 'all', | ||
caughtErrorsIgnorePattern: '^_', | ||
destructuredArrayIgnorePattern: '^_', | ||
varsIgnorePattern: '^_', | ||
ignoreRestSiblings: true, | ||
}, | ||
], | ||
}, | ||
}, | ||
) |
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 |
---|---|---|
|
@@ -46,14 +46,20 @@ | |
"devDependencies": { | ||
"@docusaurus/module-type-aliases": "3.5.2", | ||
"@docusaurus/tsconfig": "3.5.2", | ||
"@eslint/js": "^9.13.0", | ||
"@types/eslint__js": "^8.42.3", | ||
"@types/glob": "^8.1.0", | ||
"@types/js-yaml": "^4.0.9", | ||
"@types/lodash": "^4.17.10", | ||
"@types/mdast": "^4.0.4", | ||
"@types/node": "^22.7.5", | ||
"@types/prismjs": "^1.26.4", | ||
"@types/react": "^18.3.11", | ||
"@types/react-router-dom": "^5.3.3", | ||
"eslint": "^9.13.0", | ||
"prettier": "^3.3.3", | ||
"typescript": "^5.6.3", | ||
"typescript-eslint": "^8.11.0", | ||
"update-browserslist-db": "^1.1.1" | ||
}, | ||
"resolutions": { | ||
|
@@ -77,5 +83,5 @@ | |
"engines": { | ||
"node": ">=20" | ||
}, | ||
"packageManager": "[email protected].0" | ||
"packageManager": "[email protected].1" | ||
} |
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,7 +1,7 @@ | ||
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs' | ||
import type { SidebarsConfig } from '@docusaurus/plugin-content-docs' | ||
|
||
const sidebars: SidebarsConfig = { | ||
main: [{type: 'autogenerated', dirName: '.'}], | ||
}; | ||
main: [{ type: 'autogenerated', dirName: '.' }], | ||
} | ||
|
||
export default sidebars |
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.