@nxext/stencil
Version:
Nx plugin for stenciljs
26 lines (25 loc) • 1.47 kB
TypeScript
import { ESLINT_PLUGIN_VERSIONS } from './versions';
import { Tree, GeneratorCallback } from '@nx/devkit';
export declare const extraEslintDependencies: {
dependencies: {};
devDependencies: {
"eslint-plugin-import": string;
"@stencil-community/eslint-plugin": string;
};
};
export type EsLintPluginBaseName<R> = R extends `eslint-plugin-${infer U}` ? U : R extends `${infer U}/eslint-plugin` ? U : never;
export declare function getEsLintPluginBaseName<R extends keyof typeof ESLINT_PLUGIN_VERSIONS>(packageName: R): EsLintPluginBaseName<typeof packageName>;
export declare const beginningOfEsLintConfigJs = "const importPlugin = require('eslint-plugin-import');\n/**\n * @stencil-community/eslint-plugin may not support the flat config yet\n *\n * TODO: activate @stencil-community/eslint-plugin when it supports the flat config\n *\n * const stencilPlugin = require('@stencil-community/eslint-plugin');\n */\n";
export declare const augmentStencilEslintFlatConfig: (tree: Tree, eslintFlatConfigFileContent: string, eslintFlatConfigFilePath: string) => GeneratorCallback;
export declare const createStencilEslintJson: (projectRoot: string) => {
extends: string[];
ignorePatterns: string[];
overrides: {
files: string[];
/**
* Having an empty rules object present makes it more obvious to the user where they would
* extend things from if they needed to
*/
rules: {};
}[];
};