11module . exports = {
2- plugins : [
3- "matrix-org" ,
4- ] ,
5- extends : [
6- "plugin:matrix-org/babel" ,
7- ] ,
2+ plugins : [ "matrix-org" ] ,
3+ extends : [ "plugin:matrix-org/babel" ] ,
84 parserOptions : {
95 project : [ "./tsconfig-dev.json" ] ,
106 } ,
@@ -19,32 +15,38 @@ module.exports = {
1915 "padded-blocks" : [ "warn" ] ,
2016 "no-extend-native" : [ "warn" ] ,
2117 "camelcase" : [ "warn" ] ,
22- "no-multi-spaces" : [ "error" , { "ignoreEOLComments" : true } ] ,
23- "space-before-function-paren" : [ "error" , {
24- "anonymous" : "never" ,
25- "named" : "never" ,
26- "asyncArrow" : "always" ,
27- } ] ,
18+ "no-multi-spaces" : [ "error" , { ignoreEOLComments : true } ] ,
19+ "space-before-function-paren" : [
20+ "error" ,
21+ {
22+ anonymous : "never" ,
23+ named : "never" ,
24+ asyncArrow : "always" ,
25+ } ,
26+ ] ,
2827 "arrow-parens" : "off" ,
2928 "prefer-promise-reject-errors" : "off" ,
3029 "quotes" : "off" ,
3130 "indent" : "off" ,
3231 "no-constant-condition" : "off" ,
3332 "no-async-promise-executor" : "off" ,
3433 } ,
35- overrides : [ {
36- "files" : [ "src/**/*.ts" , "test/**/*.ts" ] ,
37- "extends" : [ "plugin:matrix-org/typescript" ] ,
38- "rules" : {
39- // TypeScript has its own version of this
40- "babel/no-invalid-this" : "off" ,
34+ overrides : [
35+ {
36+ files : [ "src/**/*.ts" , "test/**/*.ts" ] ,
37+ extends : [ "plugin:matrix-org/typescript" ] ,
38+ rules : {
39+ // TypeScript has its own version of this
40+ "babel/no-invalid-this" : "off" ,
4141
42- "quotes" : "off" ,
42+ "quotes" : "off" ,
43+ } ,
4344 } ,
44- } , {
45- "files" : [ "src/interfaces/**/*.ts" ] ,
46- "rules" : {
47- "@typescript-eslint/no-empty-object-type" : "off" ,
45+ {
46+ files : [ "src/interfaces/**/*.ts" ] ,
47+ rules : {
48+ "@typescript-eslint/no-empty-object-type" : "off" ,
49+ } ,
4850 } ,
49- } ] ,
51+ ] ,
5052} ;
0 commit comments