Skip to content

Commit

Permalink
feat: update rules from ESLint v9.0.0 to v9.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tkskto committed Jun 13, 2024
1 parent 2b44212 commit ed119d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"devDependencies": {
"@types/eslint": "^8.40.0",
"cross-env": "^7.0.3",
"eslint": "^9.0.0",
"eslint": "^9.4.0",
"jest": "^29.7.0",
"js-green-licenses": "^4.0.0"
}
Expand Down
16 changes: 2 additions & 14 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ export default {
// https://eslint.org/docs/latest/rules/no-new-native-nonconstructor
'no-new-native-nonconstructor': 2,

// TODO: 削除 https://eslint.org/docs/rules/no-new-symbol
'no-new-symbol': 2,

// https://eslint.org/docs/rules/no-obj-calls
'no-obj-calls': 2,

Expand Down Expand Up @@ -201,8 +198,8 @@ export default {
// https://eslint.org/docs/rules/no-use-before-define
'no-use-before-define': 2,

// TODO:
'no-useless-assignment': 0,
// https://eslint.org/docs/latest/rules/no-useless-assignment
'no-useless-assignment': 2,

// https://eslint.org/docs/rules/no-useless-backreference
'no-useless-backreference': 2,
Expand Down Expand Up @@ -355,9 +352,6 @@ export default {
// https://eslint.org/docs/rules/max-statements
'max-statements': 0,

// TODO: 削除 https://eslint.org/docs/rules/multiline-comment-style
'multiline-comment-style': 2,

// https://eslint.org/docs/rules/new-cap
'new-cap': 2,

Expand Down Expand Up @@ -612,9 +606,6 @@ export default {
// https://eslint.org/docs/rules/no-useless-computed-key
'no-useless-computed-key': [
2,
{
enforceForClassMembers: true,
},
],

// https://eslint.org/docs/rules/no-useless-concat
Expand Down Expand Up @@ -773,9 +764,6 @@ export default {
* Layout & Formatting
*/

// TODO: 削除 https://eslint.org/docs/rules/line-comment-position
'line-comment-position': 0,

// https://eslint.org/docs/rules/unicode-bom
'unicode-bom': [
1,
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"directory": "packages/eslint-config"
},
"peerDependencies": {
"eslint": ">= 9.0.0"
"eslint": ">= 9.4.0"
}
}

0 comments on commit ed119d4

Please sign in to comment.