partey_workadventure/front/.eslintrc.js

51 lines
1.5 KiB
JavaScript
Raw Normal View History

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",
"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",
"project": "./tsconfig.json",
"extraFileExtensions": [".svelte"]
2020-04-04 16:16:20 +02:00
},
"plugins": [
"@typescript-eslint",
"svelte3"
],
"overrides": [
{
"files": ["*.svelte"],
"processor": "svelte3/svelte3"
}
2020-04-04 16:16:20 +02:00
],
"rules": {
2020-06-09 23:12:54 +02:00
"no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "error",
// 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",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-unsafe-argument": "off",
},
"settings": {
"svelte3/typescript": true,
"svelte3/ignore-styles": () => true
2020-04-04 16:16:20 +02:00
}
}