Skip to content

Commit

Permalink
Update README rule counts
Browse files Browse the repository at this point in the history
  • Loading branch information
saberduck committed Nov 29, 2024
1 parent 4ad3e46 commit 850c631
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This repository now hosts [eslint-plugin-sonarjs](./packages/jsts/src/rules/READ
# Features

- Advanced rules based on pattern matching and control flow analysis
- [406 JS rules](https://rules.sonarsource.com/javascript) and [411 TS rules](https://rules.sonarsource.com/typescript)
- [408 JS rules](https://rules.sonarsource.com/javascript) and [413 TS rules](https://rules.sonarsource.com/typescript)
- [26 CSS rules](https://rules.sonarsource.com/css)
- Compatible with ECMAScript 2015-2020
- React JSX, Flow, Vue, and AWS lambda functions support for JavaScript and TypeScript
Expand Down
2 changes: 1 addition & 1 deletion tools/count-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ async function getJsonFiles(pathToRules) {
return Promise.all(
filenames
.filter(filename => filename.endsWith('.json') && filename.length <= 'S1234.json'.length)
.map(async file => await import(path.join(pathToRules, file), { assert: { type: 'json' } })),
.map(async file => await import(path.join(pathToRules, file), { with: { type: 'json' } })),
);
}

0 comments on commit 850c631

Please sign in to comment.