summaryrefslogtreecommitdiff
path: root/.eslintrc.js
blob: 9e9990a0e3c05efc7b6214f5e6554776d88d35a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module.exports = {
	parser: "@typescript-eslint/parser",
	extends: [
		"eslint:recommended",
		"plugin:@typescript-eslint/recommended",
	],
	plugins: [
		"@typescript-eslint"
	],
	env: {
		browser: true,
		commonjs: true,
		es2021: true,
	},
	rules: {
		"no-constant-binary-expression": "error",
		indent: [ "warn", "tab", { SwitchCase: 1 } ],
		semi: [ "error", "never" ],
		"prefer-const": 0,
		"no-unused-vars": "off",
		"@typescript-eslint/no-unused-vars": [ "error", { "vars": "all", "args": "all", "argsIgnorePattern": "^_" } ],
		"@typescript-eslint/no-explicit-any": "off",
	},
}