2020-10-12 01:22:43 +02:00
|
|
|
{
|
|
|
|
"globals": {},
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"commonjs": true,
|
|
|
|
"node": true,
|
2021-10-04 23:03:36 +02:00
|
|
|
"es2021": true
|
2020-10-12 01:22:43 +02:00
|
|
|
},
|
2021-02-13 15:16:41 +01:00
|
|
|
"parser": "@typescript-eslint/parser",
|
2021-07-30 12:49:41 +02:00
|
|
|
"parserOptions": {
|
2021-10-04 23:03:36 +02:00
|
|
|
"ecmaVersion": 2021
|
2021-07-30 12:49:41 +02:00
|
|
|
},
|
2021-02-13 15:16:41 +01:00
|
|
|
"plugins": [
|
2021-10-26 21:08:05 +02:00
|
|
|
"@typescript-eslint",
|
|
|
|
"html"
|
2021-02-13 15:16:41 +01:00
|
|
|
],
|
2020-10-12 01:22:43 +02:00
|
|
|
"extends": [
|
2021-07-30 12:49:41 +02:00
|
|
|
"airbnb-base",
|
2020-10-12 01:22:43 +02:00
|
|
|
"eslint:recommended",
|
2021-07-30 12:49:41 +02:00
|
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
2020-10-12 01:22:43 +02:00
|
|
|
"plugin:import/errors",
|
|
|
|
"plugin:import/warnings",
|
|
|
|
"plugin:json/recommended-with-comments",
|
2021-07-30 12:49:41 +02:00
|
|
|
"plugin:node/recommended",
|
|
|
|
"plugin:promise/recommended"
|
|
|
|
],
|
|
|
|
"ignorePatterns": [
|
|
|
|
"assets",
|
2021-10-27 14:16:06 +02:00
|
|
|
"demo/helpers/*.js",
|
|
|
|
"demo/typescript/*.js",
|
2021-11-11 17:30:55 +01:00
|
|
|
"demo/faceid/*.js",
|
2021-07-30 12:49:41 +02:00
|
|
|
"dist",
|
|
|
|
"media",
|
|
|
|
"models",
|
|
|
|
"node_modules"
|
2020-10-12 01:22:43 +02:00
|
|
|
],
|
|
|
|
"rules": {
|
2021-02-13 15:21:48 +01:00
|
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
2021-07-29 17:01:50 +02:00
|
|
|
"@typescript-eslint/no-shadow": "error",
|
2021-02-13 15:21:48 +01:00
|
|
|
"@typescript-eslint/no-var-requires": "off",
|
2021-11-12 21:07:23 +01:00
|
|
|
"@typescript-eslint/prefer-as-const": "off",
|
2021-09-12 05:08:18 +02:00
|
|
|
"@typescript-eslint/triple-slash-reference": "off",
|
2021-10-10 23:52:43 +02:00
|
|
|
"@typescript-eslint/no-inferrable-types": "off",
|
2021-10-25 19:09:00 +02:00
|
|
|
"@typescript-eslint/no-empty-interface": ["error", { "allowSingleExtends": true }],
|
2020-10-12 01:22:43 +02:00
|
|
|
"camelcase": "off",
|
2021-10-19 17:28:59 +02:00
|
|
|
"class-methods-use-this": "off",
|
2020-11-19 20:45:59 +01:00
|
|
|
"dot-notation": "off",
|
|
|
|
"func-names": "off",
|
2020-10-12 01:22:43 +02:00
|
|
|
"guard-for-in": "off",
|
|
|
|
"import/extensions": "off",
|
2021-11-11 17:30:55 +01:00
|
|
|
"import/named": "off",
|
2020-11-19 20:45:59 +01:00
|
|
|
"import/no-extraneous-dependencies": "off",
|
2021-03-14 04:31:09 +01:00
|
|
|
"import/no-named-as-default": "off",
|
2021-02-13 15:16:41 +01:00
|
|
|
"import/no-unresolved": "off",
|
2021-02-13 15:21:48 +01:00
|
|
|
"import/prefer-default-export": "off",
|
|
|
|
"lines-between-class-members": "off",
|
2020-11-19 20:45:59 +01:00
|
|
|
"max-len": [1, 275, 3],
|
|
|
|
"newline-per-chained-call": "off",
|
|
|
|
"no-async-promise-executor": "off",
|
2020-10-12 01:22:43 +02:00
|
|
|
"no-await-in-loop": "off",
|
|
|
|
"no-bitwise": "off",
|
|
|
|
"no-case-declarations":"off",
|
|
|
|
"no-continue": "off",
|
2021-11-09 16:39:23 +01:00
|
|
|
"no-else-return": "off",
|
2021-07-29 17:01:50 +02:00
|
|
|
"no-lonely-if": "off",
|
2020-10-12 01:22:43 +02:00
|
|
|
"no-loop-func": "off",
|
|
|
|
"no-mixed-operators": "off",
|
|
|
|
"no-param-reassign":"off",
|
|
|
|
"no-plusplus": "off",
|
2021-07-30 12:49:41 +02:00
|
|
|
"no-process-exit": "off",
|
2020-11-19 20:45:59 +01:00
|
|
|
"no-regex-spaces": "off",
|
2020-10-12 01:22:43 +02:00
|
|
|
"no-restricted-globals": "off",
|
|
|
|
"no-restricted-syntax": "off",
|
2020-10-13 15:59:21 +02:00
|
|
|
"no-return-assign": "off",
|
2021-07-29 17:01:50 +02:00
|
|
|
"no-shadow": "off",
|
2020-11-19 20:45:59 +01:00
|
|
|
"no-underscore-dangle": "off",
|
2021-02-13 15:21:48 +01:00
|
|
|
"node/no-missing-import": ["error", { "tryExtensions": [".js", ".json", ".ts"] }],
|
2020-11-19 20:45:59 +01:00
|
|
|
"node/no-unpublished-import": "off",
|
|
|
|
"node/no-unpublished-require": "off",
|
2020-10-12 01:22:43 +02:00
|
|
|
"node/no-unsupported-features/es-syntax": "off",
|
|
|
|
"node/shebang": "off",
|
|
|
|
"object-curly-newline": "off",
|
|
|
|
"prefer-destructuring": "off",
|
2020-11-19 20:45:59 +01:00
|
|
|
"prefer-template":"off",
|
2020-10-12 01:22:43 +02:00
|
|
|
"promise/always-return": "off",
|
|
|
|
"promise/catch-or-return": "off",
|
|
|
|
"promise/no-nesting": "off",
|
2021-02-13 15:21:48 +01:00
|
|
|
"radix": "off"
|
2020-10-12 01:22:43 +02:00
|
|
|
}
|
2021-07-30 12:49:41 +02:00
|
|
|
}
|