Skip to content

Commit

Permalink
Merge pull request #206 from mitsue-links/feature/eslint-8-x
Browse files Browse the repository at this point in the history
ESLint 8.xの更新対応
  • Loading branch information
tkskto authored Jun 6, 2024
2 parents 674c2f7 + ed36012 commit d379adf
Show file tree
Hide file tree
Showing 23 changed files with 595 additions and 206 deletions.
256 changes: 132 additions & 124 deletions package-lock.json

Large diffs are not rendered by default.

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": "^8.42.0",
"eslint": "8.52.0",
"jest": "^29.5.0",
"js-green-licenses": "^4.0.0"
}
Expand Down
12 changes: 12 additions & 0 deletions packages/eslint-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ npm i --save--dev eslint-config-prettier

|@mitsue/eslint-config|ESLint|
|-:|-:|
|未リリース|>=8.5.0|
|4.1.0|>=7.30.0|
|4.0.1|^7.15.0|
|3.0.0|^7.4.0|
Expand All @@ -94,8 +95,19 @@ ESLintは未知のルールが設定されているとエラーを報告しま

- parserOptionsのsourceTypeをmoduleに変更
- 拡張子がcjsの場合はsourceTypeをscriptに設定
- 対象とするESLint(peerDependencies)を>=8.52.0に変更
- ルールに関する調整
- [radix](https://eslint.org/docs/latest/rules/radix)を0(オフ)に設定
- [no-unused-private-class-members](https://eslint.org/docs/rules/no-unused-private-class-members)を2(エラー)に設定
- [prefer-object-has-own](https://eslint.org/docs/rules/prefer-object-has-own)を2(オフ)に設定
- [no-constant-binary-expression](https://eslint.org/docs/latest/rules/no-constant-binary-expression)を2(エラー)に設定
- [logical-assignment-operators](https://eslint.org/docs/latest/rules/logical-assignment-operators)を2(エラー)に設定
- [no-new-native-nonconstructor](https://eslint.org/docs/latest/rules/no-new-native-nonconstructor)を2(エラー)に設定
- [no-empty-static-block](https://eslint.org/docs/latest/rules/no-empty-static-block)を2(エラー)に設定
- [no-object-constructor](https://eslint.org/docs/latest/rules/no-object-constructor)を2(エラー)に設定
- 非推奨になったルールの削除
- [no-return-await](https://eslint.org/docs/latest/rules/no-return-await)
- [no-new-object](https://eslint.org/docs/rules/no-new-object)

### 4.1.0

Expand Down
Loading

0 comments on commit d379adf

Please sign in to comment.