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