fix: prevent asset conflicts between React and Grid.js versions

Add coexistence checks to all enqueue methods to prevent loading
both React and Grid.js assets simultaneously.

Changes:
- ReactAdmin.php: Only enqueue React assets when ?react=1
- Init.php: Skip Grid.js when React active on admin pages
- Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0
- Customer.php, Product.php, License.php: Add coexistence checks

Now the toggle between Classic and React versions works correctly.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
dwindown
2026-04-18 17:02:14 +07:00
parent bd9cdac02e
commit e8fbfb14c1
74973 changed files with 6658406 additions and 71 deletions

8
node_modules/npm-package-json-lint/dist/src/api.d.ts generated vendored Normal file
View File

@@ -0,0 +1,8 @@
export { NpmPackageJsonLint, NpmPackageJsonLintOptions } from './npm-package-json-lint';
export { LintIssue } from './lint-issue';
export { Severity } from './types/severity';
export { LinterResult } from './linter/linter';
export { PackageJsonFileLintingResult } from './types/package-json-linting-result';
export { PackageJsonFileAggregatedResultCounts, OverallAggregatedResultCounts } from './linter/results-helper';
export { Rules, Rule } from './native-rules';
export { write } from './console-reporter';

2
node_modules/npm-package-json-lint/dist/src/cli.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
#!/usr/bin/env node
export {};

View File

@@ -0,0 +1,37 @@
/**
* Validates standard rules config.
*
* @param {Object} ruleConfig The ruleConfig object to validate.
* @returns {boolean} True if valid. Error if not.
*/
export declare const isStandardRuleSchemaValid: (ruleConfig: any) => any;
/**
* Validates array rules config.
*
* @param {Object} ruleConfig The ruleConfig object to validate.
* @param {number} minItems Min number of items in the array
* @returns {boolean} True if valid. Error if not.
*/
export declare const isArrayRuleSchemaValid: (ruleConfig: any, minItems: any) => any;
/**
* Validates array rules config.
*
* @param {Object} ruleConfig The ruleConfig object to validate.
* @returns {boolean} True if valid. Error if not.
*/
export declare const isObjectRuleSchemaValid: (ruleConfig: any) => any;
/**
* Validates optional object exceptions config.
*
* @param {Object} ruleConfig The ruleConfig object to validate.
* @returns {boolean} True if valid. Error if not.
*/
export declare const isOptionalObjExceptSchemaValid: (ruleConfig: any) => any;
/**
* Validates the top level properties of the config object.
*
* @param {Object} config The config object to validate.
* @param {string} source The name of the configuration source to report in any errors.
* @returns {boolean} True if valid. Error if not.
*/
export declare const isConfigObjectSchemaValid: (config: any, source: any) => any;

View File

@@ -0,0 +1,20 @@
/**
* Validates only the rules of a config object
*
* @param {Object} rulesConfig The rules config object to validate.
* @param {String} source The name of the configuration source to report in any errors.
* @param {Object} rules Rules object
* @returns {undefined} No return
* @static
*/
export declare const validateRules: (rulesConfig: any, source: any, rules: any) => any;
/**
* Validates entire config object, including top-level properties.
*
* @param {Object} config The config object to validate.
* @param {String} source The name of the configuration source to report in any errors.
* @param {Object} rules Rules object
* @returns {undefined} No return
* @static
*/
export declare const validate: (config: any, source: any, rules: any) => any;

View File

@@ -0,0 +1,9 @@
/**
* Loads a configuration file from the given file path.
*
* @param {Object} npmPackageJsonLintConfig Parsed config from cosmicconfig
* @param {string} filepath the path to the config file
* @returns {Object} the parsed config object (empty object if there was a parse error)
* @private
*/
export declare const applyExtendsIfSpecified: (npmPackageJsonLintConfig: any, filepath: any) => any;

View File

@@ -0,0 +1,10 @@
/**
* Applies values from the 'overrides' field in a configuration file.
* @param {string} cwd The current working directory.
* @param {Object} filePath The file path of the file being linted.
* @param {Object} rules Rules object
* @param {Object} overrides Overrides object
* @returns {Object} A new configuration object with all of the 'overrides' applied.
* @private
*/
export declare const applyOverrides: (cwd: string, filePath: string, rules: any, overrides?: any[]) => any;

View File

@@ -0,0 +1 @@
export declare const transform: (cwd: any, configBaseDirectory: any, filePathBeingLinted: any) => any;

View File

@@ -0,0 +1,36 @@
import { Rules } from './native-rules';
/**
* Config class
* @class
*/
export declare class Config {
/**
* The user passed config object.
*/
config: any;
/**
* The current working directory.
*/
cwd: string;
/**
* The user passed configFile path.
*/
configFile: any;
/**
* The base directory that config should be pulled from.
*/
configBaseDirectory: any;
/**
* Rules object
*/
rules: any;
constructor(cwd: string, config: any, configFile: any, configBaseDirectory: any, rules: Rules);
/**
* Gets the config for a file.
*
* @param filePath File path of the file being linted.
* @returns {Object} A config object.
* @memberof Config
*/
getConfigForFile(filePath: string): any;
}

View File

@@ -0,0 +1,8 @@
/**
* Print results to console
*
* @param linterOutput An array of LintIssues
* @param quiet Flag indicating whether to print warnings.
* @internal
*/
export declare const write: (linterOutput: any, quiet: boolean) => void;

View File

@@ -0,0 +1,17 @@
export declare const sourceSymbol: unique symbol;
/**
* Parse a JSON file
*
* @param fileName String file path of file to load
* @return Valid JSON
* @internal
*/
export declare const parseJsonFile: (fileName: string) => Record<string, any>;
/**
* Parse a JavaScript file
*
* @param fileName String file path of file to load
* @return Valid JavaScript object
* @internal
*/
export declare const parseJavaScriptFile: (fileName: string) => Record<string, any>;

View File

@@ -0,0 +1,49 @@
import { Severity } from './types/severity';
/**
* A lint issue
*/
export declare class LintIssue {
/**
* Unique, lowercase, hyphen-separate name for the lint
*
* @type {string}
* @memberof LintIssue
*/
lintId: string;
/**
* 'error' or 'warning'
*
* @type {Severity}
* @memberof LintIssue
*/
severity: Severity;
/**
* Name of the node in the JSON the lint audits
*
* @type {string}
* @memberof LintIssue
*/
node: string;
/**
* Human-friendly message to users
*
* @type {string}
* @memberof LintIssue
*/
lintMessage: string;
/**
* Creates an instance of LintIssue.
* @param lintId Unique, lowercase, hyphen-separate name for the lint
* @param severity 'error' or 'warning'
* @param node Name of the node in the JSON the lint audits
* @param lintMessage Human-friendly message to users
* @memberof LintIssue
*/
constructor(lintId: string, severity: Severity, node: string, lintMessage: string);
/**
* Helper to convert the LintIssue to a printable string
*
* @returns {string} Human-friendly message about the lint issue
*/
toString(): string;
}

View File

@@ -0,0 +1,109 @@
import { PackageJson } from 'type-fest';
import { Ignore } from 'ignore';
import { Rules } from '../native-rules';
import { LintIssue } from '../lint-issue';
import { OverallAggregatedResultCounts } from './results-helper';
import { Config } from '../configuration';
import { PackageJsonFileLintingResult } from '../types/package-json-linting-result';
export interface CreateResultObjectOptions {
/**
* The current working directory.
*/
cwd: string;
/**
* An optional string representing the package.json file.
*/
fileName: string;
/**
* A flag indicating that the file was skipped.
*/
ignored: boolean;
/**
* A list of issues.
*/
issues: LintIssue[];
/**
* Number of errors.
*/
errorCount: number;
/**
* Number of warnings.
*/
warningCount: number;
}
export interface LinterResult {
results: LintIssue[];
ignoreCount: number;
/**
* Number of errors for the package.json file.
*/
errorCount: number;
/**
* Number of warnings for the package.json file.
*/
warningCount: number;
}
export interface ExecuteOnPackageJsonObjectOptions {
/**
* The current working directory.
*/
cwd: string;
/**
* An object representation of a package.json file.
*/
packageJsonObject: PackageJson | any;
/**
* An optional string representing the texts filename.
*/
filename?: string;
/**
* An instance of the `ignore` module.
*/
ignorer: Ignore;
/**
* An instance of {@Config}.
*/
configHelper: Config;
/**
* An instance of {@link Rules}
*/
rules: Rules;
}
export interface OverallLintingResult extends OverallAggregatedResultCounts {
results: PackageJsonFileLintingResult[];
}
/**
* Executes linter on package.json object
*
* @param options A {@link ExecuteOnPackageJsonObjectOptions} object
* @returns The results {@link OverallLintingResult} from linting a collection of package.json files.
*/
export declare const executeOnPackageJsonObject: (options: ExecuteOnPackageJsonObjectOptions) => OverallLintingResult;
export interface ExecuteOnPackageJsonFilesOptions {
/**
* The current working directory.
*/
cwd: string;
/**
* An array of files and directory names.
*/
fileList: string[];
/**
* An instance of the `ignore` module.
*/
ignorer: Ignore;
/**
* An instance of {@Config}.
*/
configHelper: Config;
/**
* An instance of {@link Rules}
*/
rules: Rules;
}
/**
* Executes the current configuration on an array of file and directory names.
* @param options A {@link ExecuteOnPackageJsonFilesOptions} object
* @returns The results {@link OverallLintingResult} from linting a collection of package.json files.
*/
export declare const executeOnPackageJsonFiles: (options: ExecuteOnPackageJsonFilesOptions) => OverallLintingResult;

View File

@@ -0,0 +1,40 @@
import { LintIssue } from '../lint-issue';
import { PackageJsonFileLintingResult } from '../types/package-json-linting-result';
/**
* A result count object for a files.
* @typedef {Object} FileResultCounts
* @property {number} errorCount Number of errors for a file result.
* @property {number} warningCount Number of warnings for a file result.
*/
export interface PackageJsonFileAggregatedResultCounts {
errorCount: number;
warningCount: number;
}
/**
* Aggregates the count of errors and warning for a package.json file.
*
* @param issues Array of {@link LintIssue} objects from a package.json file.
* @returns Counts object {@link PackageJsonFileAggregatedResultCounts}.
*/
export declare const aggregateCountsPerFile: (issues: LintIssue[]) => PackageJsonFileAggregatedResultCounts;
export interface OverallAggregatedResultCounts {
/**
* Total number of ignored files.
*/
ignoreCount: number;
/**
* Total number of errors.
*/
errorCount: number;
/**
* Total number of warnings.
*/
warningCount: number;
}
/**
* Aggregates the count of errors and warnings for all package.json files.
*
* @param results Array of {@link PackageJsonFileLintingResult} objects from all package.json files.
* @returns Counts object {@link OverallAggregatedResultCounts}
*/
export declare const aggregateOverallCounts: (results: PackageJsonFileLintingResult[]) => OverallAggregatedResultCounts;

View File

@@ -0,0 +1,37 @@
import { LintFunction } from './types/lint-function';
import { RuleType } from './types/rule-type';
export interface Rule {
lint: LintFunction;
ruleType: RuleType;
minItems?: number;
}
export declare class Rules {
rules: Record<string, string>;
constructor();
/**
* Loads rules
*
* @return Set of rules
*/
load(): Record<string, string>;
/**
* Loads a rule module
*
* @param ruleId Name of the rule
* @return Rule module
*/
get(ruleId: string): Rule;
/**
* Gets entire rule set
*
* @returns Rule set
*/
getRules(): Record<string, string>;
/**
* Registers a rule in the rules object
*
* @param ruleId Name of the rule
* @param filePathToRuleModule File path to rule
*/
registerRule(ruleId: string, filePathToRuleModule: string): void;
}

View File

@@ -0,0 +1,39 @@
import { Config } from './configuration';
import { Rules } from './native-rules';
import { OverallLintingResult } from './linter/linter';
export interface NpmPackageJsonLintOptions {
cwd?: string;
packageJsonObject?: any;
packageJsonFilePath?: string;
config?: any;
configFile?: any;
configBaseDirectory?: any;
patterns?: any;
quiet?: boolean;
ignorePath?: string;
fix?: boolean;
}
export declare class NpmPackageJsonLint {
cwd: string;
packageJsonObject: any;
packageJsonFilePath: string;
patterns: any;
quiet: boolean;
ignorePath: string;
fix: boolean;
version: string;
rules: Rules;
configHelper: Config;
/**
* constructor
* @param options An instance of the {@link NpmPackageJsonLintOptions} options object.
* @constructor
*/
constructor(options: NpmPackageJsonLintOptions);
/**
* Runs the linter using the config specified in the constructor
*
* @returns The results {@link OverallLintingResult} from linting a collection of package.json files.
*/
lint(): OverallLintingResult;
}

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
import { LintResult } from '../types/lint-result';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintResult;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
import { LintResult } from '../types/lint-result';
export declare const ruleType = RuleType.Object;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: Record<string, boolean>) => LintResult;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,7 @@
import { PackageJson } from 'type-fest';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
import { OptionalObjectRuleConfig } from '../types/lint-function';
import { LintResult } from '../types/lint-result';
export declare const ruleType = RuleType.OptionalObject;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: OptionalObjectRuleConfig) => LintResult;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.OptionalObject;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: any) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.OptionalObject;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: any) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.OptionalObject;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: any) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.OptionalObject;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: any) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.OptionalObject;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: any) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.OptionalObject;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: any) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.OptionalObject;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: any) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.OptionalObject;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: any) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.OptionalObject;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: any) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,7 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Array;
export declare const minItems = 1;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, invalidDependencies: string[]) => LintIssue | null;

View File

@@ -0,0 +1,7 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Array;
export declare const minItems = 1;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, invalidDependencies: string[]) => LintIssue | null;

View File

@@ -0,0 +1,7 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Array;
export declare const minItems = 1;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, invalidPreRelDeps: string[]) => LintIssue | null;

View File

@@ -0,0 +1,7 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Array;
export declare const minItems = 1;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, invalidPreRelDeps: string[]) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.OptionalObject;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: any) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.OptionalObject;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: any) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.OptionalObject;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: any) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.OptionalObject;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: any) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.OptionalObject;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: any) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.OptionalObject;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: any) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.OptionalObject;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: any) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.OptionalObject;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: any) => LintIssue | null;

View File

@@ -0,0 +1,7 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Array;
export declare const minItems = 0;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, preferredOrder: string[]) => LintIssue | null;

View File

@@ -0,0 +1,7 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Array;
export declare const minItems = 1;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, requiredScripts: any) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.OptionalObject;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: any) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.OptionalObject;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity, config: any) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

View File

@@ -0,0 +1,6 @@
import { PackageJson } from 'type-fest';
import { LintIssue } from '../lint-issue';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Standard;
export declare const lint: (packageJsonData: PackageJson | any, severity: Severity) => LintIssue | null;

Some files were not shown because too many files have changed in this diff Show More