mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-12 10:08:26 +00:00
1.1 KiB
1.1 KiB
Contribution Policy for MagicMirror²
Thanks for contributing to MagicMirror²!
We hold our code to standard, and these standards are documented below.
First, before you run the linters, you will need to install them all and install the development dependencies:
(sudo) npm install -g jscs stylelint html-validator-cli
npm install
JavaScript: Run JSCS and ESLint
We use JSCS and ESLint on our JavaScript files.
Our JSCS configuration is in our .jscsrc file, and we use eslint-config-google in ESLint.
To run ESLint, use npm run eslint
. To run JSCS, use npm run jscs
.
CSS: Run StyleLint
We use StyleLint to lint our CSS. Our configuration is in our .stylelintrc file.
To run StyleLint, use npm run stylelint
.
HTML: Run HTML Validator
We use NU Validator to validate our HTML. The configuration is in the command in the package.json file.
To run HTML Validator, use npm run htmlvalidator
.