Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyunhe committed Feb 6, 2024
1 parent 1b6c677 commit ec36c9d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/eslint-config-ali/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"devDependencies": {
"@types/node": "^20.11.16",
"eslint": "^8.56.0",
"eslint-plugin-jsx-plus": "^0.1.0",
"mocha": "^8.4.0",
"typescript": "^4.9.5"
}
Expand Down
9 changes: 9 additions & 0 deletions packages/eslint-config-ali/rules/node.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
/**
* 本文件继承了 egg-config-egg 的 node 规则,规则由 eslint-plugin-node 提供
* @link https://github.com/eggjs/eslint-config-egg/blob/master/lib/rules/node.js
* @link https://github.com/mysticatea/eslint-plugin-node
*/

module.exports = {
extends: [
'eslint-config-egg/lib/rules/node',
],
};
2 changes: 1 addition & 1 deletion packages/eslint-config-ali/test/use-babel-eslint.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('test/use-babel-eslint.test.js', () => {
const { messages, errorCount, fatalErrorCount, warningCount } = results[0];

assert.equal(fatalErrorCount, 0);
assert.equal(errorCount, 27);
assert.equal(errorCount, 26);
assert.equal(warningCount, 7);

const errorReportedByReactPlugin = messages.filter((result) => {
Expand Down

0 comments on commit ec36c9d

Please sign in to comment.