@cucumber/html-formatter 11.0.2 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/.mocharc.json +2 -2
  2. package/Makefile +16 -2
  3. package/check.js +22 -0
  4. package/default.mk +19 -47
  5. package/dist/cucumber-react.css +291 -0
  6. package/dist/main.js +1 -1
  7. package/dist/main.js.LICENSE.txt +4 -19
  8. package/dist/package.json +22 -35
  9. package/dist/src/CucumberHtmlStream.d.ts +3 -2
  10. package/dist/src/CucumberHtmlStream.d.ts.map +1 -0
  11. package/dist/src/CucumberHtmlStream.js +46 -68
  12. package/dist/src/CucumberHtmlStream.js.map +1 -1
  13. package/dist/src/cli-main.d.ts +1 -0
  14. package/dist/src/cli-main.d.ts.map +1 -0
  15. package/dist/src/cli-main.js +10 -11
  16. package/dist/src/cli-main.js.map +1 -1
  17. package/dist/src/index.mustache.html +1 -0
  18. package/dist/src/main.d.ts +1 -0
  19. package/dist/src/main.d.ts.map +1 -0
  20. package/dist/src/main.js +15 -37
  21. package/dist/src/main.js.map +1 -1
  22. package/dist/test/CucumberHtmlStreamTest.d.ts +1 -0
  23. package/dist/test/CucumberHtmlStreamTest.d.ts.map +1 -0
  24. package/dist/test/CucumberHtmlStreamTest.js +41 -122
  25. package/dist/test/CucumberHtmlStreamTest.js.map +1 -1
  26. package/dist/tsconfig.build.tsbuildinfo +4208 -0
  27. package/logo.svg +7 -0
  28. package/package.json +22 -35
  29. package/src/CucumberHtmlStream.ts +8 -21
  30. package/src/cli-main.ts +7 -20
  31. package/src/index.mustache.html +1 -0
  32. package/src/main.tsx +1 -5
  33. package/test/CucumberHtmlStreamTest.ts +9 -21
  34. package/test/dummy.css +0 -0
  35. package/test/dummy.js +0 -0
  36. package/tsconfig.build.json +13 -0
  37. package/tsconfig.json +1 -24
  38. package/webpack.config.js +1 -17
  39. package/.eslintrc.json +0 -41
  40. package/.nycrc.json +0 -16
  41. package/.prettierrc +0 -5
package/logo.svg ADDED
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" class="ml-3 ml-md-0" viewBox="0 0 40.59 46.31" width="40.59" height="46.31">
2
+ <g>
3
+ <path fill="#23d96c" fill-rule="evenodd" d="M30.283 3.645q-.528-.317-1.08-.593a16.164 16.164 0 00-1.154-.518c-.124-.052-.247-.1-.372-.149-.343-.127-.689-.268-1.042-.371a19.427 19.427 0 10-9.792 37.51v5.56c11.676-1.753 22.016-10.979 22.787-23.093.459-7.289-3.193-14.73-9.347-18.346z"/>
4
+ <path fill="#173647" d="M15.787 46.307v-5.935A20.472 20.472 0 1126.959 1.015c.274.08.557.187.832.291l.248.093c.165.064.291.113.417.167.348.137.739.313 1.208.543q.589.295 1.153.633c6.393 3.756 10.354 11.518 9.857 19.316-.763 12-10.722 22.122-23.679 24.067zm4.8-44.214h-.026a18.366 18.366 0 00-3.524 36.408l.85.165v5.18c11.392-2.224 20.009-11.272 20.686-21.922.448-7.033-3.1-14.018-8.83-17.383l-.008-.005A14.691 14.691 0 0027.654 3.5a5.74 5.74 0 00-.344-.138l-.27-.1a9.49 9.49 0 00-.708-.249 18.425 18.425 0 00-5.743-.92z"/>
5
+ <path fill="#173647" fill-rule="evenodd" d="M16.666 10.58a1.8 1.8 0 011.583.608 4.184 4.184 0 01.728 1.107c.645 1.422 1.027 3.461.23 4.605a6.334 6.334 0 01-3.981-3.087 3.236 3.236 0 01-.347-1.339 1.957 1.957 0 011.787-1.894zm-5.683 8.025a7.742 7.742 0 001.218.737 5.789 5.789 0 004.883-.138 6.116 6.116 0 00-3.345-3.45 3.664 3.664 0 00-1.442-.321 1.884 1.884 0 00-.319 0 1.766 1.766 0 00-.995 3.172zm6.1 3.433c-.777-.518-2.379-.309-3.312-.292a4.416 4.416 0 00-1.666.352 3.5 3.5 0 00-1.218.738 1.817 1.817 0 001.409 3.171 3.3 3.3 0 001.442-.321c1.436-.62 3.141-2.32 3.346-3.648zm2.61 2a6.556 6.556 0 00-3.724 3.506 3.091 3.091 0 00-.321 1.314 1.907 1.907 0 003.3 1.346 7.422 7.422 0 00.7-1.218c.621-1.333.866-3.72.046-4.948zm2.557-7.167a5.941 5.941 0 003.7-3.167 3.243 3.243 0 00.319-1.346 1.915 1.915 0 00-1.794-1.954 1.832 1.832 0 00-1.6.641 7.382 7.382 0 00-.705 1.218c-.62 1.434-.842 3.48.081 4.603zm4.208 12.115a3.244 3.244 0 00-.321-1.345 5.869 5.869 0 00-3.554-3.269 5.386 5.386 0 00-.226 4.711 4.147 4.147 0 00.7 1.121c1.133 1.23 3.505.32 3.402-1.218zm4.2-6.28a7.466 7.466 0 00-1.217-.7 4.425 4.425 0 00-1.666-.352 6.4 6.4 0 00-3.188.555 5.959 5.959 0 003.316 3.386 3.672 3.672 0 001.442.32 1.8 1.8 0 001.31-3.209z"/>
6
+ </g>
7
+ </svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cucumber/html-formatter",
3
- "version": "11.0.2",
3
+ "version": "13.0.0",
4
4
  "description": "HTML formatter for Cucumber",
5
5
  "bin": {
6
6
  "cucumber-html-formatter": "bin/cucumber-html-formatter.js"
@@ -14,48 +14,35 @@
14
14
  "author": "Aslak Hellesøy",
15
15
  "license": "MIT",
16
16
  "scripts": {
17
- "nyc": "nyc --reporter=html --reporter=text mocha",
18
17
  "test": "mocha",
19
- "lint": "eslint --ext ts,tsx --max-warnings 0 src test",
20
- "lint-fix": "eslint --ext ts,tsx --max-warnings 0 --fix src test",
21
- "build": "tsc && webpack-cli && cp src/index.mustache.html dist/src"
18
+ "prepublishOnly": "tsc --build tsconfig.build.json"
22
19
  },
23
20
  "dependencies": {
24
- "@cucumber/gherkin-utils": "^2.1.1",
25
- "@cucumber/messages": "^13.2.1",
26
- "@cucumber/query": "^7.0.1",
27
- "@cucumber/react": "^11.0.2",
28
- "commander": "^6.2.1",
29
- "react": "^17.0.1",
30
- "react-dom": "^17.0.1",
31
- "resolve-pkg": "^2.0.0",
21
+ "@cucumber/messages": "^15.0.0",
22
+ "commander": "^7.2.0",
32
23
  "source-map-support": "^0.5.19"
33
24
  },
34
25
  "devDependencies": {
35
- "@babel/core": "^7.12.10",
36
- "@types/jsdom": "^16.2.5",
37
- "@types/mocha": "^8.2.0",
38
- "@types/node": "^14.14.14",
39
- "@types/react": "^17.0.0",
40
- "@types/react-dom": "^17.0.0",
41
- "@typescript-eslint/eslint-plugin": "^4.10.0",
42
- "@typescript-eslint/parser": "^4.10.0",
26
+ "@babel/core": "^7.13.14",
27
+ "@cucumber/gherkin-utils": "^4.0.0",
28
+ "@cucumber/query": "^9.0.2",
29
+ "@cucumber/react": "^13.0.0",
30
+ "@cucumber/gherkin-streams": "^1.0.0",
31
+ "@cucumber/message-streams": "^1.0.0",
32
+ "@types/mocha": "^8.2.2",
33
+ "@types/node": "^14.14.37",
34
+ "@types/react": "^17.0.3",
35
+ "@types/react-dom": "^17.0.3",
43
36
  "babel-loader": "^8.2.2",
44
- "eslint": "^7.15.0",
45
- "eslint-config-prettier": "^7.0.0",
46
- "eslint-plugin-node": "^11.1.0",
47
- "eslint-plugin-prettier": "^3.3.0",
48
- "eslint-plugin-react": "^7.21.5",
49
- "gherkin": "^9.0.0",
50
- "mocha": "^8.2.1",
51
- "npm-link-shared": "^0.5.6",
52
- "nyc": "^15.1.0",
53
- "prettier": "^2.2.1",
54
- "ts-loader": "^8.0.12",
37
+ "mocha": "^8.3.2",
38
+ "puppeteer": "^8.0.0",
39
+ "react": "^17.0.2",
40
+ "react-dom": "^17.0.2",
41
+ "ts-loader": "^8.1.0",
55
42
  "ts-node": "^9.1.1",
56
- "typescript": "^4.1.3",
57
- "webpack": "^5.11.0",
58
- "webpack-cli": "^4.2.0"
43
+ "typescript": "^4.2.3",
44
+ "webpack": "^5.30.0",
45
+ "webpack-cli": "^4.6.0"
59
46
  },
60
47
  "bugs": {
61
48
  "url": "https://github.com/cucumber/cucumber/issues"
@@ -11,10 +11,8 @@ export default class CucumberHtmlStream extends Transform {
11
11
  * @param cssPath
12
12
  * @param jsPath
13
13
  */
14
- constructor(cssPath: string, jsPath: string) {
14
+ constructor(private readonly cssPath: string, private readonly jsPath: string) {
15
15
  super({ objectMode: true })
16
- this.cssPath = cssPath
17
- this.jsPath = jsPath
18
16
  }
19
17
 
20
18
  public _transform(
@@ -37,8 +35,6 @@ export default class CucumberHtmlStream extends Transform {
37
35
  this.writePostMessage(callback)
38
36
  }
39
37
 
40
- private cssPath: string
41
-
42
38
  private writePreMessageUnlessAlreadyWritten(callback: TransformCallback) {
43
39
  if (this.preMessageWritten) {
44
40
  return callback()
@@ -57,8 +53,6 @@ export default class CucumberHtmlStream extends Transform {
57
53
  })
58
54
  }
59
55
 
60
- private jsPath: string
61
-
62
56
  private writePostMessage(callback: TransformCallback) {
63
57
  this.writePreMessageUnlessAlreadyWritten((err) => {
64
58
  if (err) return callback(err)
@@ -86,29 +80,22 @@ export default class CucumberHtmlStream extends Transform {
86
80
  ) {
87
81
  this.readTemplate((err, template) => {
88
82
  if (err) return callback(err)
89
- const beginIndex =
90
- begin == null ? 0 : template.indexOf(begin) + begin.length
83
+ const beginIndex = begin == null ? 0 : template.indexOf(begin) + begin.length
91
84
  const endIndex = end == null ? template.length : template.indexOf(end)
92
85
  this.push(template.substring(beginIndex, endIndex))
93
86
  callback()
94
87
  })
95
88
  }
96
89
 
97
- private readTemplate(
98
- callback: (error?: Error | null, data?: string) => void
99
- ) {
90
+ private readTemplate(callback: (error?: Error | null, data?: string) => void) {
100
91
  if (this.template !== null) {
101
92
  return callback(null, this.template)
102
93
  }
103
- fs.readFile(
104
- __dirname + '/index.mustache.html',
105
- { encoding: 'utf-8' },
106
- (err, template) => {
107
- if (err) return callback(err)
108
- this.template = template
109
- return callback(null, template)
110
- }
111
- )
94
+ fs.readFile(__dirname + '/index.mustache.html', { encoding: 'utf-8' }, (err, template) => {
95
+ if (err) return callback(err)
96
+ this.template = template
97
+ return callback(null, template)
98
+ })
112
99
  }
113
100
 
114
101
  private writeMessage(envelope: messages.Envelope) {
package/src/cli-main.ts CHANGED
@@ -1,37 +1,24 @@
1
- import {
2
- BinaryToMessageStream,
3
- messages,
4
- NdjsonToMessageStream,
5
- } from '@cucumber/messages'
1
+ import { messages } from '@cucumber/messages'
2
+ import { BinaryToMessageStream, NdjsonToMessageStream } from '@cucumber/message-streams'
6
3
  import program from 'commander'
7
4
  import p from '../package.json'
8
- import resolvePkg from 'resolve-pkg'
9
5
  import { pipeline } from 'stream'
10
6
  import CucumberHtmlStream from './CucumberHtmlStream'
11
7
 
12
8
  program.version(p.version)
13
- program.option(
14
- '-f, --format <format>',
15
- 'output format: ndjson|protobuf',
16
- 'protobuf'
17
- )
9
+ program.option('-f, --format <format>', 'output format: ndjson|protobuf', 'protobuf')
18
10
  program.parse(process.argv)
19
11
 
20
12
  const toMessageStream =
21
- program.format === 'ndjson'
22
- ? new NdjsonToMessageStream(
23
- messages.Envelope.fromObject.bind(messages.Envelope)
24
- )
25
- : new BinaryToMessageStream(
26
- messages.Envelope.decodeDelimited.bind(messages.Envelope)
27
- )
13
+ program.opts().format === 'ndjson'
14
+ ? new NdjsonToMessageStream(messages.Envelope.fromObject.bind(messages.Envelope))
15
+ : new BinaryToMessageStream(messages.Envelope.decodeDelimited.bind(messages.Envelope))
28
16
 
29
17
  pipeline(
30
18
  process.stdin,
31
19
  toMessageStream,
32
20
  new CucumberHtmlStream(
33
- resolvePkg('@cucumber/react', { cwd: __dirname }) +
34
- '/dist/src/styles/cucumber-react.css',
21
+ __dirname + '/../../dist/cucumber-react.css',
35
22
  __dirname + '/../../dist/main.js'
36
23
  ),
37
24
  process.stdout,
@@ -3,6 +3,7 @@
3
3
  <head>
4
4
  <title>Cucumber</title>
5
5
  <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
6
+ <link rel="icon" href="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20class%3D%22ml-3%20ml-md-0%22%20viewBox%3D%220%200%2040.59%2046.31%22%20width%3D%2240.59%22%20height%3D%2246.31%22%3E%0A%20%20%20%20%3Cg%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20fill%3D%22%2323d96c%22%20fill-rule%3D%22evenodd%22%20d%3D%22M30.283%203.645q-.528-.317-1.08-.593a16.164%2016.164%200%2000-1.154-.518c-.124-.052-.247-.1-.372-.149-.343-.127-.689-.268-1.042-.371a19.427%2019.427%200%2010-9.792%2037.51v5.56c11.676-1.753%2022.016-10.979%2022.787-23.093.459-7.289-3.193-14.73-9.347-18.346z%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20fill%3D%22%23173647%22%20d%3D%22M15.787%2046.307v-5.935A20.472%2020.472%200%201126.959%201.015c.274.08.557.187.832.291l.248.093c.165.064.291.113.417.167.348.137.739.313%201.208.543q.589.295%201.153.633c6.393%203.756%2010.354%2011.518%209.857%2019.316-.763%2012-10.722%2022.122-23.679%2024.067zm4.8-44.214h-.026a18.366%2018.366%200%2000-3.524%2036.408l.85.165v5.18c11.392-2.224%2020.009-11.272%2020.686-21.922.448-7.033-3.1-14.018-8.83-17.383l-.008-.005A14.691%2014.691%200%200027.654%203.5a5.74%205.74%200%2000-.344-.138l-.27-.1a9.49%209.49%200%2000-.708-.249%2018.425%2018.425%200%2000-5.743-.92z%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20fill%3D%22%23173647%22%20fill-rule%3D%22evenodd%22%20d%3D%22M16.666%2010.58a1.8%201.8%200%20011.583.608%204.184%204.184%200%2001.728%201.107c.645%201.422%201.027%203.461.23%204.605a6.334%206.334%200%2001-3.981-3.087%203.236%203.236%200%2001-.347-1.339%201.957%201.957%200%20011.787-1.894zm-5.683%208.025a7.742%207.742%200%20001.218.737%205.789%205.789%200%20004.883-.138%206.116%206.116%200%2000-3.345-3.45%203.664%203.664%200%2000-1.442-.321%201.884%201.884%200%2000-.319%200%201.766%201.766%200%2000-.995%203.172zm6.1%203.433c-.777-.518-2.379-.309-3.312-.292a4.416%204.416%200%2000-1.666.352%203.5%203.5%200%2000-1.218.738%201.817%201.817%200%20001.409%203.171%203.3%203.3%200%20001.442-.321c1.436-.62%203.141-2.32%203.346-3.648zm2.61%202a6.556%206.556%200%2000-3.724%203.506%203.091%203.091%200%2000-.321%201.314%201.907%201.907%200%20003.3%201.346%207.422%207.422%200%2000.7-1.218c.621-1.333.866-3.72.046-4.948zm2.557-7.167a5.941%205.941%200%20003.7-3.167%203.243%203.243%200%2000.319-1.346%201.915%201.915%200%2000-1.794-1.954%201.832%201.832%200%2000-1.6.641%207.382%207.382%200%2000-.705%201.218c-.62%201.434-.842%203.48.081%204.603zm4.208%2012.115a3.244%203.244%200%2000-.321-1.345%205.869%205.869%200%2000-3.554-3.269%205.386%205.386%200%2000-.226%204.711%204.147%204.147%200%2000.7%201.121c1.133%201.23%203.505.32%203.402-1.218zm4.2-6.28a7.466%207.466%200%2000-1.217-.7%204.425%204.425%200%2000-1.666-.352%206.4%206.4%200%2000-3.188.555%205.959%205.959%200%20003.316%203.386%203.672%203.672%200%20001.442.32%201.8%201.8%200%20001.31-3.209z%22%2F%3E%0A%20%20%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E">
6
7
  <style>
7
8
  {{css}}
8
9
  </style>
package/src/main.tsx CHANGED
@@ -1,9 +1,5 @@
1
1
  import { messages } from '@cucumber/messages'
2
- import {
3
- QueriesWrapper,
4
- EnvelopesQuery,
5
- FilteredResults,
6
- } from '@cucumber/react'
2
+ import { QueriesWrapper, EnvelopesQuery, FilteredResults } from '@cucumber/react'
7
3
  import { Query as GherkinQuery } from '@cucumber/gherkin-utils'
8
4
  import { Query as CucumberQuery } from '@cucumber/query'
9
5
  import React from 'react'
@@ -3,27 +3,21 @@ import CucumberHtmlStream from '../src/CucumberHtmlStream'
3
3
  import { Writable } from 'stream'
4
4
  import assert from 'assert'
5
5
 
6
- async function renderAsHtml(
7
- ...envelopes: messages.IEnvelope[]
8
- ): Promise<string> {
9
- return new Promise((resolve) => {
6
+ async function renderAsHtml(...envelopes: messages.IEnvelope[]): Promise<string> {
7
+ return new Promise((resolve, reject) => {
10
8
  let html = ''
11
9
  const sink: Writable = new Writable({
12
- write(
13
- chunk: any,
14
- encoding: string,
15
- callback: (error?: Error | null) => void
16
- ): void {
10
+ write(chunk: any, encoding: string, callback: (error?: Error | null) => void): void {
17
11
  html += chunk
18
12
  callback()
19
13
  },
20
14
  })
21
15
  sink.on('finish', () => resolve(html))
22
16
  const cucumberHtmlStream = new CucumberHtmlStream(
23
- __dirname +
24
- '/../node_modules/@cucumber/react/dist/src/styles/cucumber-react.css',
25
- __dirname + '/../dist/main.js'
17
+ `${__dirname}/dummy.css`,
18
+ `${__dirname}/dummy.js`
26
19
  )
20
+ cucumberHtmlStream.on('error', reject)
27
21
  cucumberHtmlStream.pipe(sink)
28
22
 
29
23
  for (const envelope of envelopes) {
@@ -44,14 +38,10 @@ describe('CucumberHtmlStream', () => {
44
38
  testRunStarted: messages.TestRunStarted.create({}),
45
39
  })
46
40
  const html = await renderAsHtml(e1)
47
- assert(
48
- html.indexOf(
49
- `window.CUCUMBER_MESSAGES = [${JSON.stringify(e1.toJSON())}]`
50
- ) >= 0
51
- )
41
+ assert(html.indexOf(`window.CUCUMBER_MESSAGES = [${JSON.stringify(e1.toJSON())}]`) >= 0)
52
42
  })
53
43
 
54
- it('writes one message to html', async () => {
44
+ it('writes two messages to html', async () => {
55
45
  const e1 = messages.Envelope.create({
56
46
  testRunStarted: messages.TestRunStarted.create({}),
57
47
  })
@@ -61,9 +51,7 @@ describe('CucumberHtmlStream', () => {
61
51
  const html = await renderAsHtml(e1, e2)
62
52
  assert(
63
53
  html.indexOf(
64
- `window.CUCUMBER_MESSAGES = [${JSON.stringify(
65
- e1.toJSON()
66
- )},${JSON.stringify(e2.toJSON())}]`
54
+ `window.CUCUMBER_MESSAGES = [${JSON.stringify(e1.toJSON())},${JSON.stringify(e2.toJSON())}]`
67
55
  ) >= 0
68
56
  )
69
57
  })
package/test/dummy.css ADDED
File without changes
package/test/dummy.js ADDED
File without changes
@@ -0,0 +1,13 @@
1
+ {
2
+ "extends": "../../tsconfig.build.json",
3
+ "compilerOptions": {
4
+ "rootDir": ".",
5
+ "outDir": "dist"
6
+ },
7
+ "include": [
8
+ "src",
9
+ "test",
10
+ "features",
11
+ "package.json"
12
+ ]
13
+ }
package/tsconfig.json CHANGED
@@ -1,26 +1,3 @@
1
1
  {
2
- "compilerOptions": {
3
- "declaration": true,
4
- "target": "es5",
5
- "lib": [
6
- "es2019",
7
- "dom"
8
- ],
9
- "sourceMap": true,
10
- "allowJs": false,
11
- "jsx": "react",
12
- "resolveJsonModule": true,
13
- "module": "commonjs",
14
- "esModuleInterop": true,
15
- "noImplicitAny": true,
16
- "moduleResolution": "node",
17
- "outDir": "dist",
18
- "downlevelIteration": true,
19
- "skipLibCheck": true
20
- },
21
- "include": [
22
- "src/**/*",
23
- "test/**/*",
24
- "features/**/*"
25
- ]
2
+ "extends": "../../tsconfig.json"
26
3
  }
package/webpack.config.js CHANGED
@@ -1,19 +1,3 @@
1
- const path = require('path')
2
-
3
1
  module.exports = {
4
- entry: './src/main.tsx',
5
- module: {
6
- rules: [
7
- {test: /\.tsx?$/, use: 'ts-loader'}
8
- ]
9
- },
10
- resolve: {
11
- fallback: {
12
- stream: false,
13
- path: false
14
- },
15
- alias: {
16
- react: path.resolve('./node_modules/react')
17
- }
18
- }
2
+ entry: './dist/src/main.js',
19
3
  };
package/.eslintrc.json DELETED
@@ -1,41 +0,0 @@
1
- {
2
- "env": {
3
- "browser": true,
4
- "node": true
5
- },
6
- "parser": "@typescript-eslint/parser",
7
- "parserOptions": {
8
- "project": "tsconfig.json",
9
- "sourceType": "module"
10
- },
11
- "plugins": [
12
- "react",
13
- "node",
14
- "@typescript-eslint"
15
- ],
16
- "extends": [
17
- "eslint:recommended",
18
- "plugin:react/recommended",
19
- "plugin:@typescript-eslint/eslint-recommended",
20
- "plugin:@typescript-eslint/recommended",
21
- "plugin:prettier/recommended"
22
- ],
23
- "rules": {
24
- "node/no-extraneous-import": "error",
25
- "@typescript-eslint/ban-ts-ignore": "off",
26
- "@typescript-eslint/ban-ts-comment": "off",
27
- "@typescript-eslint/explicit-module-boundary-types": "off",
28
- "@typescript-eslint/explicit-function-return-type": "off",
29
- "@typescript-eslint/no-use-before-define": "off",
30
- "@typescript-eslint/interface-name-prefix": "off",
31
- "@typescript-eslint/member-delimiter-style": "off",
32
- "@typescript-eslint/no-explicit-any": "off",
33
- "react/prop-types": "off"
34
- },
35
- "settings": {
36
- "react": {
37
- "pragma": "React",
38
- "version": "detect"
39
- }
40
- }
41
- }
package/.nycrc.json DELETED
@@ -1,16 +0,0 @@
1
- {
2
- "extension": [
3
- ".ts",
4
- ".tsx"
5
- ],
6
- "exclude": [
7
- "coverage",
8
- "dist",
9
- "src/**/*.d.ts"
10
- ],
11
- "reporter": [
12
- "html",
13
- "text"
14
- ],
15
- "all": true
16
- }
package/.prettierrc DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "trailingComma": "es5",
3
- "semi": false,
4
- "singleQuote": true
5
- }