Skip to content

Commit

Permalink
Merge pull request #26 from transloadit/upgrades
Browse files Browse the repository at this point in the history
Upgrades and remove jest
  • Loading branch information
mifi authored Oct 2, 2023
2 parents 13c6670 + 1241643 commit a40a52a
Show file tree
Hide file tree
Showing 6 changed files with 991 additions and 1,151 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test

on:
push:
branches:
- main
pull_request:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'

- run: yarn install --immutable

- name: Test
run: yarn test
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ When upgrading to v2, these can be overridden and set to `warn` in consuming pro

See also https://github.com/transloadit/eslint-config-transloadit/pull/12/commits/2200e5f227dcc3893d5d81a80ca35e546c43bc06

## Version 3 (unreleased)
## Version 3

### Breaking changes

Expand All @@ -56,6 +56,12 @@ See also https://github.com/transloadit/eslint-config-transloadit/pull/12/commit
using, you need to add `parser: '@babel/eslint-parser'` to your `.eslintrc.js`
and adjust the [`parserOptions`](https://eslint.org/docs/user-guide/configuring/language-options#specifying-parser-options)
property. You probably also want to add `@babel/eslint-plugin` to the list of plugins.
- Remove peer dependencies `@babel/core`, `@babel/eslint-parser` and `@babel/eslint-plugin`
- Add `peerDependency` `eslint-plugin-transloadit` and added rule `transloadit/no-useless-iife`
- Upgrade `peerDependency` `eslint-plugin-promise` from 4 to 6
- Remove `eslint-plugin-jest`
- Upgrade `eslint-config-airbnb` from 18 to 19
- Add rule `no-implicit-coercion`
## Releasing
Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module.exports = {
node: true,
},
plugins: [
'jest',
'node',
'promise',
'react',
Expand Down
37 changes: 18 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,36 @@
"engines": {
"node": ">= 10"
},
"files": [
"index.js",
"Makefile"
],
"scripts": {
"fix": "eslint . --fix",
"test": "true",
"test": "yarn lint",
"lint": "eslint ."
},
"dependencies": {
"eslint-config-airbnb": "^18.2.1"
"eslint-config-airbnb": "^19.0.4"
},
"peerDependencies": {
"eslint": "^7.22.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.3.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint": "^7.32.0 || ^8.2.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-transloadit": "^0.2.0"
},
"devDependencies": {
"@babel/core": "^7.13.10",
"@babel/eslint-parser": "^7.13.10",
"@babel/eslint-plugin": "^7.13.10",
"eslint": "^7.22.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.3.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint": "^7.32.0 || ^8.2.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-transloadit": "^0.2.0",
"fakefile": "^1.0.0"
}
Expand Down
6 changes: 6 additions & 0 deletions test-fixtures/React.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// eslint-disable-next-line import/no-unresolved
import React, { memo } from 'react'

const MyComponent = memo(() => <><div>hej</div><div>hopp</div></>)

export default MyComponent
Loading

0 comments on commit a40a52a

Please sign in to comment.