Skip to content

Commit

Permalink
eslint-config-ali 15.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyunhe committed Feb 6, 2024
1 parent 4f2ba61 commit da039c8
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 247 deletions.
5 changes: 5 additions & 0 deletions packages/eslint-config-ali/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# 更新日志

## 15.0.0 - 2024-02-06

- **BREAKING CHANGE** `node``typescript/node` 不再提供 egg 相关的配置,请使用 `egg``typescript/egg` 替代
- **BREAKING CHANGE** 升级 `vue-eslint-parser` 7.x 到 9.x

## 14.2.1 (2023-12-18)

- 修复 TypeScript 中 `no-undef` 误报的问题
Expand Down
274 changes: 60 additions & 214 deletions packages/eslint-config-ali/README.md

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions packages/eslint-config-ali/egg.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
extends: [
'./node',
'./rules/egg',
].map(require.resolve),
};
27 changes: 13 additions & 14 deletions packages/eslint-config-ali/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,25 +46,24 @@
"eslint": ">=6.8.0"
},
"dependencies": {
"@babel/core": "^7.23.6",
"@babel/eslint-parser": "^7.23.3",
"@babel/core": "^7.23.9",
"@babel/eslint-parser": "^7.23.10",
"@babel/preset-react": "^7.23.3",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint-config-egg": "^13.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-config-egg": "^13.0.0"
"vue-eslint-parser": "^9.4.2"
},
"devDependencies": {
"@types/node": "^14.14.11",
"eslint": "^8.7.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-jsx-plus": "^0.1.0",
"eslint-plugin-vue": "^7.3.0",
"mocha": "^8.2.1",
"typescript": "^4.1.2",
"vue-eslint-parser": "^7.3.0"
"@types/node": "^20.0.0",
"eslint": "^8.56.0",
"eslint-plugin-vue": "^7.20.0",
"mocha": "^8.4.0",
"typescript": "^4.9.5"
}
}
}
11 changes: 11 additions & 0 deletions packages/eslint-config-ali/rules/egg.js
Original file line number Diff line number Diff line change
@@ -0,0 +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',
],
};
9 changes: 0 additions & 9 deletions packages/eslint-config-ali/rules/node.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
/**
* 本文件继承了 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',
],
};
6 changes: 6 additions & 0 deletions packages/eslint-config-ali/typescript/egg.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
extends: [
'./node',
'./rules/egg',
].map(require.resolve),
};
12 changes: 2 additions & 10 deletions packages/f2elint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,24 +94,16 @@
"@types/fs-extra": "^9.0.13",
"@types/glob": "^7.2.0",
"@types/lodash": "^4.14.202",
"@types/node": "^14.18.63",
"@types/node": "^20.0.0",
"@types/react": "^18.2.52",
"@types/react-dom": "^18.2.18",
"@types/stylelint": "^14.0.0",
"@types/text-table": "^0.2.5",
"copyfiles": "^2.4.1",
"gh-pages": "^5.0.0",
"jest": "^27.5.1",
"nyc": "^15.1.0",
"react": "^18.2.0",
"react-doc-ui": "^2.2.1",
"react-dom": "^18.2.0",
"stylelint": "^14.16.1",
"stylelint": "^16.2.1",
"stylelint-config-ali": "workspace:^",
"stylelint-scss": "^4.7.0",
"terminal-link": "^2.1.1",
"text-table": "^0.2.0",
"vue-eslint-parser": "^7.11.0",
"rive": "^2.0.22",
"typescript": "^5.3.3"
},
Expand Down

0 comments on commit da039c8

Please sign in to comment.