Sam Najian
6f4bbe4a80
Adjust config to warn for default exports, exclude stories
...
[MAILPOET-4202]
2022-04-20 08:34:01 +02:00
dependabot[bot]
31828a1cce
Bump minimist from 1.2.5 to 1.2.6 in /eslint-config
...
Bumps [minimist](https://github.com/substack/minimist ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases )
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-18 08:54:15 +02:00
Jan Jakes
ab27eaee2d
Autoformat files with prettier
...
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
269e598511
Fix eslint parsing of newsletter editor tests
...
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
69ddf8cbe0
Remove specific eslint formatting rules (prettier formats now)
...
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
6d9db1cde5
Add prettier ruleset to eslint configuration
...
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
45acd821a3
Install eslint-config-prettier
...
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
7e5322a214
Use naming conventions from airbnb config
...
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
c29c79f8bf
Remove eslint rules already covered by extended configs
...
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
9039c576b0
Allow named default exports
...
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
1c9c66c94c
Put standard eslint rules before airbnb configs
...
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
2fc77cf1fe
Add airbnb-typescript configuration to ESLlint
...
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
ad0046cf9f
Install eslint-config-airbnb-typescript
...
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
2d4c4db5d0
Use new JSX transform rules in ESLint
...
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Sam Najian
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
David Remer
eef34670e9
Update eslint to version 8 and related package updates [MAILPOET-4114]
2022-02-23 10:44:39 +01:00
Jan Jakes
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
Sam Najian
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
Sam Najian
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
Jan Lysý
aac262f1c1
Add new exceptions to the eslint premium config
...
[MAILPOET-3358]
2022-01-31 13:31:06 +01:00
Jan Lysý
ed7de702fa
Add eslint configuration from premium
...
[MAILPOET-3358]
2022-01-31 13:31:06 +01:00
Jan Lysý
dcdcc9eb08
Move eslint configuration to a new folder
...
[MAILPOET-3358]
2022-01-31 13:31:06 +01:00