mm_eslint 1.3.4 → 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 +10 -2
  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,8 +505,15 @@ 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
- '$' // 忽略$符号的属性值名
508
+ 'value-name': [
509
+ '$', // 忽略$符号的属性值名
510
+ 'middleware', // 忽略middleware属性值名
511
+ 'component', // 忽略component属性值名
512
+ 'controller', // 忽略controller属性值名
513
+ 'repository', // 忽略repository属性值名
514
+ 'interface', // 忽略interface属性值名
515
+ 'transformer', // 忽略transformer属性值名
516
+ 'template' // 忽略template属性值名
509
517
  ]
510
518
  };
511
519
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_eslint",
3
- "version": "1.3.4",
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": [