Skip to content

Commit

Permalink
allowing empty properties by threathing them as undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Mephisto5558 committed Sep 9, 2024
1 parent 367096a commit d421113
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function importJsonC(path) {
let filename = basename(path, '.jsonc');
filename = filename == 'eslint' ? '' : `${filename}/`;

return Object.fromEntries(Object.entries(rules).map(([k, v]) => [`${filename}${k}`, v]));
return Object.fromEntries(Object.entries(rules).filter(([, v]) => v != '').map(([k, v]) => [`${filename}${k}`, v]));
}

const
Expand Down Expand Up @@ -45,7 +45,7 @@ const
export default [
{
name: 'eslint-config:all',
files: ['**/*.js', '**/*.ts'],
files: ['**/*.js', '**/*.ts', '**/*.html'],
languageOptions: {
parser,
parserOptions: {
Expand Down

0 comments on commit d421113

Please sign in to comment.