webcompiler
Version:
Lint, type-check, compile, package and gzip JavaScript (ES6 + Flow static types + JSX), for the browser as well as NodeJS; lint, compile, auto-prefix, minify and gzip SASS.
20 lines (17 loc) • 370 B
JavaScript
/* @flow */
type StyleLintResult = {
source: string;
warnings: Array<{
line: number;
column: number;
text: string;
rule: string;
}>;
};
declare module 'stylelint' {
declare function lint(options: Object): {
then(callback: (result: {results: StyleLintResult[]}) => void): {
catch(callback: (error: Error) => void): void;
};
};
}