UNPKG

eslint-plugin-green

Version:

ESLint plugin for evaluating and promoting green coding practices

13 lines (12 loc) 505 B
import { Linter } from 'eslint'; export declare const createLinter: () => Linter; export declare const getBaseParserOptions: () => { ecmaVersion: 2018; sourceType: "module"; ecmaFeatures: { jsx: boolean; }; }; export declare const verifyCode: (linter: Linter, code: string, ruleName: string, options?: any) => Linter.LintMessage[]; export declare const expectRuleError: (messages: any[], ruleId: string) => void; export declare const expectNoRuleErrors: (messages: any[]) => void;