Skip to content

Commit e38e598

Browse files
author
Jesús Ángel
committed
Added prettier as dev dependency, improved package scripts
1 parent 0246504 commit e38e598

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
public/utils/codemirror/
3+
public/kibana-integrations/

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@
2626
},
2727
"homepage": "https://www.wazuh.com/",
2828
"scripts": {
29+
"pretty": "prettier --single-quote \"{,!(node_modules)/**/}*.js\" --write",
2930
"tslint": "tslint -c .tslint.yml server/**/*.ts server/**/*.tsx public/**/*.ts public/**/*.tsx",
30-
"lint": "eslint server/** server/*.js *.js public/**/*.js public/*.js util/*.js -c .eslintrc.json --color",
31+
"lint": "eslint ./server/ ./public/ ./util/ ./*.js -c .eslintrc.json --color",
3132
"prebuild": "tsc; find . -name \"*.ts*\" -type f -not -path \"./node_modules/*\" -delete",
3233
"build": "plugin-helpers build",
3334
"test": "_mocha test/**/*"
@@ -56,7 +57,7 @@
5657
"eslint-plugin-import": "^2.14.0",
5758
"eslint-plugin-node": "^7.0.1",
5859
"mocha": "^5.2.0",
59-
"chai": "^3.5.0",
60+
"prettier": "^1.14.2",
6061
"tslint": "^5.11.0",
6162
"typescript": "^3.0.1",
6263
"typescript-eslint-parser": "^18.0.0"

0 commit comments

Comments
 (0)