-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [Docs Site] Adopt eslint * Demonstrate a fixable suggestion, add VSCode plugin and package.json script * Fix slice in ModelCatalog * Remove test error in AnchorHeading * recreate package-lock.json * update new .jsx components to .tsx * amend deps, fix react types, organise ec plugins * another attempt at fixing platform-specific deps * fix FieldCatalog filters, remove test block from code.mdx * use opacity instead of brightness for ruleid * fix lockfile * amend ruleid opacity styling * test onetrust * enable prefer const rule, remove onetrust test * add save-dev
- Loading branch information
Showing
49 changed files
with
15,003 additions
and
11,651 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,2 @@ | ||
save-dev=true | ||
save-exact=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
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
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,42 @@ | ||
import pluginJavaScript from "@eslint/js"; | ||
import pluginTypeScript from "typescript-eslint"; | ||
import pluginReact from "eslint-plugin-react"; | ||
import pluginAstro from "eslint-plugin-astro"; | ||
import pluginReactA11y from "eslint-plugin-jsx-a11y"; | ||
|
||
import globals from "globals"; | ||
|
||
/** @type {import('eslint').Linter.Config[]} */ | ||
export default [ | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
}, | ||
}, | ||
}, | ||
pluginJavaScript.configs.recommended, | ||
...pluginTypeScript.configs.recommended, | ||
...pluginAstro.configs.recommended, | ||
...pluginAstro.configs["jsx-a11y-recommended"], | ||
{ | ||
files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"], | ||
...pluginReact.configs.flat.recommended, | ||
...pluginReactA11y.flatConfigs.recommended, | ||
...pluginReact.configs.flat["jsx-runtime"], | ||
}, | ||
{ | ||
ignores: [".astro/", ".wrangler/", "dist/", ".github/"], | ||
}, | ||
{ | ||
rules: { | ||
"no-var": "error", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/triple-slash-reference": "off", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ ignoreRestSiblings: true }, | ||
], | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.