mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-30 00:38:52 +02:00
Set up CI with ESLint linter and Mocha test runner (#661)
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
import eslint from "@eslint/js";
|
||||
import tseslint from "typescript-eslint";
|
||||
|
||||
export default tseslint.config(
|
||||
eslint.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
{
|
||||
ignores: ["build/", "public/", "gulpfile.js", "healthcheck.js", "opentelemetry.js"],
|
||||
},
|
||||
{
|
||||
rules: {
|
||||
"@typescript-eslint/no-explicit-any": "warn",
|
||||
"@typescript-eslint/no-unused-vars": [
|
||||
"warn",
|
||||
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
|
||||
],
|
||||
"@typescript-eslint/no-require-imports": "off",
|
||||
"@typescript-eslint/no-empty-object-type": "off",
|
||||
"no-empty": "warn",
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["test/**/*.js"],
|
||||
languageOptions: {
|
||||
sourceType: "commonjs",
|
||||
globals: {
|
||||
describe: "readonly",
|
||||
it: "readonly",
|
||||
before: "readonly",
|
||||
after: "readonly",
|
||||
beforeEach: "readonly",
|
||||
afterEach: "readonly",
|
||||
},
|
||||
},
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user