@dmitryrechkin/eslint-standard 1.0.3 → 1.0.4

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 (2) hide show
  1. package/eslint.config.mjs +21 -0
  2. package/package.json +1 -1
package/eslint.config.mjs CHANGED
@@ -59,12 +59,33 @@ export default function ({ tsconfigPath = './tsconfig.json' } = {}) {
59
59
  selector: 'parameter',
60
60
  format: ['camelCase'],
61
61
  leadingUnderscore: 'forbid',
62
+ custom: {
63
+ regex: '^_',
64
+ match: false,
65
+ },
66
+ },
67
+ {
68
+ selector: 'parameter',
69
+ format: null,
70
+ leadingUnderscore: 'require',
71
+ modifiers: ['unused'],
62
72
  },
63
73
  {
64
74
  selector: 'memberLike',
65
75
  format: ['camelCase'],
66
76
  leadingUnderscore: 'forbid',
67
77
  },
78
+ {
79
+ selector: 'property',
80
+ modifiers: ['readonly'],
81
+ format: ['camelCase', 'UPPER_CASE'],
82
+ leadingUnderscore: 'forbid',
83
+ },
84
+ {
85
+ selector: 'enumMember',
86
+ format: ['UPPER_CASE'],
87
+ leadingUnderscore: 'forbid',
88
+ },
68
89
  ],
69
90
 
70
91
  // unused-imports rules
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dmitryrechkin/eslint-standard",
3
3
  "description": "This package provides a shared ESLint configuration which includes TypeScript support and a set of specific linting rules designed to ensure high-quality and consistent code style across projects.",
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "main": "eslint.config.mjs",
6
6
  "scripts": {
7
7
  "postinstall": "echo 'Remember to install peer dependencies:\n npm install eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-unused-imports --save-dev\n bun add eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-unused-imports --dev'",