Skip to content

Commit

Permalink
chore: changes to TypeScript files have eslint --fix run on them (#1516)
Browse files Browse the repository at this point in the history
  • Loading branch information
malept authored Feb 25, 2020
1 parent 26f5863 commit dcf3bb1
Show file tree
Hide file tree
Showing 2 changed files with 242 additions and 23 deletions.
40 changes: 25 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,6 @@
"packages/template/*"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-customizable"
},
"cz-customizable": {
"config": "./.cz.js"
}
},
"nyc": {
"exclude": [
"packages/*/*/test/**/*.{js,ts}",
"tools/*.ts"
],
"extends": "@istanbuljs/nyc-config-typescript"
},
"scripts": {
"clean": "rimraf dist && bolt ws exec -- rimraf dist",
"prebuild": "bolt clean && ts-node tools/link-ts.ts && ts-node tools/copy-shared-types.ts && tsc --project ./tsconfig.packages.json --emitDeclarationOnly && ts-node tools/copy-types.ts",
Expand Down Expand Up @@ -145,6 +130,8 @@
"eslint-plugin-mocha": "^6.3.0",
"fetch-mock": "^8.1.0",
"generate-changelog": "^1.8.0",
"husky": "^4.2.3",
"lint-staged": "^10.0.8",
"listr": "^0.14.1",
"minimist": "^1.2.0",
"mocha": "^7.0.1",
Expand All @@ -166,5 +153,28 @@
"electron-windows-store": "^2.1.0",
"electron-winstaller": "^4.0.0",
"electron-wix-msi": "^2.1.1"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-customizable"
},
"cz-customizable": {
"config": "./.cz.js"
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.ts": "yarn lint --fix"
},
"nyc": {
"exclude": [
"packages/*/*/test/**/*.{js,ts}",
"tools/*.ts"
],
"extends": "@istanbuljs/nyc-config-typescript"
}
}
Loading

0 comments on commit dcf3bb1

Please sign in to comment.