mm_eslint 1.3.5 → 1.3.6

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/config.js +2 -1
  2. package/package.json +1 -1
package/config.js CHANGED
@@ -485,6 +485,7 @@ Config.prototype.getRecommendedWords = function (name_type) {
485
485
  * @returns {Array} 忽略词列表
486
486
  */
487
487
  Config.prototype.getIgnoredWords = function (name_type) {
488
+ name_type = name_type.replace('property-', '').replace('instance-', '');
488
489
  if (name_type == 'function-name') {
489
490
  name_type = 'method-name';
490
491
  }
@@ -504,7 +505,7 @@ Config.prototype.getIgnoredWords = function (name_type) {
504
505
  'param-name': [
505
506
  'middleware', 'component', 'controller', 'repository', 'interface', 'transformer', 'template'
506
507
  ],
507
- 'property-value-name': [
508
+ 'value-name': [
508
509
  '$', // 忽略$符号的属性值名
509
510
  'middleware', // 忽略middleware属性值名
510
511
  'component', // 忽略component属性值名
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_eslint",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "ESLint plugin for naming conventions - PascalCase, camelCase, snake_case, and UPPER_SNAKE_CASE naming rules",
5
5
  "main": "index.js",
6
6
  "keywords": [