Browse Source

Install Prettier JS formatter, update config

merge-requests/70/head
Deimos 6 years ago
parent
commit
cae629e423
  1. 36
      tildes/package.json

36
tildes/package.json

@ -11,6 +11,9 @@
"dependencies": {}, "dependencies": {},
"devDependencies": { "devDependencies": {
"eslint": "^5.16.0", "eslint": "^5.16.0",
"eslint-config-prettier": "^4.3.0",
"eslint-plugin-prettier": "^3.1.0",
"prettier": "^1.17.1",
"stylelint": "^10.0.1", "stylelint": "^10.0.1",
"stylelint-scss": "^3.6.0" "stylelint-scss": "^3.6.0"
}, },
@ -18,34 +21,27 @@
"env": { "env": {
"browser": true "browser": true
}, },
"extends": "eslint:recommended",
"extends": [
"eslint:recommended",
"plugin:prettier/recommended"
],
"globals": { "globals": {
"$": "readonly", "$": "readonly",
"Intercooler": "readonly", "Intercooler": "readonly",
"Tildes": "readonly" "Tildes": "readonly"
},
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
} }
}, },
"eslintIgnore": [ "eslintIgnore": [
"static/js/third_party*"
"static/js/third_party*",
"static/js/tildes.js"
], ],
"prettier": {
"bracketSpacing": false,
"endOfLine": "lf",
"printWidth": 88,
"proseWrap": "always",
"tabWidth": 4
},
"stylelint": { "stylelint": {
"ignoreFiles": [ "ignoreFiles": [
"scss/spectre*/**" "scss/spectre*/**"

Loading…
Cancel
Save