Skip to content

Commit

Permalink
feat: updated (dev|peer)Dependencies (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
natterstefan authored Aug 14, 2022
1 parent 2c58b8d commit 7ed5cbb
Show file tree
Hide file tree
Showing 15 changed files with 3,871 additions and 2,928 deletions.
38 changes: 38 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## Docs
# - https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: github-actions
reviewers:
- "natterstefan"
directory: "/"
schedule:
interval: "monthly"
open-pull-requests-limit: 10
labels:
- "dependencies"
commit-message:
prefix: "chore"
include: "scope"
ignore:
# For all packages, ignore all patch updates
- dependency-name: "*"
update-types: ["version-update:semver-patch"]

- package-ecosystem: "npm"
reviewers:
- "natterstefan"
directory: "/"
schedule:
interval: "monthly"
open-pull-requests-limit: 10
labels:
- "dependencies"
commit-message:
prefix: "chore"
prefix-development: "chore(dev)"
include: "scope"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-patch"]
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
cancel-in-progress: true

jobs:
build:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
37 changes: 17 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,28 @@
]
},
"devDependencies": {
"@babel/core": "^7.17.5",
"@babel/eslint-parser": "^7.17.0",
"commitizen": "^4.2.4",
"@babel/core": "^7.18.10",
"@babel/eslint-parser": "^7.18.9",
"commitizen": "^4.2.5",
"copyfiles": "^2.4.1",
"cz-conventional-changelog": "3.3.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"enzyme-to-json": "^3.6.2",
"eslint": "^8.10.0",
"eslint": "^8.22.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.4.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.1.1",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.2",
"eslint-plugin-react-hooks": "^4.3.0",
"husky": "^7.0.4",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.8.2",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.1",
"is-ci": "^3.0.1",
"jest": "^27.5.1",
"jest-preset-ns": "^1.1.0",
"lerna": "^4.0.0",
"jest": "^28.1.3",
"jest-preset-ns": "^2.1.1",
"lerna": "^5.4.1",
"lerna-changelog": "^2.2.0",
"prettier": "^2.5.1",
"turbo": "^1.1.4"
"prettier": "^2.7.1",
"turbo": "^1.4.3"
},
"config": {
"commitizen": {
Expand Down
16 changes: 8 additions & 8 deletions packages/eslint-config-ns-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@
"test": "echo \"OK\" && exit 0"
},
"dependencies": {
"@babel/core": "^7.17.5",
"@babel/eslint-parser": "^7.17.0"
"@babel/core": "^7.18.10",
"@babel/eslint-parser": "^7.18.9"
},
"peerDependencies": {
"eslint": "^8.10.0",
"eslint": "^8.22.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.4.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.1.1",
"eslint-plugin-prettier": "^4.0.0",
"prettier": "^2.5.1"
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.8.2",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.7.1"
},
"bugs": {
"url": "https://github.com/natterstefan/eslint-config-ns/issues"
Expand Down
22 changes: 11 additions & 11 deletions packages/eslint-config-ns-ts-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@
"test": "echo \"OK\" && exit 0"
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "^5.12.1",
"@typescript-eslint/parser": "^5.12.1",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"eslint-config-ns-base": "^3.0.0",
"eslint-import-resolver-typescript": "^2.5.0",
"typescript": "^4.5.5"
"eslint-import-resolver-typescript": "^3.4.1",
"typescript": "^4.7.4"
},
"peerDependencies": {
"eslint": "^8.10.0",
"eslint": "^8.22.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.4.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.1.1",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"prettier": "^2.5.1"
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.8.2",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.7.1"
},
"bugs": {
"url": "https://github.com/natterstefan/eslint-config-ns/issues"
Expand Down
26 changes: 13 additions & 13 deletions packages/eslint-config-ns-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,24 @@
"test": "echo \"OK\" && exit 0"
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "^5.12.1",
"@typescript-eslint/parser": "^5.12.1",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"eslint-config-ns": "^3.0.0",
"eslint-config-ns-ts-base": "^3.0.0",
"eslint-import-resolver-typescript": "^2.5.0",
"typescript": "^4.5.5"
"eslint-import-resolver-typescript": "^3.4.1",
"typescript": "^4.7.4"
},
"peerDependencies": {
"eslint": "^8.10.0",
"eslint": "^8.22.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.4.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.1.1",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.2",
"eslint-plugin-react-hooks": "^4.3.0",
"prettier": "^2.5.1"
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.8.2",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"prettier": "^2.7.1"
},
"bugs": {
"url": "https://github.com/natterstefan/eslint-config-ns/issues"
Expand Down
24 changes: 12 additions & 12 deletions packages/eslint-config-ns/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,22 @@
"test": "echo \"OK\" && exit 0"
},
"dependencies": {
"@babel/core": "^7.17.5",
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-react": "^7.16.7",
"@babel/core": "^7.18.10",
"@babel/eslint-parser": "^7.18.9",
"@babel/preset-react": "^7.18.6",
"eslint-config-ns-base": "^3.0.0"
},
"peerDependencies": {
"eslint": "^8.10.0",
"eslint": "^8.22.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.4.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.1.1",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.2",
"eslint-plugin-react-hooks": "^4.3.0",
"prettier": "^2.5.1"
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.8.2",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"prettier": "^2.7.1"
},
"bugs": {
"url": "https://github.com/natterstefan/eslint-config-ns/issues"
Expand Down
15 changes: 10 additions & 5 deletions packages/example-js-react/src/components/__tests__/index.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react'
import { shallow } from 'enzyme'
import { act } from 'react-dom/test-utils'
import { mount, shallow } from 'enzyme'

import { App } from '../app'

Expand All @@ -12,15 +13,19 @@ describe('App', () => {
})

it('increases counter every 1 second', () => {
const wrapper = shallow(<App />)
const wrapper = mount(<App />)
expect(wrapper.text()).toBe(
'Hello eslint-config-ns<Text />State Counter: 0',
'Hello eslint-config-nsHello WorldState Counter: 0',
)

jest.advanceTimersByTime(1000)
act(() => {
jest.advanceTimersByTime(1000)
})
expect(wrapper.text()).toContain('State Counter: 1')

jest.advanceTimersByTime(1000)
act(() => {
jest.advanceTimersByTime(1000)
})
expect(wrapper.text()).toContain('State Counter: 2')
})
})
6 changes: 4 additions & 2 deletions packages/example-js-react/src/components/app.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import React, { useState } from 'react'
import React, { useEffect, useState } from 'react'

import { Text } from './text'

export const App = () => {
const [counter, setCounter] = useState(0)
const headline = 'Hello eslint-config-ns'

setInterval(() => setCounter(counter + 1), 1000)
useEffect(() => {
setInterval(() => setCounter(c => c + 1), 1000)
}, [])

return (
<>
Expand Down
13 changes: 6 additions & 7 deletions packages/example-ts-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@
"react-dom": "^17.0.2"
},
"devDependencies": {
"@types/enzyme": "^3.10.11",
"@types/enzyme-adapter-react-16": "^1.0.6",
"@types/jest": "^27.4.1",
"@types/react": "^17.0.39",
"@types/react-dom": "^17.0.11",
"@testing-library/react": "^12.1.5",
"@types/jest": "^28.1.6",
"@types/react": "^17.0.48",
"@types/react-dom": "^17.0.17",
"eslint-config-ns-ts": "^3.0.0",
"ts-jest": "^27.1.3",
"typescript": "^4.5.5"
"ts-jest": "^28.0.7",
"typescript": "^4.7.4"
}
}

This file was deleted.

31 changes: 14 additions & 17 deletions packages/example-ts-react/src/components/__tests__/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
import React from 'react'
import { shallow } from 'enzyme'
import { act } from 'react-dom/test-utils'
import { render, screen } from '@testing-library/react'

import { App } from '../app'

jest.useFakeTimers()

describe('App', () => {
it('renders', () => {
const wrapper = shallow(<App />)
expect(wrapper.text()).toBe(
'Hello eslint-config-ns-ts<Text />State Counter: 0',
)
expect(wrapper).toMatchSnapshot()
})

it('increases counter every 1 second', () => {
const wrapper = shallow(<App />)
expect(wrapper.text()).toBe(
'Hello eslint-config-ns-ts<Text />State Counter: 0',
)
render(<App />)
const elem = screen.getByTestId('counter')
expect(elem.innerHTML).toBe('0')

act(() => {
jest.advanceTimersByTime(1000)
})

jest.advanceTimersByTime(1000)
expect(wrapper.text()).toContain('State Counter: 1')
expect(elem.innerHTML).toBe('1')

jest.advanceTimersByTime(1000)
expect(wrapper.text()).toContain('State Counter: 2')
act(() => {
jest.advanceTimersByTime(1000)
})
expect(elem.innerHTML).toBe('2')
})
})
10 changes: 7 additions & 3 deletions packages/example-ts-react/src/components/app.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
import React, { useState, FunctionComponent } from 'react'
import React, { FunctionComponent, useState, useEffect } from 'react'

import { Text } from './text'

export const App: FunctionComponent = () => {
const [counter, setCounter] = useState(0)
const headline = 'Hello eslint-config-ns-ts'

setInterval(() => setCounter(counter + 1), 1000)
useEffect(() => {
setInterval(() => setCounter(c => c + 1), 1000)
}, [])

return (
<>
<h1>{headline}</h1>
<Text text="Hello World" />
<p>State Counter: {counter}</p>
<p>
State Counter: <span data-testid="counter">{counter}</span>
</p>
</>
)
}
4 changes: 2 additions & 2 deletions packages/example-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "MIT",
"devDependencies": {
"eslint-config-ns-ts-base": "^3.0.0",
"ts-jest": "^27.1.3",
"typescript": "^4.5.5"
"ts-jest": "^28.0.7",
"typescript": "^4.7.4"
}
}
Loading

0 comments on commit 7ed5cbb

Please sign in to comment.