Skip to content

Add utilities to config special rules correctly #315

@fisker

Description

@fisker

Eg: quotes (deprecated, just use it as an example)

prettierCompatibleQuote('error', {singleQuote: true})

// ['error', 'single', { "avoidEscape": true, "allowTemplateLiterals": false }]
prettierCompatibleQuote('warn', {singleQuote: false})

// ['warn', 'double', { "avoidEscape": true, "allowTemplateLiterals": false }]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions