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