|
|
|
|
@ -4,7 +4,7 @@
@@ -4,7 +4,7 @@
|
|
|
|
|
"browser": true, |
|
|
|
|
"webextensions": true |
|
|
|
|
}, |
|
|
|
|
"plugins": ["@typescript-eslint", "rxjs", "rxjs-angular"], |
|
|
|
|
"plugins": ["@typescript-eslint", "rxjs", "rxjs-angular", "import"], |
|
|
|
|
"parser": "@typescript-eslint/parser", |
|
|
|
|
"parserOptions": { |
|
|
|
|
"project": ["./tsconfig.eslint.json"], |
|
|
|
|
@ -18,6 +18,16 @@
@@ -18,6 +18,16 @@
|
|
|
|
|
"prettier", |
|
|
|
|
"plugin:rxjs/recommended" |
|
|
|
|
], |
|
|
|
|
"settings": { |
|
|
|
|
"import/parsers": { |
|
|
|
|
"@typescript-eslint/parser": [".ts"] |
|
|
|
|
}, |
|
|
|
|
"import/resolver": { |
|
|
|
|
"typescript": { |
|
|
|
|
"alwaysTryTypes": true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"rules": { |
|
|
|
|
"@typescript-eslint/no-explicit-any": "off", // TODO: This should be re-enabled |
|
|
|
|
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }], |
|
|
|
|
@ -65,6 +75,27 @@
@@ -65,6 +75,27 @@
|
|
|
|
|
"selector": "CallExpression[callee.name='svgIcon']" |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"curly": ["error", "all"] |
|
|
|
|
"curly": ["error", "all"], |
|
|
|
|
"import/namespace": ["off"], // This doesn't resolve namespace imports correctly, but TS will throw for this anyway |
|
|
|
|
"import/no-restricted-paths": [ |
|
|
|
|
"error", |
|
|
|
|
{ |
|
|
|
|
"zones": [ |
|
|
|
|
// Do not allow angular/node/electron code to be imported into common |
|
|
|
|
{ |
|
|
|
|
"target": "./libs/common/**/*", |
|
|
|
|
"from": "./libs/angular/**/*" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"target": "./libs/common/**/*", |
|
|
|
|
"from": "./libs/node/**/*" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"target": "./libs/common/**/*", |
|
|
|
|
"from": "./libs/electron/**/*" |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|