2021-02-17 12:37:07 -05:00
|
|
|
module.exports = {
|
2023-11-08 13:45:10 -05:00
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es2021: true,
|
|
|
|
node: true,
|
|
|
|
jest: true,
|
|
|
|
},
|
2023-11-08 16:40:49 -05:00
|
|
|
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
|
2023-11-08 13:45:10 -05:00
|
|
|
parser: "@typescript-eslint/parser",
|
|
|
|
plugins: ["@typescript-eslint"],
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 12,
|
|
|
|
sourceType: "module",
|
|
|
|
},
|
|
|
|
rules: {
|
2023-11-08 16:40:49 -05:00
|
|
|
indent: ["error", 2],
|
|
|
|
"linebreak-style": ["error", "unix"],
|
|
|
|
quotes: ["error", "double"],
|
|
|
|
semi: ["error", "always"],
|
2023-11-08 13:45:10 -05:00
|
|
|
"no-constant-condition": ["error", { checkLoops: false }],
|
|
|
|
"no-use-before-define": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
variables: true,
|
|
|
|
functions: false,
|
|
|
|
classes: false,
|
|
|
|
allowNamedExports: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2023-11-08 14:09:15 -05:00
|
|
|
reportUnusedDisableDirectives: true,
|
2021-04-30 12:31:14 -07:00
|
|
|
};
|