mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
9667164942
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
39 lines
988 B
TypeScript
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,
|
|
},
|
|
};
|