How to use the hint.HintScope.local function in hint

To help you get started, we’ve selected a few hint examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github webhintio / hint / packages / hint-webpack-config / src / meta / config-exists.ts View on Github external
docs: {
        category: Category.development,
        description: getMessage('configExists_description', 'en'),
        name: getMessage('configExists_name', 'en')
    },
    /* istanbul ignore next */
    getDescription(language: string) {
        return getMessage('configExists_description', language);
    },
    /* istanbul ignore next */
    getName(language: string) {
        return getMessage('configExists_name', language);
    },
    id: 'webpack-config/config-exists',
    schema: [],
    scope: HintScope.local
};

export default meta;
github webhintio / hint / packages / hint-babel-config / src / meta / is-valid.ts View on Github external
docs: {
        category: Category.development,
        description: getMessage('isValid_description', 'en'),
        name: getMessage('isValid_name', 'en')
    },
    /* istanbul ignore next */
    getDescription(language: string) {
        return getMessage('isValid_description', language);
    },
    /* istanbul ignore next */
    getName(language: string) {
        return getMessage('isValid_name', language);
    },
    id: 'babel-config/is-valid',
    schema: [],
    scope: HintScope.local
};

export default meta;
github webhintio / hint / packages / hint-webpack-config / src / meta / is-installed.ts View on Github external
docs: {
        category: Category.development,
        description: getMessage('isInstalled_description', 'en'),
        name: getMessage('isInstalled_name', 'en')
    },
    /* istanbul ignore next */
    getDescription(language: string) {
        return getMessage('isInstalled_description', language);
    },
    /* istanbul ignore next */
    getName(language: string) {
        return getMessage('isInstalled_name', language);
    },
    id: 'webpack-config/is-installed',
    schema: [],
    scope: HintScope.local
};

export default meta;
github webhintio / hint / packages / hint-typescript-config / src / meta / no-comments.ts View on Github external
docs: {
        category: Category.development,
        description: getMessage('noComments_description', 'en'),
        name: getMessage('noComments_name', 'en')
    },
    /* istanbul ignore next */
    getDescription(language: string) {
        return getMessage('noComments_description', language);
    },
    /* istanbul ignore next */
    getName(language: string) {
        return getMessage('noComments_name', language);
    },
    id: 'typescript-config/no-comments',
    schema: [],
    scope: HintScope.local
};

export default meta;
github webhintio / hint / packages / hint-typescript-config / src / meta / is-valid.ts View on Github external
docs: {
        category: Category.development,
        description: getMessage('isValid_description', 'en'),
        name: getMessage('isValid_name', 'en')
    },
    /* istanbul ignore next */
    getDescription(language: string) {
        return getMessage('isValid_description', language);
    },
    /* istanbul ignore next */
    getName(language: string) {
        return getMessage('isValid_name', language);
    },
    id: 'typescript-config/is-valid',
    schema: [],
    scope: HintScope.local
};

export default meta;
github webhintio / hint / packages / hint-typescript-config / src / meta / strict.ts View on Github external
docs: {
        category: Category.development,
        description: getMessage('strict_description', 'en'),
        name: getMessage('strict_name', 'en')
    },
    /* istanbul ignore next */
    getDescription(language: string) {
        return getMessage('strict_description', language);
    },
    /* istanbul ignore next */
    getName(language: string) {
        return getMessage('strict_name', language);
    },
    id: 'typescript-config/strict',
    schema: [],
    scope: HintScope.local
};

export default meta;
github webhintio / hint / packages / hint-webpack-config / src / meta / no-devtool-in-prod.ts View on Github external
docs: {
        category: Category.development,
        description: getMessage('noDevtoolInProd_description', 'en'),
        name: getMessage('noDevtoolInProd_name', 'en')
    },
    /* istanbul ignore next */
    getDescription(language: string) {
        return getMessage('noDevtoolInProd_description', language);
    },
    /* istanbul ignore next */
    getName(language: string) {
        return getMessage('noDevtoolInProd_name', language);
    },
    id: 'webpack-config/no-devtool-in-prod',
    schema: [],
    scope: HintScope.local
};

export default meta;
github webhintio / hint / packages / hint-webpack-config / src / meta / module-esnext-typescript.ts View on Github external
docs: {
        category: Category.development,
        description: getMessage('moduleEsnextTypescript_description', 'en'),
        name: getMessage('moduleEsnextTypescript_name', 'en')
    },
    /* istanbul ignore next */
    getDescription(language: string) {
        return getMessage('moduleEsnextTypescript_description', language);
    },
    /* istanbul ignore next */
    getName(language: string) {
        return getMessage('moduleEsnextTypescript_name', language);
    },
    id: 'webpack-config/module-esnext-typescript',
    schema: [],
    scope: HintScope.local
};

export default meta;
github webhintio / hint / packages / hint-typescript-config / src / meta / import-helpers.ts View on Github external
docs: {
        category: Category.development,
        description: getMessage('importHelpers_description', 'en'),
        name: getMessage('importHelpers_name', 'en')
    },
    /* istanbul ignore next */
    getDescription(language: string) {
        return getMessage('importHelpers_description', language);
    },
    /* istanbul ignore next */
    getName(language: string) {
        return getMessage('importHelpers_name', language);
    },
    id: 'typescript-config/import-helpers',
    schema: [],
    scope: HintScope.local
};

export default meta;
github webhintio / hint / packages / hint-typescript-config / src / meta / consistent-casing.ts View on Github external
docs: {
        category: Category.development,
        description: getMessage('consistentCasing_description', 'en'),
        name: getMessage('consistentCasing_name', 'en')
    },
    /* istanbul ignore next */
    getDescription(language: string) {
        return getMessage('consistentCasing_description', language);
    },
    /* istanbul ignore next */
    getName(language: string) {
        return getMessage('consistentCasing_name', language);
    },
    id: 'typescript-config/consistent-casing',
    schema: [],
    scope: HintScope.local
};

export default meta;