diff --git a/.eslintrc.json b/.eslintrc.json index 6dc72e1..755912e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,5 +1,5 @@ { - "extends": ["eslint:recommended"], + "extends": ["eslint:recommended", "plugin:optimal-modules/recommended"], "env": { "es2022": true, "node": true, diff --git a/changelog.md b/changelog.md index 851b2d2..d5626a7 100644 --- a/changelog.md +++ b/changelog.md @@ -65,6 +65,7 @@ - Updated dev dependencies. - Simplified dev dependencies and config for ESLint. +- Integrated the ESLint plugin [`eslint-plugin-optimal-modules`](https://npm.im/eslint-plugin-optimal-modules). - Check TypeScript types via a new package `types` script. - Removed the [`jsdoc-md`](https://npm.im/jsdoc-md) dev dependency and the related package scripts, replacing the readme “API” section with a manually written “Exports” section. - Updated GitHub Actions CI config: diff --git a/package.json b/package.json index 35a2ccf..c446c06 100644 --- a/package.json +++ b/package.json @@ -54,6 +54,7 @@ "coverage-node": "^8.0.0", "esbuild": "^0.19.5", "eslint": "^8.52.0", + "eslint-plugin-optimal-modules": "^1.0.2", "eslint-plugin-simple-import-sort": "^10.0.0", "graphql": "^16.8.1", "graphql-tag": "^2.12.6",