2019-09-12 21:03:49 +02:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
2019-10-27 15:24:56 +01:00
|
|
|
"es6": true,
|
2021-11-18 19:17:00 +01:00
|
|
|
"jest/globals": true,
|
2019-10-27 15:24:56 +01:00
|
|
|
"node": true
|
2019-09-12 21:03:49 +02:00
|
|
|
},
|
2022-09-02 11:44:06 +05:30
|
|
|
"parser": "@typescript-eslint/parser",
|
2019-09-12 21:03:49 +02:00
|
|
|
"parserOptions": {
|
2021-11-08 22:06:24 +01:00
|
|
|
"ecmaFeatures": {
|
|
|
|
"experimentalObjectRestSpread": true,
|
|
|
|
"jsx": true
|
|
|
|
},
|
|
|
|
"sourceType": "module"
|
2019-09-12 21:03:49 +02:00
|
|
|
},
|
2022-05-10 18:08:32 -07:00
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
2022-09-02 11:44:06 +05:30
|
|
|
"plugin:@typescript-eslint/recommended",
|
2022-06-24 11:11:22 +05:30
|
|
|
"plugin:jsdoc/recommended",
|
2022-05-10 18:08:32 -07:00
|
|
|
"plugin:json/recommended",
|
2022-06-24 11:11:22 +05:30
|
|
|
"plugin:markdown/recommended",
|
2022-10-08 14:38:41 +05:30
|
|
|
"plugin:@cspell/recommended",
|
2022-09-03 13:05:47 +05:30
|
|
|
"prettier"
|
2022-05-10 18:08:32 -07:00
|
|
|
],
|
2022-10-18 21:02:38 +05:30
|
|
|
"plugins": ["@typescript-eslint", "no-only-tests", "html", "jest", "jsdoc", "json", "@cspell"],
|
2021-11-11 07:37:14 +01:00
|
|
|
"rules": {
|
2022-09-03 23:34:19 +01:00
|
|
|
"no-console": "error",
|
2022-05-10 17:29:50 -07:00
|
|
|
"no-prototype-builtins": "off",
|
|
|
|
"no-unused-vars": "off",
|
|
|
|
"jsdoc/check-indentation": "off",
|
|
|
|
"jsdoc/check-alignment": "off",
|
|
|
|
"jsdoc/check-line-alignment": "off",
|
|
|
|
"jsdoc/multiline-blocks": "off",
|
|
|
|
"jsdoc/newline-after-description": "off",
|
|
|
|
"jsdoc/tag-lines": "off",
|
2022-09-03 10:53:25 +05:30
|
|
|
"jsdoc/require-param-description": "off",
|
|
|
|
"jsdoc/require-param-type": "off",
|
|
|
|
"jsdoc/require-returns": "off",
|
|
|
|
"jsdoc/require-returns-description": "off",
|
2022-05-10 17:29:50 -07:00
|
|
|
"cypress/no-async-tests": "off",
|
2022-09-02 11:44:06 +05:30
|
|
|
"@typescript-eslint/ban-ts-comment": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"ts-expect-error": "allow-with-description",
|
|
|
|
"ts-ignore": "allow-with-description",
|
|
|
|
"ts-nocheck": "allow-with-description",
|
|
|
|
"ts-check": "allow-with-description",
|
|
|
|
"minimumDescriptionLength": 10
|
|
|
|
}
|
|
|
|
],
|
2022-05-11 02:52:55 +02:00
|
|
|
"json/*": ["error", "allowComments"],
|
2022-10-11 22:52:49 +05:30
|
|
|
"@cspell/spellchecker": [
|
2022-10-18 23:38:30 +05:30
|
|
|
"error",
|
2022-10-11 22:52:49 +05:30
|
|
|
{
|
|
|
|
"checkIdentifiers": false,
|
|
|
|
"checkStrings": false,
|
2022-10-15 19:43:07 +05:30
|
|
|
"checkStringTemplates": false
|
2022-10-11 22:52:49 +05:30
|
|
|
}
|
2022-10-18 21:03:18 +05:30
|
|
|
],
|
2022-10-17 13:20:17 -04:00
|
|
|
"no-empty": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"allowEmptyCatch": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-only-tests/no-only-tests": "error"
|
2021-12-04 15:28:40 -08:00
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
2022-10-09 22:08:32 +08:00
|
|
|
"files": ["cypress/**", "demos/**"],
|
2021-12-04 15:28:40 -08:00
|
|
|
"rules": {
|
2022-10-09 22:08:32 +08:00
|
|
|
"no-console": "off"
|
2021-12-04 15:28:40 -08:00
|
|
|
}
|
2022-05-10 18:08:32 -07:00
|
|
|
},
|
2022-09-03 23:34:19 +01:00
|
|
|
{
|
2022-10-09 22:08:32 +08:00
|
|
|
"files": ["*.spec.{ts,js}", "cypress/**", "demos/**", "**/docs/**"],
|
2022-09-03 23:34:19 +01:00
|
|
|
"rules": {
|
2022-10-09 22:08:32 +08:00
|
|
|
"jsdoc/require-jsdoc": "off",
|
|
|
|
"@typescript-eslint/no-unused-vars": "off"
|
2022-09-03 23:34:19 +01:00
|
|
|
}
|
2022-09-13 21:39:19 +05:30
|
|
|
},
|
|
|
|
{
|
2022-10-09 22:08:32 +08:00
|
|
|
"files": ["*.html", "*.md", "**/*.md/*"],
|
2022-09-13 21:39:19 +05:30
|
|
|
"rules": {
|
2022-10-09 22:08:32 +08:00
|
|
|
"no-var": "error",
|
|
|
|
"no-undef": "off",
|
2022-09-13 21:39:19 +05:30
|
|
|
"@typescript-eslint/no-unused-vars": "off"
|
|
|
|
}
|
2021-12-04 15:28:40 -08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|