mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2025-10-19 06:23:16 +00:00
32 lines
753 B
JavaScript
32 lines
753 B
JavaScript
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
node: true,
|
|
jest: true,
|
|
},
|
|
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
|
|
parser: "@typescript-eslint/parser",
|
|
plugins: ["@typescript-eslint"],
|
|
parserOptions: {
|
|
ecmaVersion: 12,
|
|
sourceType: "module",
|
|
},
|
|
rules: {
|
|
indent: ["error", 2],
|
|
"linebreak-style": ["error", "unix"],
|
|
quotes: ["error", "double"],
|
|
semi: ["error", "always"],
|
|
"no-constant-condition": ["error", { checkLoops: false }],
|
|
"no-use-before-define": [
|
|
"error",
|
|
{
|
|
variables: true,
|
|
functions: false,
|
|
classes: false,
|
|
allowNamedExports: true,
|
|
},
|
|
],
|
|
},
|
|
reportUnusedDisableDirectives: true,
|
|
};
|