How to use the @hint/utils-types.Category.development function in @hint/utils-types

To help you get started, we’ve selected a few @hint/utils-types 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 / module-esnext-typescript.ts View on Github external
import { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';

import { getMessage } from '../i18n.import';

const meta: HintMetadata = {
    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
};
github webhintio / hint / packages / hint-webpack-config / src / meta / is-valid.ts View on Github external
import { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';

import { getMessage } from '../i18n.import';

const meta: HintMetadata = {
    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: 'webpack-config/is-valid',
    schema: [],
    scope: HintScope.local
};
github webhintio / hint / packages / hint-typescript-config / src / meta / is-valid.ts View on Github external
import { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';

import { getMessage } from '../i18n.import';

const meta: HintMetadata = {
    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
};
github webhintio / hint / packages / hint-typescript-config / src / meta / consistent-casing.ts View on Github external
import { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';

import { getMessage } from '../i18n.import';

const meta: HintMetadata = {
    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
};
github webhintio / hint / packages / hint-webpack-config / src / meta / modules-false-babel.ts View on Github external
import { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';

import { getMessage } from '../i18n.import';

const meta: HintMetadata = {
    docs: {
        category: Category.development,
        description: getMessage('modulesFalseBabel_description', 'en'),
        name: getMessage('modulesFalseBabel_name', 'en')
    },
    /* istanbul ignore next */
    getDescription(language: string) {
        return getMessage('modulesFalseBabel_description', language);
    },
    /* istanbul ignore next */
    getName(language: string) {
        return getMessage('modulesFalseBabel_name', language);
    },
    id: 'webpack-config/modules-false-babel',
    schema: [],
    scope: HintScope.local
};
github webhintio / hint / packages / hint-typescript-config / src / meta / no-comments.ts View on Github external
import { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';

import { getMessage } from '../i18n.import';

const meta: HintMetadata = {
    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
};
github webhintio / hint / packages / hint-babel-config / src / meta / is-valid.ts View on Github external
import { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';

import { getMessage } from '../i18n.import';

const meta: HintMetadata = {
    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
};
github webhintio / hint / packages / hint-typescript-config / src / meta / strict.ts View on Github external
import { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';

import { getMessage } from '../i18n.import';

const meta: HintMetadata = {
    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
};
github webhintio / hint / packages / hint-typescript-config / src / meta / import-helpers.ts View on Github external
import { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';

import { getMessage } from '../i18n.import';

const meta: HintMetadata = {
    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
};
github webhintio / hint / packages / hint-webpack-config / src / meta / no-devtool-in-prod.ts View on Github external
import { Category } from '@hint/utils-types';
import { HintMetadata, HintScope } from 'hint';

import { getMessage } from '../i18n.import';

const meta: HintMetadata = {
    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
};