mirror of
https://github.com/bendtherules/eslint-plugin-import-grouped.git
synced 2026-08-18 13:43:19 +00:00
45 lines
1.3 KiB
JavaScript
45 lines
1.3 KiB
JavaScript
/**
|
|
* @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
|
|
|
|
};
|
|
}
|
|
};
|