mm_eslint 1.3.5 → 1.3.7
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.
- package/config.js +3 -2
- package/package.json +1 -1
package/config.js
CHANGED
|
@@ -485,12 +485,13 @@ 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
|
}
|
|
491
492
|
var ignore = {
|
|
492
493
|
'class-name': [
|
|
493
|
-
'Middleware', 'Component', 'Controller', 'Repository', 'Interface', 'Transformer', 'Template'
|
|
494
|
+
'exports', 'Middleware', 'Component', 'Controller', 'Repository', 'Interface', 'Transformer', 'Template'
|
|
494
495
|
],
|
|
495
496
|
'method-name': [
|
|
496
497
|
'constructor', 'prototype', 'hasOwnProperty',
|
|
@@ -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
|
-
'
|
|
508
|
+
'value-name': [
|
|
508
509
|
'$', // 忽略$符号的属性值名
|
|
509
510
|
'middleware', // 忽略middleware属性值名
|
|
510
511
|
'component', // 忽略component属性值名
|