2021-02-17 12:37:07 -05:00
|
|
|
module.exports = {
|
2023-11-09 11:27:11 -08:00
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es2021: true,
|
|
|
|
node: true,
|
|
|
|
jest: true,
|
|
|
|
},
|
2023-11-09 19:11:11 -05:00
|
|
|
extends: [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"prettier",
|
|
|
|
],
|
2023-11-09 11:27:11 -08:00
|
|
|
parser: "@typescript-eslint/parser",
|
|
|
|
plugins: ["@typescript-eslint"],
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 12,
|
|
|
|
sourceType: "module",
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
"no-constant-condition": ["error", { checkLoops: false }],
|
|
|
|
"no-use-before-define": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
variables: true,
|
|
|
|
functions: false,
|
|
|
|
classes: false,
|
|
|
|
allowNamedExports: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
reportUnusedDisableDirectives: true,
|
2021-04-30 12:31:14 -07:00
|
|
|
};
|