Skip to content

Commit

Permalink
feat(eslint 9): Update package to use latest eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ff6347 committed Jun 7, 2024
1 parent 630a29e commit 49b6216
Show file tree
Hide file tree
Showing 8 changed files with 725 additions and 325 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -271,3 +271,4 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
.envrc
.vscode/settings.json
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.11.1
v22.2.0
32 changes: 0 additions & 32 deletions .vscode/settings.json

This file was deleted.

16 changes: 3 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,13 @@

This is a sharable eslint config for the @technologiestiftung organization. Should be the basis for JS and TS. Still WIP

~~The idea here is to start out with a flat config but still be backwards compatible with the old config. So our team does not have to set the env variable `ESLINT_USE_FLAT_CONFIG=true` but can just reference this config as extend in the old config style if they need to.~~
After some testing it is not that easy to turn the config from flat file to commonjs. Since the old config will be deprecated soon with the release of eslint 9.0 this is actually to much effort. So we will just use the flat config and be done with it. \o/

The rules we apply should also be only for coding style not formatting. We should use prettier for that.

## TODO

- [ ] Add more relevant rules
- [x] Figure out how we can use this for javascript and typescript projects
- [x] Add tests
- [ ] ~~Figure out how we can leverage the flat config already and be backwards compatible~~
- [ ] Add more relevant rules
- [ ] Add relevant tests

## Prerequisites

Expand Down Expand Up @@ -51,13 +47,7 @@ export default [
```

```bash
ESLINT_USE_FLAT_CONFIG=true npx eslint
```

If you are using VSCode set the following in your settings:

```json
{ "eslint.experimental.useFlatConfig": true }
npx eslint
```

## Examples
Expand Down
Loading

0 comments on commit 49b6216

Please sign in to comment.