Skip to content

Commit

Permalink
Update MIGRATION.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm1957 authored Dec 12, 2024
1 parent 5e3efe6 commit d1e0e19
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,17 @@ The steps are valid for vanilla Javascript and TypeScript repositories. If you a
npm uninstall eslint
npm uninstall eslint-config-prettier
npm uninstall eslint-plugin-prettier
npm uninstall eslint-plugin-security
npm uninstall prettier

- [ ] remove all other eslint / prettier packages you do not plan to add to you personal configuration later

You should remove all `eslint-*` and `prettier.*` packages except those you want to add to the adapterspecific configuration file later. The standard configuration `@iobroker/eslint-config` does not require any additional packages installed at repository level. So in most cases you can safely remove all `eslint-*` and `prettier-*` packages.

To remove i.e. `eslint-plugin-security` issue this command:

npm uninstall eslint-plugin-security

Please note that any additional packages you want to install must be verified to work with eslint 9 and must be added to your configuration file manually .

- [ ] install iobroker standard rules

Expand Down Expand Up @@ -66,7 +74,7 @@ The steps are valid for vanilla Javascript and TypeScript repositories. If you a
];
```

- [ ] create new configuration file 'prettier.config.mjs' for Prettier in the root directory of the repository
- [ ] create new configuration file `prettier.config.mjs` for Prettier in the root directory of the repository
```js
// iobroker prettier configuration file
import prettierConfig from '@iobroker/eslint-config/prettier.config.mjs';
Expand Down

0 comments on commit d1e0e19

Please sign in to comment.