Add basic eslint project with working logic

This commit is contained in:
Abhas
2018-09-21 14:29:40 +05:30
commit 51af1997aa
8 changed files with 1662 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
/**
* @fileoverview While using CSS Modules, disallow using (non-conditional / string) classNames in a JSX tag if it already has a styleName
* @author Abhas Bhattacharya
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
var requireIndex = require("requireindex");
//------------------------------------------------------------------------------
// Plugin Definition
//------------------------------------------------------------------------------
// import all rules in lib/rules
module.exports.rules = requireIndex(__dirname + "/rules");