create project
This commit is contained in:
35
kitabcitab/node_modules/eslint-plugin-jsx-a11y/scripts/boilerplate/rule.js
generated
vendored
Normal file
35
kitabcitab/node_modules/eslint-plugin-jsx-a11y/scripts/boilerplate/rule.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user