mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-25 11:17:50 +01:00
efb606c064
* 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
25 lines
922 B
JavaScript
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',
|
|
},
|
|
},
|
|
],
|
|
}
|