Skip to content
#

lint

Here are 888 public repositories matching this topic...

stylelint
SandwichTech
SandwichTech commented Apr 26, 2021

When using single-line formatting, it would helpful if the selectors for at-rules could pushed to a new line. For example:

.container { padding: 0; margin: 5px }
@media (min-width: 992px) {
    .container { padding: 5px; margin: 0 }}

A proposed solution would be to add at-rule exceptions for the block-opening-brace-newline-after rule. Or a separate at-rule-opening-brace-newline-af

antross
antross commented Apr 13, 2021

This hint has been around since 2018 and is documented on webhint.io (https://webhint.io/docs/user-guide/hints/hint-doctype/). However it's not enabled by default in any of webhint's configurations (likely an oversight).

We should turn this on by default and perform any necessary cleanup in the process (e.g. switching to get locations from webhint's location-aware DOM that was added after the

azu
azu commented Nov 1, 2019

Current

export declare type TextlintRuleReportHandler = {
    [P in ASTNodeTypes]?: (node: TypeofTxtNode<P>) => void | Promise<any>;
} & {
    [index: string]: (node: any) => void | Promise<any>;
};
/**
 * Textlint rule reporter function
 */
export declare type TextlintRuleReporter<T extends object = {}> = (context: Readonly<TextlintRuleContext>, options?: TextlintRuleOptions<T>) 
cfn_nag
bquorning
bquorning commented Mar 23, 2021

I'm seeing double/instance_double/class_double/object_double/spy etc. being called with sometimes a string, sometimes a symbol (perhaps because the rspec-mocks documentation explicitly allows both), and of course sometimes a constant referring to a class or module.

I think mixing string and symbol arguments is a bit of a mess, so I would propose making a new cop that enforces either one or the

Improve this page

Add a description, image, and links to the lint topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the lint topic, visit your repo's landing page and select "manage topics."

Learn more