Skip to content

Commit

Permalink
feat: Modern html report (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeapage authored and coreyfarrell committed May 3, 2019
1 parent 447a6a1 commit 95ebaf1
Show file tree
Hide file tree
Showing 26 changed files with 9,124 additions and 4,794 deletions.
1 change: 1 addition & 0 deletions .eslintignore
@@ -1,5 +1,6 @@
node_modules/
vendor/
packages/istanbul-api/test/sample-code/bad.js
packages/istanbul-reports/lib/html-spa/assets/bundle.js
coverage
dist
26 changes: 25 additions & 1 deletion .eslintrc
Expand Up @@ -3,8 +3,14 @@
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:import/errors",
"plugin:import/warnings"
"plugin:import/warnings",
"plugin:react/recommended"
],
"settings": {
"react": {
"version": "16.8"
}
},
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module"
Expand All @@ -24,6 +30,24 @@
"browser": true
}
},
{
"files": "packages/istanbul-reports/lib/html-spa/src/**",
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true
},
"rules": {
"react/prop-types": "off",
"react/jsx-no-target-blank": "off"
}
},
{
"files": "!packages/istanbul-reports/lib/html/assets/**",
"rules": {
Expand Down
131 changes: 101 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package.json
Expand Up @@ -29,6 +29,7 @@
"@babel/core": "^7.4.3",
"@babel/preset-env": "^7.4.3",
"@babel/register": "^7.4.0",
"babel-eslint": "^10.0.1",
"chai": "^4.2.0",
"clone": "^2.1.2",
"coveralls": "^3.0.3",
Expand All @@ -39,6 +40,7 @@
"eslint-config-prettier": "^4.1.0",
"eslint-plugin-import": "^2.17.2",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "^7.12.4",
"is-windows": "^1.0.2",
"js-yaml": "^3.13.1",
"lerna": "^3.13.3",
Expand All @@ -56,6 +58,9 @@
"**/coverage/**",
"**/dist/**",
"**/html/assets/**",
"**/html-spa/assets/**",
"**/html-spa/src/**",
"**/html-spa/rollup.config.js",
"**/test/**"
],
"reporter": [
Expand Down
1 change: 1 addition & 0 deletions packages/istanbul-reports/.gitignore
@@ -0,0 +1 @@
lib/html-spa/assets/bundle.js
3 changes: 3 additions & 0 deletions packages/istanbul-reports/lib/html-spa/.babelrc
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env", "@babel/preset-react"]
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 95ebaf1

Please sign in to comment.