mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
36 lines
773 B
JavaScript
36 lines
773 B
JavaScript
|
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();
|
||
|
|
||
|
module.exports = {
|
||
|
meta: {
|
||
|
docs: {},
|
||
|
schema: [schema],
|
||
|
},
|
||
|
|
||
|
create: (context: ESLintContext) => ({
|
||
|
JSXOpeningElement: (node: JSXOpeningElement) => {
|
||
|
context.report({
|
||
|
node,
|
||
|
message: errorMessage,
|
||
|
});
|
||
|
},
|
||
|
}),
|
||
|
};
|
||
|
`;
|
||
|
|
||
|
module.exports = ruleBoilerplate;
|