question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please add an option to add stylelint when creating a new workspace

See original GitHub issue

Description

It would be nice if you added stylelint when I’m created a new workspace. It can be configured respectively to the Default stylesheet format user chose.

Motivation

Just like any other linter (tslint, eslint, etc…) it be appreciated to add css, scss linter which helps you avoid errors and enforce conventions in your styles .

Suggested Implementation

While execute the npx create-nx-workspace@latest to create a new workspace I need to select a Default stylesheet. after I selected it you can install the relevant npm packages of the stylelint. and add the config file in the root directory. For Example: User selecte scss Default stylesheet: -npm i --D stylelint stylelint-config-standard stylelint-config-sass-guidelines

  • create a new file .stylelintrc in the root directory

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:17
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Phillip9587commented, Mar 20, 2021

@ofirrifo @vsavkin @developer239 I added a plugin to support stylelint in nx workspaces. Please give it a try: https://github.com/Phillip9587/nx-stylelint

2reactions
ofirrifocommented, Feb 15, 2021

@developer239 we are talking about stylelint and not tslint

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incremental stylesheet linting with Stylelint and the Nx toolchain
In this first part, we add Stylelint by following the steps from their Getting ... Create the file <nx-workspace-root>/.stylelintrc with the ...
Read more >
Getting started | Stylelint
1. Use npm to install Stylelint and the shared config: npm install --save-dev stylelint stylelint-config-standard-scss · 2. Create a .stylelintrc.json ...
Read more >
vscode-stylelint - Visual Studio Marketplace
Type @id:stylelint.vscode-stylelint into the search form and install the topmost one. The extension first looks for a copy of Stylelint ...
Read more >
Level up your CSS linting using Stylelint - LogRocket Blog
First, use npm to install Stylelint, along with the stylelint-config-standard to enable a core set of rules. Stylelint-config-standard is based ...
Read more >
How to configure the stylelint extension in vscode?
Add the language identifiers for the documents you want to validate to the extension's workspace or user settings using the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found