-
Notifications
You must be signed in to change notification settings - Fork 104
docs: Add ESLint and Prettier config to documentation package #3761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
561d39d
add eslint / prettier config
JonathanMatthey 377d252
lint / format docs
JonathanMatthey 62b089f
pnpm lock file
JonathanMatthey 8535f9f
lint
JonathanMatthey 0a540c2
add lint and format command of docs to main packagejson
JonathanMatthey 43ec7a5
Merge branch 'main' into jm/eslint-prettier
JonathanMatthey 429e53b
lint - quote marks
JonathanMatthey 9740c20
fix: restore accounting mdx
JonathanMatthey c3c7deb
Merge branch 'main' into jm/eslint-prettier
JonathanMatthey 5051d78
update package lock
JonathanMatthey 354ab52
fix lint
JonathanMatthey b235485
add lint docs to ci
JonathanMatthey 628cc3f
fix: pnpm format docs
JonathanMatthey e2e3488
fix: format docs
JonathanMatthey 2477572
fix inconsistencies between prettier root and docs
JonathanMatthey 39dc009
fix: update readme with linting
JonathanMatthey 4e0c8d4
rm ci
JonathanMatthey 390900d
update documentation readmy with lint / format
JonathanMatthey e5d2c9e
pnpm format readme
JonathanMatthey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,10 @@ | ||
| .github | ||
| .astro | ||
| node_modules | ||
| public | ||
| build | ||
| **/*.min.css | ||
| **/*.min.js | ||
|
|
||
|
|
||
|
|
This file contains hidden or 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,15 @@ | ||
| { | ||
| "semi": false, | ||
| "singleQuote": true, | ||
| "jsxSingleQuote": true, | ||
| "trailingComma": "none", | ||
| "plugins": ["prettier-plugin-astro"], | ||
| "overrides": [ | ||
| { | ||
| "files": "**/*.astro", | ||
| "options": { | ||
| "parser": "astro" | ||
| } | ||
| } | ||
| ] | ||
| } |
This file contains hidden or 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 hidden or 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,30 @@ | ||
| import js from '@eslint/js' | ||
| import globals from 'globals' | ||
| import tseslint from 'typescript-eslint' | ||
| import { defineConfig, globalIgnores } from 'eslint/config' | ||
| import eslintConfigPrettier from 'eslint-config-prettier/flat' | ||
| import eslintPluginAstro from 'eslint-plugin-astro' | ||
|
|
||
| export default defineConfig([ | ||
| { | ||
| files: ['**/*.{js,mjs,cjs,ts,mts,cts}'], | ||
| plugins: { js }, | ||
| extends: ['js/recommended'], | ||
| languageOptions: { globals: { ...globals.browser, ...globals.node } } | ||
| }, | ||
| tseslint.configs.recommended, | ||
| eslintPluginAstro.configs.recommended, | ||
| globalIgnores(['build', '.astro', 'node_modules', 'public', '**/*.min.js']), | ||
| { | ||
| rules: { | ||
| 'no-console': 'error', | ||
| '@typescript-eslint/no-unused-vars': [ | ||
| 'error', | ||
| { argsIgnorePattern: '^_' } | ||
| ], | ||
| '@typescript-eslint/no-explicit-any': 'error', | ||
| 'astro/no-set-text-directive': 'error' | ||
| } | ||
| }, | ||
| eslintConfigPrettier | ||
| ]) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.