Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

get-started.md 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Getting started
  2. 1\. Use [npm](https://docs.npmjs.com/about-npm/) to install stylelint and its [`standard configuration`](https://github.com/stylelint/stylelint-config-standard):
  3. ```shell
  4. npm install --save-dev stylelint stylelint-config-standard
  5. ```
  6. 2\. Create a `.stylelintrc.json` configuration file in the root of your project:
  7. ```json
  8. {
  9. "extends": "stylelint-config-standard"
  10. }
  11. ```
  12. 3\. Run stylelint on, for example, all the CSS files in your project:
  13. ```shell
  14. npx stylelint "**/*.css"
  15. ```
  16. This will lint your CSS for [possible errors](rules/list.md#possible-errors) and [stylistic issues](rules/list.md#stylistic-issues).
  17. ## Customize
  18. Now that you're up and running, you'll likely want to customize stylelint to meet your needs.
  19. ### Your configuration
  20. You'll want to customize your configuration.
  21. For example, you may want to use the popular:
  22. - [`stylelint-config-sass-guidelines` config](https://github.com/bjankord/stylelint-config-sass-guidelines) if you write SCSS
  23. - [`stylelint-order` plugin](https://github.com/hudochenkov/stylelint-order) if you want to order things like properties
  24. You'll find more [configs](https://github.com/stylelint/awesome-stylelint#configs) and [plugins](https://github.com/stylelint/awesome-stylelint#plugins) listed in [awesome stylelint](https://github.com/stylelint/awesome-stylelint).
  25. To further customize your stylelint configuration, you can adapt your:
  26. - [rules](configure.md#rules)
  27. - [shared configs](configure.md#extends)
  28. - [plugins](configure.md#plugins)
  29. We recommend you add [rules that limit language features](rules/list.md#limit-language-features) to your configuration, e.g. [`unit-allowed-list`](../../lib/rules/unit-allowed-list/README.md), [`selector-class-pattern`](../../lib/rules/selector-class-pattern/README.md) and [`selector-max-id`](../../lib/rules/selector-max-id/README.md). These are powerful rules that you can use to enforce non-stylistic consistency in your code.
  30. ### Your usage
  31. You don't have to use the [Command Line Interface](usage/cli.md); you can also use the:
  32. - [Node API](usage/node-api.md)
  33. - [PostCSS plugin](usage/postcss-plugin.md)
  34. There are also integrations for [editors](integrations/editor.md), [task-runners](integrations/task-runner.md) and [others](integrations/other.md) too. Our [extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint) is a popular choice that lets you see violations inline in your editor.