Skip to content

Commit

Permalink
postcss fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vdiez committed Nov 12, 2024
1 parent 70571ff commit 2fedb60
Show file tree
Hide file tree
Showing 7 changed files with 134 additions and 803 deletions.
911 changes: 110 additions & 801 deletions package-lock.json

Large diffs are not rendered by default.

15 changes: 14 additions & 1 deletion packages/css/src/linter/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import stylelint from 'stylelint';
import postcssHtml from 'postcss-html';
import postcssSass from 'postcss-sass';
import postcssScss from 'postcss-scss';
import postcssLess from 'postcss-less';
import postcss from 'postcss-syntax';
import { plugins } from '../rules/index.js';

Expand Down Expand Up @@ -60,5 +64,14 @@ export function createStylelintConfig(rules: RuleConfig[]): stylelint.Config {
configRules[key] = configurations;
}
}
return { customSyntax: postcss(), rules: configRules, plugins };
return {
customSyntax: postcss({
html: postcssHtml,
scss: postcssScss,
sass: postcssSass,
less: postcssLess,
}),
rules: configRules,
plugins,
};
}
7 changes: 6 additions & 1 deletion server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@ if (isMainThread) {
}

context.setContext({ workDir, shouldUseTypeScriptParserForJS, sonarlint, debugMemory, bundles });
server.start(Number.parseInt(port), host, createWorker(new URL(import.meta.url), getContext()));
server.start(
Number.parseInt(port),
host,
createWorker(new URL(import.meta.url), getContext()),
6000000,
);
}
1 change: 1 addition & 0 deletions typings/postcss-html/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module 'postcss-html';
1 change: 1 addition & 0 deletions typings/postcss-less/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module 'postcss-less';
1 change: 1 addition & 0 deletions typings/postcss-sass/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module 'postcss-sass';
1 change: 1 addition & 0 deletions typings/postcss-scss/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module 'postcss-scss';

0 comments on commit 2fedb60

Please sign in to comment.