0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 11:17:50 +01:00
posthog/.eslintrc.js
Michael Matloka efb606c064 [plugin-server] Sort imports (https://github.com/PostHog/plugin-server/pull/133)
* Sort imports with ESLint plugin

* Add missing return type

* Fix a return type

* Attempt redisFactory import fix

* Fix test broken in #136

* Fix test broken in #136 for good
2021-02-08 15:55:24 +01:00

25 lines
922 B
JavaScript

module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'simple-import-sort'],
extends: ['plugin:@typescript-eslint/recommended', 'prettier', 'prettier/@typescript-eslint', 'prettier/react'],
ignorePatterns: ['bin', 'dist', 'node_modules'],
rules: {
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-explicit-any': 'off',
curly: 'error',
},
overrides: [
{
files: ['**/__tests__/**/*.ts', 'src/celery/**/*.ts'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
},
},
],
}