mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 20:22:53 +00:00
commit
b22b845d57
8
.github/CONTRIBUTING.md
vendored
8
.github/CONTRIBUTING.md
vendored
@ -12,13 +12,13 @@ First, before you run the linters, you will need to install them all **and** ins
|
|||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
### JavaScript: Run JSCS and ESLint
|
### JavaScript: Run JSCS
|
||||||
|
|
||||||
We use [JSCS](http://jscs.info) and [ESLint](http://eslint.org) on our JavaScript files.
|
We use [JSCS](http://jscs.info) on our JavaScript files.
|
||||||
|
|
||||||
Our JSCS configuration is in our .jscsrc file, and we use [eslint-config-google](https://www.npmjs.com/package/eslint-config-google) in ESLint.
|
Our JSCS configuration is in our .jscsrc file.
|
||||||
|
|
||||||
To run ESLint, use `npm run eslint`. To run JSCS, use `npm run jscs`.
|
To run JSCS, use `npm run jscs`.
|
||||||
|
|
||||||
### CSS: Run StyleLint
|
### CSS: Run StyleLint
|
||||||
|
|
||||||
|
10
package.json
10
package.json
@ -4,8 +4,7 @@
|
|||||||
"description": "A modular interface for smart mirrors.",
|
"description": "A modular interface for smart mirrors.",
|
||||||
"main": "js/electron.js",
|
"main": "js/electron.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron js/electron.js",
|
"start": "electron js/electron.js"
|
||||||
"eslint": "eslint .",
|
|
||||||
"jscs": "jscs **/**/**/**/*.js",
|
"jscs": "jscs **/**/**/**/*.js",
|
||||||
"stylelint": "stylelint css/main.css fonts/roboto.css",
|
"stylelint": "stylelint css/main.css fonts/roboto.css",
|
||||||
"htmlvalidator": "html-validator --file=index.html",
|
"htmlvalidator": "html-validator --file=index.html",
|
||||||
@ -31,9 +30,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"electron-prebuilt": "latest",
|
"electron-prebuilt": "latest",
|
||||||
"stylelint": "latest",
|
"stylelint": "latest",
|
||||||
"stylelint-config-standard": "latest",
|
"stylelint-config-standard": "latest"
|
||||||
"eslint": "latest",
|
|
||||||
"eslint-config-google": "latest"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"express": "latest",
|
"express": "latest",
|
||||||
@ -46,8 +43,5 @@
|
|||||||
"socket.io": "latest",
|
"socket.io": "latest",
|
||||||
"valid-url": "latest",
|
"valid-url": "latest",
|
||||||
"walk": "latest"
|
"walk": "latest"
|
||||||
},
|
|
||||||
"eslintConfig": {
|
|
||||||
"extends": "google"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user