forked from element-hq/element-web-ilag-module
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
45 lines (41 loc) · 1.19 KB
/
.eslintrc.js
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
44
45
module.exports = {
plugins: [
"matrix-org",
],
extends: [
"plugin:matrix-org/babel",
],
env: {
browser: true,
node: true,
},
rules: {
// No specific rules
},
overrides: [{
files: [
"**/*.ts",
"**/*.tsx",
],
extends: [
"plugin:matrix-org/typescript",
],
rules: {
// TypeScript has its own version of this
"@babel/no-invalid-this": "off",
// We're okay being explicit at the moment
"@typescript-eslint/no-empty-interface": "off",
// Turn off things we're not concerned about here
"quotes": "off",
"object-curly-spacing": "off",
"array-bracket-spacing": "off",
"quote-props": "off", // "be sensible"
"@typescript-eslint/no-explicit-any": "off", // handled at review time
// We want to go a bit long for clarity
"max-len": ["error", {"code": 160}],
// Casing is something we'll resolve at review time
"camelcase": "off",
"@typescript-eslint/naming-convention": "off",
},
}],
};