2021-10-05 02:05:34 +02:00
|
|
|
{
|
2022-01-13 17:13:05 +01:00
|
|
|
"parser": "@typescript-eslint/parser",
|
2021-10-05 02:05:34 +02:00
|
|
|
"env": {
|
|
|
|
"browser": true,
|
2021-12-14 16:08:54 +01:00
|
|
|
"commonjs": true,
|
|
|
|
"jest": true
|
2021-10-05 02:05:34 +02:00
|
|
|
},
|
|
|
|
"extends": [
|
2021-12-02 01:41:56 +01:00
|
|
|
"airbnb-base",
|
2022-01-13 17:13:05 +01:00
|
|
|
"plugin:cypress/recommended",
|
|
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended"
|
2021-10-05 02:05:34 +02:00
|
|
|
],
|
2021-12-23 20:41:39 +01:00
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 11
|
|
|
|
},
|
2021-12-20 21:54:31 +01:00
|
|
|
"globals": {
|
|
|
|
// designer is a global currently used as a hack. Remove this when fixing the hack.
|
|
|
|
"designer": true
|
|
|
|
},
|
2022-01-13 17:13:05 +01:00
|
|
|
"plugins": [
|
|
|
|
"@typescript-eslint"
|
|
|
|
],
|
2021-10-06 04:08:42 +02:00
|
|
|
"rules": {
|
2021-12-14 16:08:54 +01:00
|
|
|
"no-underscore-dangle": "off",
|
2021-12-03 19:58:25 +01:00
|
|
|
"no-plusplus": "off",
|
2021-12-19 09:44:08 +01:00
|
|
|
"no-param-reassign": "off",
|
2021-12-23 20:55:07 +01:00
|
|
|
"max-len": [1,300],
|
2021-12-13 22:30:37 +01:00
|
|
|
"class-methods-use-this": "off",
|
2021-12-23 20:55:07 +01:00
|
|
|
"no-console" : "off",
|
2022-01-13 17:13:05 +01:00
|
|
|
"no-unused-vars": ["error", { "args": "none" }],
|
|
|
|
"import/extensions": ["error", {
|
|
|
|
"ts": "never"
|
|
|
|
}],
|
|
|
|
// codebase contains many this aliases, fix in the future?
|
|
|
|
"@typescript-eslint/no-this-alias": "off",
|
|
|
|
// no-unused-vars already used
|
|
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
|
|
"@typescript-eslint/ban-ts-comment": "warn",
|
|
|
|
"@typescript-eslint/no-empty-function": "warn",
|
|
|
|
"import/no-extraneous-dependencies": ["warn", {"packageDir": "./", "devDependencies": false, "optionalDependencies": false, "peerDependencies": false}]
|
2021-12-02 01:41:56 +01:00
|
|
|
},
|
|
|
|
"settings": {
|
|
|
|
"import/resolver": {
|
|
|
|
"webpack": {
|
|
|
|
"config": "./webpack.common.js"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|