2021-10-04 17:05:34 -07:00
|
|
|
{
|
2022-01-13 16:13:05 +00:00
|
|
|
"parser": "@typescript-eslint/parser",
|
2021-10-04 17:05:34 -07:00
|
|
|
"env": {
|
|
|
|
"browser": true,
|
2021-12-14 15:08:54 +00:00
|
|
|
"commonjs": true,
|
|
|
|
"jest": true
|
2021-10-04 17:05:34 -07:00
|
|
|
},
|
|
|
|
"extends": [
|
2021-12-02 00:41:56 +00:00
|
|
|
"airbnb-base",
|
2022-01-13 16:13:05 +00:00
|
|
|
"plugin:cypress/recommended",
|
|
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended"
|
2021-10-04 17:05:34 -07:00
|
|
|
],
|
2021-12-23 11:41:39 -08:00
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 11
|
|
|
|
},
|
2021-12-20 20:54:31 +00:00
|
|
|
"globals": {
|
|
|
|
// designer is a global currently used as a hack. Remove this when fixing the hack.
|
|
|
|
"designer": true
|
|
|
|
},
|
2022-01-13 16:13:05 +00:00
|
|
|
"plugins": [
|
|
|
|
"@typescript-eslint"
|
2022-01-31 10:12:05 -03:00
|
|
|
],
|
2021-10-05 19:08:42 -07:00
|
|
|
"rules": {
|
2022-07-14 03:12:12 +00:00
|
|
|
// ignore errors when a line finishes with (setting this value to 0 ignores all errors)
|
2022-07-09 01:34:52 +00:00
|
|
|
"operator-linebreak": [
|
|
|
|
"error", "after", {
|
|
|
|
"overrides": {
|
|
|
|
"+": "ignore",
|
|
|
|
"-": "ignore",
|
|
|
|
":": "ignore",
|
|
|
|
"*": "ignore",
|
|
|
|
"?": "ignore",
|
|
|
|
">": "ignore",
|
|
|
|
"||": "ignore",
|
2022-07-13 01:45:36 +00:00
|
|
|
"&&": "ignore",
|
|
|
|
"(": "ignore"
|
2022-07-09 01:34:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2022-07-13 01:45:36 +00:00
|
|
|
"object-curly-newline": "off",
|
2021-12-14 15:08:54 +00:00
|
|
|
"no-underscore-dangle": "off",
|
2021-12-03 10:58:25 -08:00
|
|
|
"no-plusplus": "off",
|
2021-12-19 00:44:08 -08:00
|
|
|
"no-param-reassign": "off",
|
2022-01-31 10:12:05 -03:00
|
|
|
"max-len": [
|
|
|
|
1,
|
|
|
|
300
|
|
|
|
],
|
2021-12-13 21:30:37 +00:00
|
|
|
"class-methods-use-this": "off",
|
2022-01-31 10:12:05 -03:00
|
|
|
"no-console": "off",
|
2022-01-13 16:13:05 +00:00
|
|
|
// codebase contains many this aliases, fix in the future?
|
|
|
|
"@typescript-eslint/no-this-alias": "off",
|
2022-01-31 00:05:22 +00:00
|
|
|
// Remove once migration is completed ...
|
|
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
2022-01-31 10:12:05 -03:00
|
|
|
"import/extensions": [
|
|
|
|
"error",
|
|
|
|
"ignorePackages",
|
|
|
|
{
|
|
|
|
"js": "never",
|
|
|
|
"jsx": "never",
|
|
|
|
"ts": "never",
|
|
|
|
"tsx": "never"
|
|
|
|
}
|
2022-07-09 01:34:52 +00:00
|
|
|
],
|
|
|
|
"implicit-arrow-linebreak": "off"
|
2021-12-02 00:41:56 +00:00
|
|
|
},
|
|
|
|
"settings": {
|
2022-01-31 10:12:05 -03:00
|
|
|
"import/resolver": {
|
|
|
|
"webpack": {
|
|
|
|
"config": "./webpack.common.js"
|
|
|
|
},
|
|
|
|
"node": {
|
|
|
|
"extensions": [
|
|
|
|
".js",
|
|
|
|
".ts"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-07-09 01:34:52 +00:00
|
|
|
}
|