Skip to content

Commit

Permalink
Chore/linting alignment and fix braces security issue (#35)
Browse files Browse the repository at this point in the history
* Align eslint configuration with other plugins and studio and fix braces dependency security issue

* Align eslint configuration with other plugins and studio and fix braces dependency security issue
  • Loading branch information
bigorn0 authored Jun 13, 2024
1 parent 2e129dc commit 0421f99
Show file tree
Hide file tree
Showing 5 changed files with 1,993 additions and 204 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
.vscode
.idea
node_modules
reverse_engineering/antlr
reverse_engineering/node_modules
reverse_engineering/antlr/parser
forward_engineering/node_modules
shared/types.d.ts
build
release
51 changes: 46 additions & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,66 @@
"node": true,
"es2022": true
},
"plugins": ["import", "unused-imports", "@typescript-eslint"],
"rules": {
"no-cond-assign": "error",
"no-const-assign": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-dupe-else-if": "warn",
"no-duplicate-imports": "warn",
"no-import-assign": "warn",
"no-unreachable": "error",
"eqeqeq": "error",
"no-var": "error",
"no-undef": "error",
"no-bitwise": "warn",
"no-dupe-else-if": "warn",
"no-duplicate-imports": "warn",
"no-import-assign": "warn",
"import/no-unresolved": [
"error"
],
"import/named": "error",
"import/default": "error",
"import/no-self-import": "error",
"no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"off",
{
"vars": "all",
"varsIgnorePattern": "^(React$|__)",
"argsIgnorePattern": ".*"
}
],
"no-debugger": "error",
"no-empty": "warn",
"no-extra-semi": "error",
"no-global-assign": "warn",
"no-redeclare": "warn",
"no-debugger": "error",
"no-console": "error"
}
},
"overrides": [
{
"files": ["*.ts"],
"extends": ["plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
}
},
{
"files": ["*.d.ts"],
"rules": {
"@typescript-eslint/no-explicit-any": "off"
}
},
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ts", ".cjs", ".mjs"]
}
}
},
"root": true
}
Loading

0 comments on commit 0421f99

Please sign in to comment.