{
	"extends": [
		"eslint:recommended",
		"airbnb-base",
		"plugin:import/typescript"
	],
	"parserOptions": {
		"ecmaVersion": 11,
		"sourceType": "module",
		"project": "./web/tsconfig.json"
	},
	"env": {
		"node": true,
		"browser": true,
		"es2020": true
	},
	"settings": {
		"import/resolver": {
		  "typescript": {
			  "project": "./web"
		  }
		}
	},
	"rules": {
		"class-methods-use-this": "off",
		"import/extensions": [
			"error",
			"ignorePackages",
			{
				"js": "never",
				"ts": "never"
			}
		],
		"import/prefer-default-export": "off",
		"import/no-extraneous-dependencies": "off",
		"indent": [
			"error",
			4
		],
		"no-console": "off",
		"no-tabs": [
			"error",
			{
				"allowIndentationTabs": true
			}
		],
		"no-unused-vars": [
			"error", 
			{ 
				"argsIgnorePattern": "^_",
				"varsIgnorePattern": "^_"
			}
		],
		"quotes": [
			"error",
			"double"
		]
	},
	"overrides": [
		{
			"files": [
				"*.ts"
			],
			"parser": "@typescript-eslint/parser",
			"extends": [
				"plugin:import/typescript",
				"plugin:@typescript-eslint/recommended"
			],
			"plugins": [
				"@typescript-eslint"
			],
			"rules": {
				"@typescript-eslint/ban-ts-comment": "off"
			}
		},
		{
			"files": [
				"*.svelte"
			],
			"plugins": [
				"svelte3"
			],
			"processor": "svelte3/svelte3",
			"rules": {
				"import/first": "off",
				"import/no-duplicates": "off",
				"import/no-mutable-exports": "off",
				"import/no-mutable-unresolved": "off",
				"no-undef": "off",
				"no-unused-vars": "off"
			}
		}
	]
}
