diff --git a/eslint.config.js b/eslint.config.js index 94bebc30..de418956 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -4,6 +4,7 @@ const js = require('@eslint/js'); const { FlatCompat } = require('@eslint/eslintrc'); const globals = require('globals'); const markdown = require('eslint-plugin-markdown'); +const pluginN = require('eslint-plugin-n'); const eslintPluginConfig = require('eslint-plugin-eslint-plugin/configs/all'); const compat = new FlatCompat({ @@ -15,23 +16,12 @@ module.exports = [ ...compat.extends( 'not-an-aardvark/node', 'plugin:eslint-comments/recommended', - 'plugin:node/recommended', 'plugin:prettier/recommended', 'plugin:unicorn/recommended' ), + pluginN.configs['flat/recommended'], { - languageOptions: { sourceType: 'commonjs' }, rules: { - 'comma-dangle': [ - 'error', - { - arrays: 'always-multiline', - objects: 'always-multiline', - functions: 'never', // disallow trailing commas in function(es2017) - }, - ], - 'require-jsdoc': 'error', - 'eslint-comments/no-unused-disable': 'error', 'eslint-comments/require-description': 'error', diff --git a/package.json b/package.json index 3b2f1b21..b0bf3c84 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-eslint-plugin": "file:./", "eslint-plugin-markdown": "^3.0.0", - "eslint-plugin-node": "^11.1.0", + "eslint-plugin-n": "^16.6.2", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-unicorn": "^46.0.0", "eslint-remote-tester": "^3.0.0",