2021-12-06 16:10:35 +01:00
|
|
|
module.exports = {
|
2020-04-04 16:16:20 +02:00
|
|
|
"root": true,
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"es6": true,
|
|
|
|
"node": true
|
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
2020-06-09 23:12:54 +02:00
|
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
2021-12-08 01:34:50 +01:00
|
|
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
2020-04-04 16:16:20 +02:00
|
|
|
],
|
|
|
|
"globals": {
|
|
|
|
"Atomics": "readonly",
|
|
|
|
"SharedArrayBuffer": "readonly"
|
|
|
|
},
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 2018,
|
2020-06-09 23:12:54 +02:00
|
|
|
"sourceType": "module",
|
2021-12-06 16:10:35 +01:00
|
|
|
"project": "./tsconfig.json",
|
|
|
|
"extraFileExtensions": [".svelte"]
|
2020-04-04 16:16:20 +02:00
|
|
|
},
|
|
|
|
"plugins": [
|
2021-12-06 16:10:35 +01:00
|
|
|
"@typescript-eslint",
|
2021-12-08 01:34:50 +01:00
|
|
|
"svelte3",
|
2021-12-06 16:10:35 +01:00
|
|
|
],
|
|
|
|
"overrides": [
|
|
|
|
{
|
2022-04-12 14:21:19 +02:00
|
|
|
"files": ["*.svelte"],
|
|
|
|
"processor": "svelte3/svelte3"
|
2021-12-06 16:10:35 +01:00
|
|
|
}
|
2020-04-04 16:16:20 +02:00
|
|
|
],
|
|
|
|
"rules": {
|
2020-06-09 23:12:54 +02:00
|
|
|
"no-unused-vars": "off",
|
2021-12-08 01:34:50 +01:00
|
|
|
"eol-last": ["error", "always"],
|
2021-05-12 11:44:41 +02:00
|
|
|
"@typescript-eslint/no-explicit-any": "error",
|
2022-01-06 10:49:44 +01:00
|
|
|
"no-throw-literal": "error",
|
2022-04-12 14:21:19 +02:00
|
|
|
"@typescript-eslint/no-unused-vars": ["error"],
|
2021-05-12 11:44:41 +02:00
|
|
|
// TODO: remove those ignored rules and write a stronger code!
|
|
|
|
"@typescript-eslint/no-unsafe-call": "off",
|
|
|
|
"@typescript-eslint/restrict-plus-operands": "off",
|
|
|
|
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
|
|
"@typescript-eslint/no-unsafe-return": "off",
|
|
|
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
2021-12-16 15:57:37 +01:00
|
|
|
"@typescript-eslint/restrict-template-expressions": "off",
|
|
|
|
"@typescript-eslint/no-unsafe-argument": "off",
|
2021-12-06 16:10:35 +01:00
|
|
|
},
|
|
|
|
"settings": {
|
|
|
|
"svelte3/typescript": true,
|
|
|
|
"svelte3/ignore-styles": () => true
|
2020-04-04 16:16:20 +02:00
|
|
|
}
|
2021-07-23 14:55:14 +02:00
|
|
|
}
|