graphql-engine/frontend/tools/eslint-rules/index.ts
Nicolas Beaussart 9667164942 frontend: introduce tags system for libs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9063
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 1f5918b1e56452967a93739ffc21b4cfafbd84e4
2023-05-09 10:43:51 +00:00

39 lines
988 B
TypeScript

import {
RULE_NAME as allowedProjectTagsName,
rule as allowedProjectTags,
} from './rules/allowed-project-tags';
import {
RULE_NAME as additionalDepConstraintsName,
rule as additionalDepConstraints,
} from './rules/additional-dep-constraints';
/**
* Import your custom workspace rules at the top of this file.
*
* For example:
*
* import { RULE_NAME as myCustomRuleName, rule as myCustomRule } from './rules/my-custom-rule';
*
* In order to quickly get started with writing rules you can use the
* following generator command and provide your desired rule name:
*
* ```sh
* npx nx g @nrwl/linter:workspace-rule {{ NEW_RULE_NAME }}
* ```
*/
module.exports = {
/**
* Apply the imported custom rules here.
*
* For example (using the example import above):
*
* rules: {
* [myCustomRuleName]: myCustomRule
* }
*/
rules: {
[additionalDepConstraintsName]: additionalDepConstraints,
[allowedProjectTagsName]: allowedProjectTags,
},
};