summaryrefslogtreecommitdiff
path: root/platform/javascript/.eslintrc.js
blob: 0ff9d67d266b1466baa4141b2d9678afb8d1d274 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
module.exports = {
	"env": {
		"browser": true,
		"es2021": true,
	},
	"extends": [
		"airbnb-base",
	],
	"parserOptions": {
		"ecmaVersion": 12,
	},
	"ignorePatterns": "*.externs.js",
	"rules": {
		"func-names": "off",
		// Use tabs for consistency with the C++ codebase.
		"indent": ["error", "tab"],
		"max-len": "off",
		"no-else-return": ["error", {allowElseIf: true}],
		"curly": ["error", "all"],
		"brace-style": ["error", "1tbs", { "allowSingleLine": false }],
		"no-bitwise": "off",
		"no-continue": "off",
		"no-self-assign": "off",
		"no-tabs": "off",
		"no-param-reassign": ["error", { "props": false }],
		"no-plusplus": "off",
		"no-unused-vars": ["error", { "args": "none" }],
		"prefer-destructuring": "off",
		"prefer-rest-params": "off",
		"prefer-spread": "off",
		"camelcase": "off",
		"no-underscore-dangle": "off",
		"max-classes-per-file": "off",
		"prefer-arrow-callback": "off",
		// Messes up with copyright headers in source files.
		"spaced-comment": "off",
		// Completely breaks emscripten libraries.
		"object-shorthand": "off",
		// Closure compiler (exported properties)
		"quote-props": ["error", "consistent"],
		"dot-notation": "off",
	}
};