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.

CONTRIBUTING.md 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # Contributing
  2. Thank you for wanting to contribute.
  3. To help out, you can:
  4. - get involved in any open [issue](https://github.com/stylelint/stylelint/issues) or [pull request](https://github.com/stylelint/stylelint/pulls)
  5. - improve our [support for non-standard syntaxes](docs/about/syntaxes.md)
  6. - create, enhance and debug rules using [our guide](docs/developer-guide/rules.md)
  7. - improve the [documentation](docs/)
  8. - add [new tests](https://github.com/stylelint/stylelint/issues?q=is%3Aopen+is%3Aissue+label%3A%22type%3A+tests%22) to _absolutely anything_
  9. - improve the [performance of rules](docs/developer-guide/rules.md#improve-the-performance-of-a-rule)
  10. - open [new issues](https://github.com/stylelint/stylelint/issues/new/choose) about your ideas for making stylelint better
  11. - create or contribute to [integrations](docs/user-guide/integrations/editor.md), like our plugin for [VS Code](https://github.com/stylelint/vscode-stylelint)
  12. Not only will you help stylelint thrive, but you may learn a thing or two — about CSS, PostCSS, Node, ES2015, unit testing, open-source software, and more. We want to encourage contributions! If you want to participate but couldn't, please [give us feedback](https://github.com/stylelint/stylelint/issues/new) about what we could do better.
  13. ## Code contributions
  14. To start coding, you'll need:
  15. - a minimum of [Node.js](https://nodejs.org/en/) v10, though we do recommend using the latest LTS release
  16. - the latest [npm](https://www.npmjs.com/)
  17. Then:
  18. 1. [Fork and clone](https://guides.github.com/activities/forking/) the stylelint repository.
  19. 2. Install all the dependencies with `npm ci`.
  20. ### Run tests
  21. Next, you'll want to run the tests using `npm test`.
  22. However, this runs all 25,000+ unit tests and also linting.
  23. You can use the interactive testing prompt to run tests for just a chosen set of files (which you'll want to do during development). For example, to run the tests for just the `color-hex-case` and `color-hex-length` rules:
  24. 1. Run `npm run watch` to start the interactive testing prompt.
  25. 2. Press `p` to filter by a filename regex pattern.
  26. 3. Enter `color-hex-case|color-hex-length`, i.e. each rule name separated by the pipe symbol (`|`).
  27. You can find more information about testing on the [Jest website](https://jestjs.io/).
  28. ### Write code
  29. With the interactive testing prompt running, you can write code confident that things are working as expected.
  30. You can write code to:
  31. - [add a rule](docs/developer-guide/rules.md#add-a-rule)
  32. - [add an option to a rule](docs/developer-guide/rules.md#add-an-option-to-a-rule)
  33. - [fix a bug in a rule](docs/developer-guide/rules.md#fix-a-bug-in-a-rule)
  34. - [improve the performance of a rule](docs/developer-guide/rules.md#improve-the-performance-of-a-rule)
  35. And many more things, including [writing system tests](docs/developer-guide/system-tests.md) and improving the [documentation](docs/).
  36. ### Format code
  37. We use [Prettier](https://prettier.io/) (with [a Husky and lint-staged precommit](https://prettier.io/docs/en/precommit.html)) to format your code automatically.
  38. Alternatively, you can:
  39. - trigger the pretty-printing all the files using `npm run format`
  40. - use a [Prettier editor integration](https://prettier.io/docs/en/editors.html)
  41. ### Open a pull request
  42. When you have something to share, it's time to [open a pull request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork).
  43. After we review and merge your pull request, we'll invite you to become a maintainer of the stylelint organization. You'll then be able to help manage issues, pull requests and releases. You'll also be able to work on the stylelint repository rather than your fork.
  44. ## Financial contributions
  45. We welcome financial contributions in full transparency on our [Open Collective](https://opencollective.com/stylelint).
  46. Anyone can file an expense. We will "merge" the expense into the ledger if it makes sense for the development of the community. Open Collective then reimburses the person who filed the expense.
  47. You can financially support us by becoming a:
  48. - [backer](https://opencollective.com/stylelint#backer)
  49. - [sponsor](https://opencollective.com/stylelint#sponsor)