Add eslint & jest teamcity reporters

This commit is contained in:
Hypnosphi 2018-04-13 20:41:57 +02:00
parent 9f34952f70
commit 53a38f1eb6
3 changed files with 30 additions and 0 deletions

View File

@ -25,6 +25,7 @@
"docs:dev": "npm --prefix docs run dev",
"github-release": "github-release-from-changelog",
"lint": "yarn lint:js . && yarn lint:ts **/*.ts && yarn lint:md .",
"lint:ci": "yarn lint:js --format ./node_modules/eslint-teamcity/index.js . && yarn lint:ts **/*.ts && yarn lint:md .",
"lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location=.cache/eslint --ext .js,.jsx,.json --report-unused-disable-directives",
"lint:ts": "tslint -p . -c tslint.json -t stylish",
"lint:md": "remark -q",
@ -69,6 +70,7 @@
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-prettier": "^2.6.0",
"eslint-plugin-react": "^7.7.0",
"eslint-teamcity": "^2.0.0",
"github-release-from-changelog": "^1.3.1",
"glob": "^7.1.2",
"husky": "^0.14.3",
@ -82,6 +84,7 @@
"jest-image-snapshot": "^2.4.0",
"jest-jasmine2": "^22.4.3",
"jest-preset-angular": "^5.2.1",
"jest-teamcity-reporter": "^0.9.0",
"jest-vue-preprocessor": "^1.4.0",
"lerna": "2.10.0",
"lint-staged": "^7.0.4",
@ -142,6 +145,9 @@
"other": "Other"
}
},
"eslint-teamcity": {
"reporter": "inspections"
},
"workspaces": [
"addons/*",
"app/*",

View File

@ -102,6 +102,12 @@ const tasks = {
option: '--update',
extraParam: '-u',
}),
teamcity: createOption({
name: `Use TeamCity reporter`,
defaultValue: false,
option: '--teamcity',
extraParam: '--testResultsProcessor=jest-teamcity-reporter',
}),
};
const getProjects = list => {

View File

@ -5515,6 +5515,12 @@ eslint-scope@^3.7.1, eslint-scope@~3.7.1:
esrecurse "^4.1.0"
estraverse "^4.1.1"
eslint-teamcity@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/eslint-teamcity/-/eslint-teamcity-2.0.0.tgz#720523f4886032d1c61997674bec43acca4c6e73"
dependencies:
fs-extra "^5.0.0"
eslint-visitor-keys@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d"
@ -6483,6 +6489,14 @@ fs-extra@^1.0.0:
jsonfile "^2.1.0"
klaw "^1.0.0"
fs-extra@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-5.0.0.tgz#414d0110cdd06705734d055652c5411260c31abd"
dependencies:
graceful-fs "^4.1.2"
jsonfile "^4.0.0"
universalify "^0.1.0"
fs-readdir-recursive@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz#e32fc030a2ccee44a6b5371308da54be0b397d27"
@ -9054,6 +9068,10 @@ jest-specific-snapshot@^0.5.0:
dependencies:
jest-snapshot ">=20.0.3"
jest-teamcity-reporter@^0.9.0:
version "0.9.0"
resolved "https://registry.yarnpkg.com/jest-teamcity-reporter/-/jest-teamcity-reporter-0.9.0.tgz#a9f337a928a14e7e84163817456b930ecf7cbce8"
jest-util@^20.0.3:
version "20.0.3"
resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-20.0.3.tgz#0c07f7d80d82f4e5a67c6f8b9c3fe7f65cfd32ad"