mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-25 04:25:13 +03:00
ef496d55cd
Some checks are pending
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
66 lines
2.0 KiB
JSON
66 lines
2.0 KiB
JSON
{
|
|
"root": true,
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true,
|
|
"node": true
|
|
},
|
|
"extends": ["standard-with-typescript", "plugin:svelte/prettier"],
|
|
"globals": {
|
|
"Atomics": "readonly",
|
|
"SharedArrayBuffer": "readonly"
|
|
},
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaVersion": 2020,
|
|
"sourceType": "module",
|
|
"project": ["tsconfig.json"],
|
|
"extraFileExtensions": [".svelte"]
|
|
},
|
|
"plugins": ["@typescript-eslint", "import"],
|
|
"ignorePatterns": ["*.json", "node_modules/*", ".eslintrc.js"],
|
|
"settings": {
|
|
"import/resolver": {
|
|
"node": {
|
|
"extensions": [".ts"],
|
|
"moduleDirectory": ["src", "node_modules"]
|
|
}
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["**/*.svelte"],
|
|
"parser": "svelte-eslint-parser",
|
|
"parserOptions": {
|
|
"parser": "@typescript-eslint/parser"
|
|
},
|
|
"rules": {
|
|
"@typescript-eslint/no-unused-vars": ["warn", {
|
|
// Registered Svelte names for better component typings,
|
|
// see https://raqueebuddinaziz.com/blog/svelte-type-events-slots-and-props/#restprops-props
|
|
"varsIgnorePattern": "^\\$\\$(Props|Events|Slots)$"
|
|
}],
|
|
"@typescript-eslint/array-type": "off",
|
|
"@typescript-eslint/promise-function-async": "off",
|
|
"@typescript-eslint/consistent-type-imports": "off",
|
|
"import/first": "warn",
|
|
"import/no-duplicates": "warn",
|
|
"import/no-mutable-exports": "off",
|
|
"import/no-unresolved": "warn",
|
|
"no-multiple-empty-lines": "warn",
|
|
"no-undef-init": "off",
|
|
"no-use-before-define": "warn",
|
|
// This need to be enabled eventually
|
|
"@typescript-eslint/explicit-function-return-type": "warn",
|
|
"@typescript-eslint/strict-boolean-expressions":"warn",
|
|
"@typescript-eslint/prefer-nullish-coalescing": "warn",
|
|
"@typescript-eslint/no-use-before-define": "warn",
|
|
"@typescript-eslint/no-floating-promises": "warn"
|
|
}
|
|
}
|
|
],
|
|
"rules": {
|
|
"svelte/no-at-html-tags": "error"
|
|
}
|
|
}
|