2018-06-01 14:09:40 -04:00
|
|
|
module.exports = {
|
2021-09-04 19:09:30 -04:00
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
commonjs: true,
|
|
|
|
es6: false,
|
|
|
|
},
|
2022-05-25 11:43:43 -04:00
|
|
|
extends: [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
2023-06-27 04:29:44 +02:00
|
|
|
"plugin:react/recommended",
|
|
|
|
"plugin:react-hooks/recommended",
|
2023-05-05 03:55:59 -04:00
|
|
|
//"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
|
|
//"plugin:@typescript-eslint/strict",
|
2022-05-25 11:43:43 -04:00
|
|
|
],
|
2021-09-04 19:09:30 -04:00
|
|
|
parser: "@typescript-eslint/parser",
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 8,
|
|
|
|
sourceType: "module",
|
|
|
|
ecmaFeatures: {
|
|
|
|
experimentalObjectRestSpread: true,
|
2018-06-01 14:09:40 -04:00
|
|
|
},
|
2023-01-07 23:36:55 -08:00
|
|
|
project: ["./tsconfig.json", "./test/tsconfig.json", "./tools/tsconfig.json"],
|
2021-09-04 19:09:30 -04:00
|
|
|
},
|
|
|
|
plugins: ["@typescript-eslint"],
|
|
|
|
rules: {
|
2022-07-28 14:35:55 -04:00
|
|
|
"@typescript-eslint/no-unused-vars": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
argsIgnorePattern: "^__",
|
|
|
|
varsIgnorePattern: "^__",
|
|
|
|
caughtErrorsIgnorePattern: "^__",
|
|
|
|
},
|
|
|
|
],
|
2022-07-19 11:43:10 -04:00
|
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
2023-06-27 04:29:44 +02:00
|
|
|
"react/no-unescaped-entities": "off",
|
2021-09-04 19:09:30 -04:00
|
|
|
},
|
2023-09-19 12:24:12 -04:00
|
|
|
settings: {
|
|
|
|
react: {
|
|
|
|
version: "detect",
|
|
|
|
},
|
|
|
|
},
|
2021-09-04 19:09:30 -04:00
|
|
|
};
|