Browse Source

Create package.json and ESLint+Stylelint configs

merge-requests/70/head
Bauke 6 years ago
committed by Deimos
parent
commit
6a45f88864
  1. 3
      .gitignore
  2. 62
      tildes/package.json

3
.gitignore

@ -21,3 +21,6 @@ tildes/static/js/tildes.js
# don't track site icon files
tildes/static/images/site-icons/*.png
# NodeJS dependencies
tildes/node_modules/

62
tildes/package.json

@ -0,0 +1,62 @@
{
"name": "tildes",
"version": "1.0.0",
"description": "Tildes (tildes.net) - a non-profit community site",
"license": "AGPL-3.0-or-later",
"scripts": {
"lint": "npm run lint:js ; npm run lint:scss",
"lint:js": "eslint static/js/",
"lint:scss": "stylelint scss/"
},
"dependencies": {},
"devDependencies": {
"eslint": "^5.16.0",
"stylelint": "^10.0.1",
"stylelint-scss": "^3.6.0"
},
"eslintConfig": {
"env": {
"browser": true
},
"extends": "eslint:recommended",
"globals": {
"$": "readonly",
"Intercooler": "readonly",
"Tildes": "readonly"
},
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
}
},
"eslintIgnore": [
"static/js/third_party*"
],
"stylelint": {
"ignoreFiles": [
"scss/spectre*/**"
],
"plugins": [
"stylelint-scss"
],
"rules": {
"indentation": 2,
"no-descending-specificity": null,
"string-quotes": "double"
}
}
}
Loading…
Cancel
Save