-
Updated
Nov 7, 2020 - Vim script
lint
Here are 815 public repositories matching this topic...
Hey. Just a question. Can we add possibility to extend from single string not just from array? So it will work like other linting libraries (eslint, stylelint, etc.).
package.json
"babel": {
"extends": "shared-tools"
},
"commitlint": {
"extends": [
"shared-tools"
]
},
"eslintConfig": {
"extends": "shared-tools"
}
-
Updated
Nov 30, 2020 - JavaScript
What it does
Suggest option.and_then(|value| value.inner_option)
instead of option.and_then(|value| Some(value.inner_option?))
Categories (optional)
- Kind: style or complexity
What is the advantage of the recommended code over the original code
There's no reason to take an option, wrap it in another option, and use ? to short-circuit. and_then
will work fine without
-
Updated
Nov 20, 2020 - Python
Currently the webhint codebase doesn't follow its own best practice of using importHelpers: true
to reduce the amount of redundant helper code generated by TypeScript (also requires adding tslib
as a dependency). This causes unnecessary bloat in the built webhint code, particularly for large bundles like the bro
-
Updated
Dec 3, 2020 - Go
-
Updated
Nov 25, 2020 - JavaScript
There's a formatting specification for Tag Keys and Values. One issue with applying some changes is that you are disallowed from using certain characters (notably the ,
) in a Tag Value, and this is not being caught by tflint
currently.
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>)
-
Updated
Nov 12, 2020
-
Updated
Nov 15, 2020 - C
-
Updated
Nov 25, 2020 - Ruby
-
Updated
Oct 14, 2020 - JavaScript
-
Updated
Jul 15, 2020 - JavaScript
-
Updated
Mar 15, 2020 - PHP
-
Updated
Nov 30, 2020 - Python
I really like enforcing one expectation per example. But with RSpec's exception matching, you need two expect
calls if you want to assert something about an exception:
expect { my_code }.to raise_error(MyErrorType) do |error|
expect(error.message).to match /something went wrong/
end
There's no way to match against the error message without first wrapping the call, and RSpec o
-
Updated
Mar 29, 2020 - JavaScript
Improve this page
Add a description, image, and links to the lint topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the lint topic, visit your repo's landing page and select "manage topics."
::-moz-focus-inner
is treated as a pseudo-class, not a pseudo-element, and so can cause false positives inno-descending-specificity
.no-descending-specificity