File tree Expand file tree Collapse file tree 11 files changed +39
-30
lines changed
eslint-plugin-react-debug/src/utils
eslint-plugin-react-dom/src/utils
eslint-plugin-react-naming-convention/src/utils
eslint-plugin-react-web-api/src/utils
eslint-plugin-react-x/src/utils Expand file tree Collapse file tree 11 files changed +39
-30
lines changed Original file line number Diff line number Diff line change 1- import { getDocsUrl } from "@eslint-react/shared" ;
1+ import { WEBSITE_URL } from "@eslint-react/shared" ;
22import { ESLintUtils } from "@typescript-eslint/utils" ;
33
4- export const createRule = ESLintUtils . RuleCreator ( getDocsUrl ( "debug" ) ) ;
4+ function getDocsUrl ( ruleName : string ) {
5+ return `${ WEBSITE_URL } /docs/rules/debug-${ ruleName } ` ;
6+ }
7+
8+ export const createRule = ESLintUtils . RuleCreator ( getDocsUrl ) ;
Original file line number Diff line number Diff line change 1- import { getDocsUrl } from "@eslint-react/shared" ;
1+ import { WEBSITE_URL } from "@eslint-react/shared" ;
22import { ESLintUtils } from "@typescript-eslint/utils" ;
33
4- export const createRule = ESLintUtils . RuleCreator ( getDocsUrl ( "dom" ) ) ;
4+ function getDocsUrl ( ruleName : string ) {
5+ return `${ WEBSITE_URL } /docs/rules/dom-${ ruleName } ` ;
6+ }
7+
8+ export const createRule = ESLintUtils . RuleCreator ( getDocsUrl ) ;
Original file line number Diff line number Diff line change 1- import { getDocsUrl } from "@eslint-react/shared" ;
1+ import { WEBSITE_URL } from "@eslint-react/shared" ;
22import { ESLintUtils } from "@typescript-eslint/utils" ;
33
4- export const createRule = ESLintUtils . RuleCreator ( getDocsUrl ( "hooks-extra" ) ) ;
4+ function getDocsUrl ( ruleName : string ) {
5+ return `${ WEBSITE_URL } /docs/rules/hooks-extra-${ ruleName } ` ;
6+ }
7+
8+ export const createRule = ESLintUtils . RuleCreator ( getDocsUrl ) ;
Original file line number Diff line number Diff line change 1- import { getDocsUrl } from "@eslint-react/shared" ;
1+ import { WEBSITE_URL } from "@eslint-react/shared" ;
22import { ESLintUtils } from "@typescript-eslint/utils" ;
33
4- export const createRule = ESLintUtils . RuleCreator ( getDocsUrl ( "naming-convention" ) ) ;
4+ function getDocsUrl ( ruleName : string ) {
5+ return `${ WEBSITE_URL } /docs/rules/naming-convention-${ ruleName } ` ;
6+ }
7+
8+ export const createRule = ESLintUtils . RuleCreator ( getDocsUrl ) ;
Original file line number Diff line number Diff line change 1- import { getDocsUrl } from "@eslint-react/shared" ;
1+ import { WEBSITE_URL } from "@eslint-react/shared" ;
22import { ESLintUtils } from "@typescript-eslint/utils" ;
33
4- export const createRule = ESLintUtils . RuleCreator ( getDocsUrl ( "web-api" ) ) ;
4+ function getDocsUrl ( ruleName : string ) {
5+ return `${ WEBSITE_URL } /docs/rules/web-api-${ ruleName } ` ;
6+ }
7+
8+ export const createRule = ESLintUtils . RuleCreator ( getDocsUrl ) ;
Original file line number Diff line number Diff line change 1- import { getDocsUrl } from "@eslint-react/shared" ;
1+ import { WEBSITE_URL } from "@eslint-react/shared" ;
22import { ESLintUtils } from "@typescript-eslint/utils" ;
33
4- export const createRule = ESLintUtils . RuleCreator ( getDocsUrl ( "x" ) ) ;
4+ function getDocsUrl ( ruleName : string ) {
5+ return `${ WEBSITE_URL } /docs/rules/${ ruleName } ` ;
6+ }
7+
8+ export const createRule = ESLintUtils . RuleCreator ( getDocsUrl ) ;
File renamed without changes.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11export * from "./_id" ;
22export * from "./_require" ;
3+ export * from "./config-adapters" ;
34export * from "./constants" ;
4- export * from "./get-config-adapters" ;
5- export * from "./get-doc-url" ;
6- export * from "./get-react-version" ;
5+ export * from "./react-version" ;
76export * from "./regexp" ;
87export * from "./report" ;
98export * from "./settings" ;
File renamed without changes.
You can’t perform that action at this time.
0 commit comments