Open AMorgaut opened 1 month ago
A working patch was made in ecocode dashboard
// patch ecocode plugin for flat config support
// see https://eslint.org/docs/latest/extend/plugin-migration-flat-config
if (!ecocode.configs['flat/recommended']) {
ecocode.meta = {
name: "@ecocode/eslint-plugin",
version: "1.5.0"
}
ecocode.configs['flat/recommended'] = {
plugins: {
'@ecocode': ecocode
},
rules: ecocode.configs.recommended.rules,
};
}
Created the pull request #51 which will need to be tested
Current Behavior
The plugin ESLint plugin is not compatible with the latest ESLint versions which requires flat configuration
Expected Behavior
It should be possible to integrate the Ecocode ESLint config into projects using recent ESLint versions which don't support
.eslintrc
config file anymore but require aneslint.config.json
file with flat configurationsSteps to Reproduce
Failure Logs
No response
ecoCode-javascript Version
1.15
SonarQube Version
N/A
Additional Information
The plugin should follow the ESLint migration guide https://eslint.org/docs/latest/extend/plugin-migration-flat-config