Commit Graph

15 Commits

Author SHA1 Message Date
7e5322a214 Use naming conventions from airbnb config
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
c29c79f8bf Remove eslint rules already covered by extended configs
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
9039c576b0 Allow named default exports
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
1c9c66c94c Put standard eslint rules before airbnb configs
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
2fc77cf1fe Add airbnb-typescript configuration to ESLlint
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
ad0046cf9f Install eslint-config-airbnb-typescript
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
2d4c4db5d0 Use new JSX transform rules in ESLint
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
b0004d4d4a Fix issue with getting isFuture when scheduling newsletters
- Update tests
- Update tsconfig to include the ts tests
- Adjust eslint.ts.json config to work with tests

[MAILPOET-4163]
2022-03-14 10:15:35 +01:00
eef34670e9 Update eslint to version 8 and related package updates [MAILPOET-4114] 2022-02-23 10:44:39 +01:00
8405659d07 Disable "no-void" rule for TS as it can conflict with "no-floating-promises"
When one needs to ignore promise result (for instance in a useEffect React hook), the
"@typescript-eslint/no-floating-promises" will enforce it's ignored using "void doSomething()"
but the "no-void" rule disables that. It's probably better to keep "no-floating-promises" so
that we mark ignored promise results explicitly with "void".

[MAILPOET-4135]
2022-02-21 09:56:26 +01:00
47ad1ec18e Adjust eslint-ts for premium plugin to match the free one
We have turned some checks off for free plugin which need
to be added to the eslint config for the premium plugin
since we are going to use the free plugin's files as type
source for the premium plugin

[MAILPOET-3140]
2022-02-21 09:53:50 +01:00
6b470981ae Add module entry files and expose mailpoet module
- Expose mailpoet and dependencies for premium plugin to use
- Update type definitions for window
- Fix typings
- Get rid of side-effects in mailpoet.js(ts)

[MAILPOET-3140]
2022-02-21 09:53:50 +01:00
aac262f1c1 Add new exceptions to the eslint premium config
[MAILPOET-3358]
2022-01-31 13:31:06 +01:00
ed7de702fa Add eslint configuration from premium
[MAILPOET-3358]
2022-01-31 13:31:06 +01:00
dcdcc9eb08 Move eslint configuration to a new folder
[MAILPOET-3358]
2022-01-31 13:31:06 +01:00