Skip to content

Commit

Permalink
refactor(max-tags-file): modify meta, specify types
Browse files Browse the repository at this point in the history
  • Loading branch information
azinit committed Nov 17, 2020
1 parent 1c8e9d3 commit becc8f4
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions lib/rules/max-tags-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const DEFAULT_MAX_TAGS = 4;
let maxTags = DEFAULT_MAX_TAGS;

/**
*
* @param {import("eslint").Rule.RuleContext} context
* @return {import("eslint").Rule.RuleListener}
*/
function create(context) {
const code = context.getSourceCode();
Expand Down Expand Up @@ -59,23 +59,22 @@ function create(context) {
//----------------------------------------------------------------------

return {
message: `Occured`
// give me methods

};
}

module.exports = {
create,
meta: {
docs: {
description: "Limit TODO/FIXME tags amount in file",
category: "Fill me in",
recommended: false
},
fixable: null, // or "code" or "whitespace"
schema: [
// fill in your schema
]
/**
* @type {import("eslint").Rule.RuleMetaData}
*/
const meta = {
docs: {
description: "Limit TODO/FIXME tags amount in file",
recommended: true,
},
fixable: null, // or "code" or "whitespace"
schema: [
// fill in your schema
]
};

module.exports = { create, meta };

0 comments on commit becc8f4

Please sign in to comment.