Skip to content

Commit

Permalink
Upgrade dependencies (#345)
Browse files Browse the repository at this point in the history
* Upgrade fix and feature in storybook

* Remove core-js as dependency as it doesn't seems to be used directly, but rather by other packages

* Use @storybook/source-loader instead of  @storybook/addon-storysource/loader because of deprecation warning

* ⬆️ Upgrade styled-components from 4 to 5.1.1

* Upgrade fix and feat. Upgrade github-markdown-css to 4.0.0

* ⬆️ Upgrade Prettier from 1.19.1 to 2.0.5. We already use the new defaults for trailingComma, arrowParens and endOfLine

* ⬆️ Upgrade react-helmet from 5.x.x to 6.0.0. Missing title almost everywhere, but that's not caused by this upgrade

* ⬆️ Upgrade gatsby-plugin-matomo from 0.7.2 to 0.8.3

* ⬆️ Upgrade fix and feature

* ⬆️ Upgrade prettier from 1.19.1 to 2.0.5

* :arrow_up; Upgrade ramda from 0.26.1 to 0.27.0. No upgrade guide, so assuming it's safe even if there is no real semver

* ⬆️ Upgrade fix and feature. Upgrade prettier from 1.19.1 to 2.0.5

* Replace deprecated rollup-plugin-babel with @rollup/plugin-babel

* Replace deprecated rollup-plugin-json with @rollup/plugin-json

* ⬆️ Upgrade rollup from 1.32.1 to 2.15.0

* Replace rollup-plugin-node-resolve and rollup-plugin-commonjs with corresponding @rollup/plugin-x

* ⬆️ Upgrade ætesting-library/jest-dom from 4.2.4 to 5.9.0

* Update test to work

* Downgrade styled-components og jest-styled-components because of a bug styled-components/jest-styled-components#294

* Upgrade prettier. Fix eslint errors. Support for optional chaining with eslint

* ⬆️ Upgrade fix and features

* Remove eslint-config-airbnb, use eslint:recommended as defaults instead

* Upgrade eslint from 6.8.0 to 7.2.0. Remove duplicate eslint settings in core to avoid errors

* Add some more eslint rules

* Add missing semi

* Add missing semi

* Merge

* Add missing displayName

* Add node engine greater than 10

* Add hard space back in

* ⬆️ Upgrade rollup and @rollup/plugin-node-resolve

* ⬆️ Upgrade rollup and @rollup/plugin-node-resolve
  • Loading branch information
wenche committed Jun 10, 2020
1 parent aaeb642 commit 5c06c7c
Show file tree
Hide file tree
Showing 32 changed files with 10,614 additions and 10,545 deletions.
54 changes: 53 additions & 1 deletion .eslintrc.yaml
@@ -1,13 +1,26 @@
extends:
- airbnb
- eslint:recommended
- prettier
- prettier/react
- plugin:react/recommended
- plugin:testing-library/react
- plugin:import/errors
- plugin:import/warnings
plugins:
- prettier
- testing-library
parser: babel-eslint
parserOptions:
ecmaVersion: 11
sourceType: module
ecmaFeatures:
jsx: true
env:
browser: true
node: true
settings:
react:
version: detect
globals:
test: true
expect: true
Expand All @@ -20,6 +33,9 @@ rules:
# Named exports are better
import/no-default-export:
- error
# Enforce a newline after import statements
import/newline-after-import:
- error
# Not everything needs a default export, for example utils files
import/prefer-default-export:
- off
Expand All @@ -32,3 +48,39 @@ rules:
# Problems using node aliases, mjs files and local npm packages so disabling import-rules for now
import/no-unresolved:
- off
# Enforce a defaultProps definition for every prop that is not a required prop
react/require-default-props:
- error
- forbidDefaultForRequired: true
# Enforce boolean attributes notation in JSX
react/jsx-boolean-value:
- error
- never
- always: []
# Enforce PascalCase for user-defined JSX components
react/jsx-pascal-case:
- error
# Prevent usage of dangerous JSX properties
react/no-danger:
- warn
# Require stateless functions when not using lifecycle methods, setState or ref
react/prefer-stateless-function:
- error
- ignorePureComponents: true
# only .jsx files may have JSX
react/jsx-filename-extension:
- error
- extensions: ['.jsx']
# Prevent unused propType definitions
react/no-unused-prop-types:
- error
# Prevent usage of Array index in keys
react/no-array-index-key:
- error
# Prevents common casing typos
react/no-typos:
- error
# Enforce consistent usage of destructuring assignment of props, state, and context
react/destructuring-assignment:
- error
- always
1 change: 0 additions & 1 deletion .npmrc
Expand Up @@ -2,4 +2,3 @@ shared-workspace-shrinkwrap = true
link-workspace-packages = true
package-lock = true
@equinor-internal:registry=https://npm.equinor.com/

15 changes: 8 additions & 7 deletions apps/figma-broker/package.json
Expand Up @@ -2,7 +2,8 @@
"name": "@equinor/eds-figma-broker",
"version": "1.0.0",
"engines": {
"pnpm": ">=4"
"pnpm": ">=4",
"node": ">=10.0.0"
},
"description": "",
"main": "index.js",
Expand All @@ -17,14 +18,14 @@
"dependencies": {
"del": "^5.1.0",
"dotenv": "^8.2.0",
"koa": "^2.11.0",
"koa-body": "^4.1.1",
"koa": "^2.12.0",
"koa-body": "^4.1.3",
"koa-logger": "^3.2.1",
"koa-router": "^8.0.6",
"koa-router": "^8.0.8",
"node-fetch": "^2.6.0",
"nodemon": "^2.0.1",
"prettier": "^1.19.1",
"ramda": "^0.26.1",
"nodemon": "^2.0.4",
"prettier": "^2.0.5",
"ramda": "^0.27.0",
"svgo": "^1.3.2"
},
"aliases": {
Expand Down

0 comments on commit 5c06c7c

Please sign in to comment.