Skip to content

refactor: upgrade and rewrite #16

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 9 commits into from
Aug 29, 2023
Prev Previous commit
Next Next commit
eslint parser options
  • Loading branch information
aoor9 committed Aug 11, 2023
commit 2dd4737101f03c5dcc5c3a0d458073b1b81f17b1
76 changes: 40 additions & 36 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,42 @@
{
"parser": "@typescript-eslint/parser",
"extends": ["alloy", "alloy/typescript"],
"plugins": ["@typescript-eslint"],
"env": {
"browser": true,
"node": true,
"commonjs": true,
"es6": true
},
"root": true,
"rules": {
"no-duplicate-imports": 0,
"for-direction": "error",
"getter-return": [
"error",
{
"allowImplicit": false
}
],
"no-await-in-loop": "off",
"no-compare-neg-zero": "error",
"no-cond-assign": ["error", "except-parens"],
"no-console": "off",
"no-constant-condition": [
"error",
{
"checkLoops": false
}
],
"no-control-regex": "error",
"no-debugger": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"max-nested-callbacks": ["error", 5],
"@typescript-eslint/consistent-type-definitions": ["error", "interface"]
}
"parser": "@typescript-eslint/parser",
"extends": ["alloy", "alloy/typescript"],
"plugins": ["@typescript-eslint"],
"env": {
"browser": true,
"node": true,
"commonjs": true,
"es6": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2022
},
"root": true,
"rules": {
"no-duplicate-imports": 0,
"for-direction": "error",
"getter-return": [
"error",
{
"allowImplicit": false
}
],
"no-await-in-loop": "off",
"no-compare-neg-zero": "error",
"no-cond-assign": ["error", "except-parens"],
"no-console": "off",
"no-constant-condition": [
"error",
{
"checkLoops": false
}
],
"no-control-regex": "error",
"no-debugger": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"max-nested-callbacks": ["error", 5],
"@typescript-eslint/consistent-type-definitions": ["error", "interface"]
}
}