Create basic project structure with yo eslint:plugin

This commit is contained in:
2018-08-20 10:14:23 +05:30
parent ce19442161
commit fe3ce48ec1
5 changed files with 1460 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
/**
* @fileoverview Always initialize variables declarations. Instead of naked declarations, set it to undefined.
* @author Abhas Bhattacharya
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
var requireIndex = require("requireindex");
//------------------------------------------------------------------------------
// Plugin Definition
//------------------------------------------------------------------------------
// import all rules in lib/rules
module.exports.rules = requireIndex(__dirname + "/rules");
module.exports.configs = {
recommended: {
rules: {
'undef-init/undef-init': 1,
},
},
};