mirror of
https://github.com/bendtherules/eslint-plugin-import-grouped.git
synced 2026-08-18 13:43:19 +00:00
Add basic plugin and rule scaffolding using yo eslint
This commit is contained in:
@@ -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
|
||||
|
||||
};
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user