Skip to content

Commit 13a0f65

Browse files
committed
replace eslint-plugin-eslint-comments
now using @eslint-community/eslint-plugin-eslint-comments
1 parent 4310e36 commit 13a0f65

5 files changed

+27
-36
lines changed

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ In the project's `eslint.config.js` file.
1919
```javascript
2020
import eslintConfigCityssm from 'eslint-config-cityssm'
2121

22-
export default [
23-
...eslintConfigCityssm
24-
]
22+
export default [...eslintConfigCityssm]
2523
```
2624

2725
## Included Plugins
@@ -30,7 +28,7 @@ export default [
3028

3129
- [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint)
3230
- [eslint-config-love](https://www.npmjs.com/package/eslint-config-love)
33-
- [eslint-plugin-eslint-comments](https://www.npmjs.com/package/eslint-plugin-eslint-comments)
31+
- [@eslint-community/eslint-plugin-eslint-comments](https://www.npmjs.com/package/@eslint-community/eslint-plugin-eslint-comments)
3432
- [eslint-plugin-import](https://www.npmjs.com/package/eslint-plugin-import)
3533
- [eslint-plugin-jsdoc](https://www.npmjs.com/package/eslint-plugin-jsdoc)
3634
- [eslint-plugin-n](https://www.npmjs.com/package/eslint-plugin-n)

eslint.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import eslint from '@eslint/js';
2+
import eslintPluginEslintComments from '@eslint-community/eslint-plugin-eslint-comments/configs';
23
import eslintConfigLove from 'eslint-config-love';
34
import eslintPluginJsdoc from 'eslint-plugin-jsdoc';
45
import eslintPluginNoSecrets from 'eslint-plugin-no-secrets';
@@ -10,7 +11,7 @@ import eslintPluginUnicorn from 'eslint-plugin-unicorn';
1011
import tseslint from 'typescript-eslint';
1112
export default tseslint.config(
1213
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
13-
eslint.configs.recommended, ...tseslint.configs.recommended, eslintPluginJsdoc.configs['flat/recommended-typescript'], eslintPluginRegexp.configs['flat/recommended'],
14+
eslint.configs.recommended, ...tseslint.configs.recommended, eslintPluginEslintComments.recommended, eslintPluginJsdoc.configs['flat/recommended-typescript'], eslintPluginRegexp.configs['flat/recommended'],
1415
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
1516
eslintPluginSecurity.configs.recommended,
1617
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument

eslint.config.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import eslint from '@eslint/js'
2+
import eslintPluginEslintComments from '@eslint-community/eslint-plugin-eslint-comments/configs'
23
import eslintConfigLove from 'eslint-config-love'
34
import eslintPluginJsdoc from 'eslint-plugin-jsdoc'
45
import eslintPluginNoSecrets from 'eslint-plugin-no-secrets'
@@ -14,6 +15,8 @@ export default tseslint.config(
1415
eslint.configs.recommended,
1516

1617
...tseslint.configs.recommended,
18+
19+
eslintPluginEslintComments.recommended,
1720
eslintPluginJsdoc.configs['flat/recommended-typescript'],
1821
eslintPluginRegexp.configs['flat/recommended'],
1922

package-lock.json

+18-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "eslint-config-cityssm",
33
"type": "module",
44
"description": "ESLint rules used in the City of Sault Ste. Marie's TypeScript projects.",
5-
"version": "3.0.4",
5+
"version": "3.1.0",
66
"main": "eslint.config.js",
77
"exports": {
88
".": "./eslint.config.js",
@@ -41,10 +41,10 @@
4141
"author": "The Corporation of the City of Sault Ste. Marie",
4242
"license": "Unlicense",
4343
"dependencies": {
44+
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
4445
"@eslint/js": "^9.3.0",
4546
"eslint": "^8.57.0",
4647
"eslint-config-love": "^48.0.0",
47-
"eslint-plugin-eslint-comments": "^3.2.0",
4848
"eslint-plugin-import": "^2.29.1",
4949
"eslint-plugin-jsdoc": "^48.2.6",
5050
"eslint-plugin-n": "^17.7.0",

0 commit comments

Comments
 (0)