eslint-community / eslint-plugin-security

ESLint rules for Node Security
Apache License 2.0
2.2k stars 108 forks source link

feat!: switch the recommended config to flat #118

Closed aladdin-add closed 11 months ago

aladdin-add commented 1 year ago

This PR adds support for the new eslint config, an example:

// eslint.config.js
const pluginSecurity = require('eslint-plugin-security');

module.exports = [pluginSecurity.configs.recommended];
aladdin-add commented 11 months ago

@nzakas I've updated the title and description to be clearer. can you take another look?

notes: not sure why the pr checker does not know feat!.

nzakas commented 11 months ago

Yeah, looks like it doesn't support that format. I don't have time to look into that right now, but if you do, please feel free.