Chore: Add lint rule for no-unreduced-motion (#85862)

* add lint rule for no-unreduced-motion

* update to satisfy types
This commit is contained in:
Ashley Harrison
2024-04-15 09:18:56 +01:00
committed by GitHub
parent 00daca7f43
commit 5e74b6962b
6 changed files with 81 additions and 10 deletions

View File

@ -1,7 +1,7 @@
// @ts-check
const { ESLintUtils, AST_NODE_TYPES } = require('@typescript-eslint/utils');
const createRule = ESLintUtils.RuleCreator((name) => `https://github.com/grafana/grafana#${name}`);
const createRule = ESLintUtils.RuleCreator((name) => `https://github.com/grafana/grafana/blob/main/packages/grafana-eslint-rules/README.md#${name}`);
const themeTokenUsage = createRule({
create(context) {