@book000/eslint-config 1.15.7 → 1.15.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.mjs +3 -0
  2. package/package.json +2 -2
  3. package/test.mjs +6 -0
package/index.mjs CHANGED
@@ -68,6 +68,9 @@ export default tseslint.config(
68
68
  "@typescript-eslint/no-use-before-define": "error",
69
69
  // トップレベルのawaitを許可する
70
70
  "unicorn/prefer-top-level-await": "off",
71
+ // クラスメンバーの順序(private before public)を強制しない。
72
+ // public-first の慣習は API の可読性として広く使われているため。
73
+ "unicorn/consistent-class-member-order": "off",
71
74
  // 省略形を許可する (dev -> development, prod -> productionなどの変換をさせない)
72
75
  "unicorn/prevent-abbreviations": "off",
73
76
  // nullを許可する
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@book000/eslint-config",
3
- "version": "1.15.7",
3
+ "version": "1.15.9",
4
4
  "description": "ESLint config",
5
5
  "keywords": [
6
6
  "eslint-config"
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "@typescript-eslint/parser": "8.61.1",
21
21
  "eslint-config-prettier": "10.1.8",
22
- "eslint-plugin-unicorn": "66.0.0",
22
+ "eslint-plugin-unicorn": "67.0.0",
23
23
  "globals": "17.6.0",
24
24
  "neostandard": "0.13.0",
25
25
  "typescript-eslint": "8.61.1"
package/test.mjs CHANGED
@@ -200,6 +200,12 @@ async function main() {
200
200
  rules: ["unicorn/filename-case"],
201
201
  dir: "src",
202
202
  },
203
+ {
204
+ name: "consistent-class-member-order: public フィールドの後に private フィールドが来てもエラーにならない(OK)",
205
+ code: "class Foo { public name: string = 'foo'; private id: number = 1; }",
206
+ shouldError: false,
207
+ rules: ["unicorn/consistent-class-member-order"],
208
+ },
203
209
  {
204
210
  name: "filename-case: checkDirectories: false のため kebab-case でないディレクトリ名もエラーにならない(OK)",
205
211
  code: "export const a = 1;",