2016-03-15 15:04:53 +01:00
|
|
|
{
|
2019-12-23 19:22:54 +01:00
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"plugins": ["@typescript-eslint", "prettier", "sort-class-members"],
|
2019-10-29 19:19:19 +01:00
|
|
|
"extends": [
|
|
|
|
"airbnb-base",
|
2021-12-17 22:26:52 +01:00
|
|
|
"airbnb-typescript",
|
2019-10-29 19:19:19 +01:00
|
|
|
"plugin:prettier/recommended",
|
2019-12-23 19:22:54 +01:00
|
|
|
"plugin:compat/recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended"
|
2019-10-29 19:19:19 +01:00
|
|
|
],
|
2016-03-15 15:04:53 +01:00
|
|
|
"env": {
|
2018-05-28 17:22:09 +02:00
|
|
|
"es6": true,
|
2019-12-23 19:22:54 +01:00
|
|
|
"browser": true,
|
|
|
|
"mocha": true,
|
|
|
|
"cypress/globals": true
|
|
|
|
},
|
|
|
|
"parserOptions": {
|
|
|
|
"project": "./tsconfig.json",
|
|
|
|
"ecmaVersion": 2020
|
2017-07-24 16:18:43 +02:00
|
|
|
},
|
2016-03-15 15:04:53 +01:00
|
|
|
"rules": {
|
2019-10-29 19:19:19 +01:00
|
|
|
"import/prefer-default-export": "off",
|
2018-10-10 13:36:43 +02:00
|
|
|
"import/no-extraneous-dependencies": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"devDependencies": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-console": [
|
|
|
|
"warn",
|
|
|
|
{
|
2019-10-21 18:20:39 +02:00
|
|
|
"allow": ["warn", "error"]
|
2018-10-10 13:36:43 +02:00
|
|
|
}
|
|
|
|
],
|
2018-05-28 18:56:36 +02:00
|
|
|
"no-plusplus": "off",
|
2018-05-28 17:22:09 +02:00
|
|
|
"no-unused-expressions": "off",
|
|
|
|
"no-underscore-dangle": "off",
|
2019-02-22 23:04:55 +01:00
|
|
|
"consistent-return": "off",
|
2019-10-24 19:13:06 +02:00
|
|
|
"import/no-useless-path-segments": "warn",
|
|
|
|
"prefer-destructuring": [
|
|
|
|
"warn",
|
2018-10-10 13:36:43 +02:00
|
|
|
{
|
2019-10-24 19:13:06 +02:00
|
|
|
"array": false,
|
|
|
|
"object": true
|
2018-10-10 13:36:43 +02:00
|
|
|
}
|
2019-10-29 19:26:11 +01:00
|
|
|
],
|
|
|
|
"curly": ["error", "all"],
|
|
|
|
"newline-before-return": "error",
|
|
|
|
"sort-class-members/sort-class-members": [
|
|
|
|
2,
|
|
|
|
{
|
|
|
|
"order": [
|
|
|
|
"[static-properties]",
|
|
|
|
"[static-methods]",
|
|
|
|
"[properties]",
|
|
|
|
"[conventional-private-properties]",
|
|
|
|
"constructor",
|
|
|
|
"[methods]",
|
|
|
|
"[conventional-private-methods]"
|
|
|
|
],
|
|
|
|
"accessorPairPositioning": "getThenSet"
|
|
|
|
}
|
2019-12-23 19:22:54 +01:00
|
|
|
],
|
|
|
|
"lines-between-class-members": "off",
|
2021-12-17 22:26:52 +01:00
|
|
|
"@typescript-eslint/no-namespace": "off",
|
|
|
|
"react/jsx-filename-extension": [0]
|
2019-10-21 18:20:39 +02:00
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
2019-12-23 19:22:54 +01:00
|
|
|
"files": ["*.test.ts"],
|
2019-10-21 18:20:39 +02:00
|
|
|
"env": {
|
|
|
|
"mocha": true
|
2019-10-25 16:43:28 +02:00
|
|
|
},
|
|
|
|
"rules": {
|
2019-10-29 19:19:19 +01:00
|
|
|
"no-restricted-syntax": "off",
|
2019-10-29 22:19:56 +01:00
|
|
|
"compat/compat": "off",
|
2019-12-23 19:22:54 +01:00
|
|
|
"no-new": "off",
|
|
|
|
"@typescript-eslint/no-empty-function": "off",
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
2021-12-17 22:26:52 +01:00
|
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
|
|
"@typescript-eslint/no-unused-expressions": "off",
|
|
|
|
"@typescript-eslint/naming-convention": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"selector": "default",
|
|
|
|
"format": ["camelCase", "PascalCase", "UPPER_CASE"],
|
|
|
|
"leadingUnderscore": "allow"
|
|
|
|
}
|
|
|
|
]
|
2019-10-21 18:20:39 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2019-10-31 13:11:46 +01:00
|
|
|
"files": ["cypress/**"],
|
2019-10-21 18:20:39 +02:00
|
|
|
"plugins": ["cypress"],
|
2019-10-31 13:11:46 +01:00
|
|
|
"rules": {
|
|
|
|
"no-unused-vars": "warn"
|
|
|
|
},
|
2019-10-21 18:20:39 +02:00
|
|
|
"env": {
|
|
|
|
"cypress/globals": true
|
|
|
|
}
|
|
|
|
}
|
2019-10-29 19:19:19 +01:00
|
|
|
],
|
|
|
|
"settings": {
|
|
|
|
"polyfills": [
|
|
|
|
"Array.from",
|
|
|
|
"Array.prototype.find",
|
|
|
|
"Array.prototype.includes",
|
|
|
|
"Symbol",
|
|
|
|
"Symbol.iterator",
|
2019-11-19 19:34:08 +01:00
|
|
|
"DOMTokenList",
|
2019-10-29 19:19:19 +01:00
|
|
|
"Object.assign",
|
|
|
|
"CustomEvent",
|
|
|
|
"Element.prototype.classList",
|
2019-11-19 19:34:08 +01:00
|
|
|
"Element.prototype.closest",
|
|
|
|
"Element.prototype.dataset"
|
2019-12-23 19:22:54 +01:00
|
|
|
],
|
|
|
|
"import/resolver": {
|
|
|
|
"node": {
|
|
|
|
"extensions": [".js", ".ts"]
|
|
|
|
}
|
|
|
|
}
|
2019-10-29 19:19:19 +01:00
|
|
|
}
|
2019-10-21 18:20:39 +02:00
|
|
|
}
|