Use prettier for formatting.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
XhmikosR
2019-12-10 09:42:46 +02:00
parent 4fbec2a557
commit 3321fa8067
2 changed files with 4974 additions and 0 deletions

4909
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

65
package.json Normal file
View File

@@ -0,0 +1,65 @@
{
"name": "AdminLTE",
"version": "1.0.0",
"private": true,
"description": "",
"repository": {
"type": "git",
"url": "git+https://github.com/pi-hole/AdminLTE.git"
},
"keywords": [],
"author": "",
"license": "EUPL-1.2",
"bugs": {
"url": "https://github.com/pi-hole/AdminLTE/issues"
},
"homepage": "https://github.com/pi-hole/AdminLTE#readme",
"scripts": {
"xo": "xo",
"xo:fix": "npm run xo -- --fix",
"test": "npm run xo"
},
"devDependencies": {
"xo": "^0.25.3"
},
"prettier": {
"bracketSpacing": true,
"printWidth": 100,
"singleQuote": false,
"trailingComma": "none"
},
"xo": {
"space": 2,
"envs": [
"browser",
"jquery"
],
"parserOptions": {
"ecmaVersion": 3,
"sourceType": "script"
},
"esnext": false,
"prettier": true,
"ignores": [
"**/vendor/**"
],
"rules": {
"camelcase": "off",
"capitalized-comments": "off",
"new-cap": "off",
"no-alert": "off",
"no-negated-condition": "off",
"one-var": "off",
"radix": "off",
"spaced-comment": "off",
"unicorn/explicit-length-check": "off",
"unicorn/filename-case": "off",
"unicorn/no-for-loop": "off",
"unicorn/no-zero-fractions": "off",
"unicorn/prefer-includes": "off",
"unicorn/prefer-node-append": "off",
"unicorn/prefer-query-selector": "off",
"unicorn/prefer-string-slice": "off"
}
}
}