You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
771 B
36 lines
771 B
2 years ago
|
const ruleBoilerplate = (author, description) => `/**
|
||
|
* @fileoverview ${description}
|
||
|
* @author ${author}
|
||
|
* @flow
|
||
|
*/
|
||
|
|
||
|
// ----------------------------------------------------------------------------
|
||
|
// Rule Definition
|
||
|
// ----------------------------------------------------------------------------
|
||
|
|
||
|
import type { JSXOpeningElement } from 'ast-types-flow';
|
||
|
import { generateObjSchema } from '../util/schemas';
|
||
|
|
||
|
const errorMessage = '';
|
||
|
|
||
|
const schema = generateObjSchema();
|
||
|
|
||
|
export default {
|
||
|
meta: {
|
||
|
docs: {},
|
||
|
schema: [schema],
|
||
|
},
|
||
|
|
||
|
create: (context: ESLintContext) => ({
|
||
|
JSXOpeningElement: (node: JSXOpeningElement) => {
|
||
|
context.report({
|
||
|
node,
|
||
|
message: errorMessage,
|
||
|
});
|
||
|
},
|
||
|
}),
|
||
|
};
|
||
|
`;
|
||
|
|
||
|
module.exports = ruleBoilerplate;
|