📈 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
improved the linting configuration
Blue Mouse9faccdf73d41
diff --git a/.eslintrc.js b/.eslintrc.jsindex e2ab58b51..3375aae95 100644--- a/.eslintrc.js+++ b/.eslintrc.js@@ -4,9 +4,15 @@ module.exports = {project: 'tsconfig.json',sourceType: 'module',},- plugins: ['@typescript-eslint/eslint-plugin'],+ plugins: [+ '@typescript-eslint/eslint-plugin',+ 'lodash',+ ],extends: [+ 'airbnb-base',+ 'airbnb-typescript/base','plugin:@typescript-eslint/recommended',+ // 'eslint:recommended','plugin:prettier/recommended',],root: true,@@ -21,5 +27,27 @@ module.exports = {'@typescript-eslint/explicit-module-boundary-types': 'off','@typescript-eslint/no-explicit-any': 'off','@typescript-eslint/no-namespace': 'off',+ 'arrow-body-style': 'off',+ 'arrow-parens': 'off',+ 'import/no-cycle': 'off',+ 'import/no-named-as-default': 'off',+ 'import/no-named-as-default-member': 'off',+ 'import/prefer-default-export': 'off',+ 'linebreak-style': 'off',+ 'lines-between-class-members': 'off',+ 'lodash/prefer-lodash-method': 'warn',+ 'max-len': 'off',+ 'no-console': 'off',+ 'no-bitwise': 'off',+ 'no-continue': 'off',+ 'no-empty-function': 'off',+ 'no-nested-ternary': 'off',+ 'no-plusplus': 'off',+ 'no-underscore-dangle': 'off',+ 'no-unused-vars': 'warn',+ 'semi': [+ 'error',+ 'never'+ ]},};diff --git a/package.json b/package.jsonindex b760e49c1..60441ff44 100644--- a/package.json+++ b/package.json@@ -49,6 +49,7 @@"crypto-js": "^4.1.1","dayjs": "^1.11.7","dotenv": "^16.0.3",+ "eslint-plugin-lodash": "^7.4.0","express": "^4.18.2","form-data": "^4.0.0","handlebars": "^4.7.7",@@ -93,10 +94,13 @@"@types/passport-jwt": "^3.0.8","@types/supertest": "^2.0.12","@types/ua-parser-js": "^0.7.36",- "@typescript-eslint/eslint-plugin": "^5.55.0",- "@typescript-eslint/parser": "^5.55.0",+ "@typescript-eslint/eslint-plugin": "^5.13.0",+ "@typescript-eslint/parser": "^5.0.0","eslint": "^8.36.0",+ "eslint-config-airbnb-base": "^15.0.0",+ "eslint-config-airbnb-typescript": "^17.0.0","eslint-config-prettier": "^8.7.0",+ "eslint-plugin-import": "^2.27.5","eslint-plugin-prettier": "^4.2.1","jest": "^29.5.0","prettier": "^2.8.4",