Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Add missing eslint rules

Blue Mouseac521c0e8733
diff --git a/.eslintrc.js b/.eslintrc.js
index 4842ab6e0..771e9cd8c 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -4,10 +4,7 @@ module.exports = {
project: 'tsconfig.json',
sourceType: 'module',
},
- plugins: [
- '@typescript-eslint/eslint-plugin',
- 'lodash',
- ],
+ plugins: ['@typescript-eslint/eslint-plugin', 'lodash'],
extends: [
'airbnb-base',
'airbnb-typescript/base',
@@ -28,6 +25,8 @@ module.exports = {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
+ '@typescript-eslint/lines-between-class-members': 'off',
+ '@typescript-eslint/no-throw-literal': 'off',
'lodash/prefer-lodash-method': 'off', // disabled because lodash considers some of the typeorm methods as unsafe
// 'lodash/prefer-lodash-method': 'warn',
'no-param-reassign': 'off',
@@ -52,9 +51,6 @@ module.exports = {
'max-classes-per-file': 'off',
'@typescript-eslint/no-unused-vars': 'off', // disabled in favour of no-unused-vars
'no-unused-vars': 'warn',
- 'semi': [
- 'error',
- 'never'
- ]
+ semi: ['error', 'never'],
},
-};
+}