-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from badgateway/update-deps3
Update dependencies
- Loading branch information
Showing
6 changed files
with
623 additions
and
567 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,97 @@ | ||
/** | ||
* This file was originally generated by @eslint/migrate-config | ||
* | ||
* Yes it's messy. If you hate it, PR welcome to clean this up! | ||
*/ | ||
import typescriptEslint from "@typescript-eslint/eslint-plugin"; | ||
import globals from "globals"; | ||
import tsParser from "@typescript-eslint/parser"; | ||
import path from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
import js from "@eslint/js"; | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all | ||
}); | ||
|
||
export default [...compat.extends( | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
), { | ||
plugins: { | ||
"@typescript-eslint": typescriptEslint, | ||
}, | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
...globals.mocha, | ||
Atomics: "readonly", | ||
SharedArrayBuffer: "readonly", | ||
}, | ||
|
||
parser: tsParser, | ||
ecmaVersion: 2018, | ||
sourceType: "module", | ||
}, | ||
|
||
rules: { | ||
indent: ["error", 2, { | ||
SwitchCase: 1, | ||
}], | ||
|
||
"linebreak-style": ["error", "unix"], | ||
|
||
"no-constant-condition": ["error", { | ||
checkLoops: false, | ||
}], | ||
|
||
quotes: ["error", "single", { | ||
allowTemplateLiterals: false, | ||
avoidEscape: true, | ||
}], | ||
|
||
semi: ["error", "always"], | ||
|
||
"no-console": ["error", { | ||
allow: ["warn", "error", "info", "debug"], | ||
}], | ||
|
||
"no-trailing-spaces": "error", | ||
"eol-last": "error", | ||
|
||
"@typescript-eslint/ban-ts-comment": ["error", { | ||
"ts-expect-error": "allow-with-description", | ||
"ts-nocheck": "allow-with-description", | ||
}], | ||
|
||
"@typescript-eslint/ban-tslint-comment": "error", | ||
|
||
"@typescript-eslint/consistent-type-assertions": ["error", { | ||
assertionStyle: "as", | ||
objectLiteralTypeAssertions: "never", | ||
}], | ||
|
||
"@typescript-eslint/no-inferrable-types": "off", | ||
"@typescript-eslint/no-explicit-any": 0, | ||
"@typescript-eslint/no-for-in-array": "error", | ||
"@typescript-eslint/no-invalid-void-type": "error", | ||
"@typescript-eslint/no-namespace": "error", | ||
"@typescript-eslint/no-non-null-asserted-optional-chain": "error", | ||
|
||
"@typescript-eslint/no-unused-vars": ["error", { | ||
ignoreRestSiblings: true, | ||
args: "none", | ||
}], | ||
|
||
"@typescript-eslint/prefer-for-of": ["error"], | ||
"@typescript-eslint/prefer-ts-expect-error": ["error"], | ||
}, | ||
}]; |
Oops, something went wrong.