0.2.10 • Published 2 years ago

@novicell/stylelint-config v0.2.10

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Novicell Stylelint config

npm

This is an Stylelint config for all projects written with either vanilla CSS or PostCSS.

How to install

1.

```bash
npm i stylelint @novicell/stylelint-config
```
  1. Create a .stylelintrc.json in the root of the project
  2. Add the following 👇
    {
      "extends": "@novicell/stylelint-config",
      "rules": {
        // Your project specific rules or overrides
      }
    }
  3. Add lint scripts to package.json
    "scripts": {
      "stylelint": "stylelint '**/*.{css,vue}'",
      "stylelint:fix": "stylelint '**/*.{css,vue}' --fix"
    }
  4. Make VS Code autofix issues on save (optional)

    • Install the Stylelint extension
    • Create a .vscode folder in root and add settings.json to it. Remember to disable Prettier!
    • Add the following
     {
       "css.validate": false,
       "less.validate": false,
       "scss.validate": false,
       "stylelint.validate": ["css", "postcss", "vue"],
       "editor.codeActionsOnSave": {
         "source.fixAll.stylelint": true,
       },
       "prettier.enable": false
     }
  5. Use StylelintWebPackPLugin. to fix your issues on build (optional)

Contribution

Looking to contribute something? Here's how you can help. Please take a moment to review our contribution guidelines in order to make the contribution process easy and effective for everyone involved.

License

The Novicell CSS Utils is licensed under the MIT license. (http://opensource.org/licenses/MIT)

0.2.10

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago