Add basic plugin and rule scaffolding using yo eslint

This commit is contained in:
2018-08-23 09:09:15 +05:30
parent 8353304042
commit 1f0218c87e
6 changed files with 216 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
/**
* @fileoverview Import statements should be grouped by extensions and groups can have custom order between them
* @author Abhas Bhattacharya
*/
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
module.exports = {
meta: {
docs: {
description: "Import statements should be grouped by extensions and groups can have custom order between them",
category: "Fill me in",
recommended: false
},
fixable: null, // or "code" or "whitespace"
schema: [
// fill in your schema
]
},
create: function(context) {
// variables should be defined here
//----------------------------------------------------------------------
// Helpers
//----------------------------------------------------------------------
// any helper functions should go here or else delete this section
//----------------------------------------------------------------------
// Public
//----------------------------------------------------------------------
return {
// give me methods
};
}
};