mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-29 02:46:32 +01:00
e3bdf30084
* silence some test logs * admit defeat in the battle with `esModuleInterop` * add basic typescript piscina workers * es module fix * remove rollup and compile directly with typescript * fix fetch import error * make piscina work in jest, dist and dev... run plugins through it * simplify tests * store plugin status on the `server` * config types * not all keys needed * add worker concurrency setting * clean up code * fix test worker code * add a basic benchmark test * refactor test * refactor test utils * support more serialized binary formats * mock jest behind enemy lines * less verbose logs in tests * add test to make sure adding more CPU cores makes plugins faster! * clone objects * add 12 * fix linter's worries * remove extra word * improve display * remove the exact cpu count from the list * add postgres and redis services to github to make tests pass * add ENV to config * add ENV to config * add db:init script * add db:init script to CI * No prepublish on yarn install * return queue worker directly * SCREAM! (just a bit more) * remove buffer deprecation warning * run tests serially (so that only one piscina performance test runs at a time) * queue stop * sigterm on piscina error * shut down only once * fix env override * do not always override ENV * do not always override ENV * create team in db-init * test parallelism on github actions (2 cpu cores)
23 lines
807 B
JavaScript
23 lines
807 B
JavaScript
module.exports = {
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['@typescript-eslint'],
|
|
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended', 'prettier/@typescript-eslint'],
|
|
ignorePatterns: ['bin', 'dist', 'node_modules'],
|
|
rules: {
|
|
'@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',
|
|
},
|
|
},
|
|
],
|
|
}
|