npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@condorhero/stylelint-config-vue

v2.0.0

Published

My Stylelint vue config presets

Downloads

4

Readme

@condorhero/stylelint-config-vue

  • The(stylelint-config-standard) standard shareable config for Stylelint.
  • stylelint-config-recess-order is Recess-based property sort order for Stylelint.
  • Lint also for CSS, HTML, markdown, css-modules, bem, SCSS.
  • Auto fix for formatting.
  • Vue out-of-box.
  • Sorted CSS properties.

Usage

Install

pnpm add -D eslint @condorhero/stylelint-config-vue

Config .stylelintrc

{
  "extends": "@condorhero/stylelint-config-vue"
}

You can use a .stylelintignore file to ignore specific files, Alternatively, you can add an ignoreFiles property within your configuration object.It is recommended to use the CLI command to specify the format file suffix, For example: stylelint src/**/*.{css,html,md}).

Add script for package.json

For example:

{
  "scripts": {
    "stylelint": "stylelint **/*.{css,html,md,vue}",
    "stylelint:fix": "stylelint **/*.{css,html,md,vue} --fix"
  }
}

Config VS Code auto fix

Create .vscode/settings.json

{
  "css.validate": false,
  "less.validate": false,
  "scss.validate": false,

  "editor.formatOnSave": false,
  "editor.codeActionsOnSave": {
    "source.fixAll.stylelint": true
  },
  "files.autoSaveDelay": 500,
}

link: https://github.com/stylelint/vscode-stylelint/issues/35

Check Also

  1. @condorhero/stylelint-config

Contribution Guide

Hey there! We are really excited that you are interested in contributing. This is a general contribution guide. Before submitting your contribution, please make sure to take a moment and read through the following guide:

PackageManager

Update Dependencies

Keeping dependencies up-to-date is one of the important aspects to keep projects alive and getting latest bug fixes on time. We recommend to update dependencies in weekly or bi-weekly intervals.

We use taze to update the dependencies manually most of the time. As deps updating bots like Dependabot or Renovate could be a bit annoying when you have a lot projects.

With taze, you can run taze major -Ir to check and select the versions to update interactive. -I stands for --interactive, -r stands for --recursive for monorepo.

I usually use:

taze -r major && taze -w

After bumpping, we install them, runing build and test to verify nothing breaks before pushing to main.

monorepo

stylelint-config

# add a monorepo,package.json adds a new field workspaces, which you can also add manually
npm init -w ./packages/typescript

# Run "test" script on all packages
npm run test --workspaces
# Tip - this also works:
npm run test  -ws

# To run a command for a specific package, add the --workspace (singular) flag:
# Runs "test" only on package-a
npm run test --workspace package-a

# Tip - this also works:
npm run test -w package-a
# add a file pnpm-workspace.yaml
# for example:
packages:
  - 'packages/*'


# Run "test" script on all packages
pnpm run test -r
# Tip - this also works:
pnpm run test --recursive

# To run a command for a specific package, add the --workspace and --filter flag:
# Runs "test" only on package-a
npm run test --recursive --filter="package-a"

# Tip - this also works:
npm run test -r -F="package-a"

Note: pnpm -w is --workspace-root Run as if pnpm was started in the root of the workspace instead of the current working directory.

Commit Convention

We use Conventional Commits for commit messages, which allows the changelog to be auto-generated based on the commits. Please read the guide through if you aren't familiar with it already.

EditorConfig

EditorConfig helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs.

VS Code need download Plugin - EditorConfig for VS Code.

License

MIT