mirror of
https://github.com/bendtherules/eslint-plugin-undef-init.git
synced 2026-08-18 22:02:50 +00:00
30 lines
790 B
JavaScript
30 lines
790 B
JavaScript
/**
|
|
* @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,
|
|
},
|
|
},
|
|
};
|
|
|
|
|