add eslint and prettier
This commit is contained in:
parent
618146226b
commit
2ba687eb14
10 changed files with 775 additions and 37 deletions
15
package.json
15
package.json
|
@ -9,7 +9,10 @@
|
|||
"build:watch": "gulp watch",
|
||||
"clean": "gulp clean && gulp link --clean",
|
||||
"update": "npm install --save-dev gitlab:foundry-projects/foundry-pc/foundry-pc-types",
|
||||
"lint": "eslint '*/**/*.{js,ts,tsx}' --quiet --fix"
|
||||
"lint": "eslint 'src/**/*.ts'",
|
||||
"lint:fix": "eslint 'src/**/*.ts' --fix",
|
||||
"format:check": "prettier --list-different \"src/**/*.ts\"",
|
||||
"format": "prettier --write \"src/**/*.ts\""
|
||||
},
|
||||
"author": "",
|
||||
"license": "",
|
||||
|
@ -28,10 +31,20 @@
|
|||
"gulp-less": "^4.0.1",
|
||||
"gulp-sass": "^4.1.0",
|
||||
"gulp-typescript": "^6.0.0-alpha.1",
|
||||
"husky": "^4.3.6",
|
||||
"json-stringify-pretty-compact": "^2.0.0",
|
||||
"lint-staged": "^10.5.3",
|
||||
"prettier": "^2.2.1",
|
||||
"sass": "^1.30.0",
|
||||
"typescript": "^4.1.3",
|
||||
"yargs": "^16.2.0"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.ts": "eslint --cache --fix"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue