Skip to content

Commit

Permalink
fix(eslint): Fix eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
andymac4182 committed Apr 11, 2023
1 parent 71a413f commit cbaa567
Show file tree
Hide file tree
Showing 19 changed files with 606 additions and 546 deletions.
20 changes: 16 additions & 4 deletions .eslintrc
@@ -1,14 +1,15 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"env": { "node": true },
"env": { "node": true, "browser": true },
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parserOptions": {
"sourceType": "module"
Expand All @@ -18,6 +19,17 @@
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
"@typescript-eslint/ban-ts-comment": "off",
"no-prototype-builtins": "off",
"@typescript-eslint/no-empty-function": "off"
}
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/naming-convention": ["error",
{
"selector": "property",
"format": ["strictCamelCase"],
"filter": {
// you can expand this regex to add more allowed names
"regex": "^(code_block|list_item|bullet_list|ordered_list|code_inline|media_single|User-Agent|Accept|Authorization|Content-Type)$",
"match": false
}
}]
},
"ignorePatterns": ["dist/**", "dev-vault/**", "dist-cli/**", ".husky/**"]
}
1 change: 1 addition & 0 deletions esbuild.config.mjs
Expand Up @@ -15,6 +15,7 @@ const mermaid_renderer_plugin = {
setup(build) {
build.onResolve({ filter: /mermaid_renderer\.esbuild$/ }, args => {
return {
watchFiles: ['src/mermaid_renderer.js'],
path: args.path,
namespace: 'mermaid-binary',
}
Expand Down

0 comments on commit cbaa567

Please sign in to comment.