Chore: Add issue/pr template and general housekeeping tools and docs (#900)

* Add linting

* Add issue templates and docs

* Add root eslint config and remove tslint

* Autofix lint issues
This commit is contained in:
Justin Halsall
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 4cfd9db6cf
commit 99e158bd39
44 changed files with 2505 additions and 2249 deletions

View File

@@ -242,7 +242,7 @@ export function parse(css: string, options: ParserOptions = {}) {
if (lines) {
lineno += lines.length;
}
let i = str.lastIndexOf('\n');
const i = str.lastIndexOf('\n');
column = i === -1 ? column + str.length : str.length - i;
}
@@ -457,7 +457,7 @@ export function parse(css: string, options: ParserOptions = {}) {
const pos = position();
// prop
let propMatch = match(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);
const propMatch = match(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);
if (!propMatch) {
return;
}