Skip to content

Commit

Permalink
chore: Dependency maintenance (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts authored Apr 9, 2021
1 parent 069fb47 commit dd7d0a6
Show file tree
Hide file tree
Showing 9 changed files with 945 additions and 202 deletions.
54 changes: 26 additions & 28 deletions .eslintrc.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
module.exports = {
parser: "babel-eslint",
parser: `babel-eslint`,
extends: [
"google",
"eslint:recommended",
"plugin:flowtype/recommended",
"plugin:react/recommended",
"prettier",
"prettier/flowtype",
"prettier/react",
`google`,
`eslint:recommended`,
`plugin:flowtype/recommended`,
`plugin:react/recommended`,
`prettier`,
],
plugins: ["flowtype", "prettier", "react", "filenames"],
plugins: [`flowtype`, `prettier`, `react`, `filenames`],
parserOptions: {
ecmaVersion: 2016,
sourceType: "module",
sourceType: `module`,
ecmaFeatures: {
jsx: true,
},
Expand All @@ -33,33 +31,33 @@ module.exports = {
},
rules: {
"arrow-body-style": [
"error",
"as-needed",
`error`,
`as-needed`,
{ requireReturnForObjectLiteral: true },
],
"no-unused-expressions": [
"error",
`error`,
{
allowTaggedTemplates: true,
},
],
"filenames/match-regex": ["error", "^[a-z-\\d\\.]+$", true],
"no-console": "off",
"no-inner-declarations": "off",
"prettier/prettier": "error",
quotes: ["error", "backtick"],
"react/display-name": "off",
"react/jsx-key": "warn",
"react/no-unescaped-entities": "off",
"react/prop-types": "off",
"require-jsdoc": "off",
"valid-jsdoc": "off",
"filenames/match-regex": [`error`, `^[a-z-\\d\\.]+$`, true],
"no-console": `off`,
"no-inner-declarations": `off`,
"prettier/prettier": `error`,
quotes: [`error`, `backtick`],
"react/display-name": `off`,
"react/jsx-key": `warn`,
"react/no-unescaped-entities": `off`,
"react/prop-types": `off`,
"require-jsdoc": `off`,
"valid-jsdoc": `off`,
},
overrides: [
{
files: [
"packages/**/gatsby-browser.js",
"packages/gatsby/cache-dir/**/*",
`packages/**/gatsby-browser.js`,
`packages/gatsby/cache-dir/**/*`,
],
env: {
browser: true,
Expand All @@ -70,7 +68,7 @@ module.exports = {
},
},
{
files: ["cypress/e2e/**/*", "cypress/support/**/*"],
files: [`cypress/e2e/**/*`, `cypress/support/**/*`],
globals: {
cy: false,
Cypress: false,
Expand All @@ -79,7 +77,7 @@ module.exports = {
],
settings: {
react: {
version: "16.4.2",
version: `16.4.2`,
},
},
}
4 changes: 2 additions & 2 deletions .github/workflows/cypress.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ jobs:
runs-on: ubuntu-16.04
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v1
uses: cypress-io/github-action@v2
with:
command: yarn e2e:ci
25 changes: 0 additions & 25 deletions .github/workflows/lint.yml

This file was deleted.

2 changes: 1 addition & 1 deletion cypress/plugins/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="cypress" />
// / <reference types="cypress" />
// ***********************************************************
// This example plugins/index.js can be used to load plugins
//
Expand Down
33 changes: 17 additions & 16 deletions package.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"version": "0.0.1",
"scripts": {
"lerna": "lerna",
"lint": "prettier \"**/*.{md,yaml,yml}\" --write",
"lint": "eslint . --ext .js,.jsx",
"lint:fix": "yarn lint --fix",
"format": "prettier \"**/*.{md,yaml,yml}\" --write",
"start": "yarn workspace gatsby-starter-theme develop",
"cy:open": "cypress open",
"cy:run": "cross-env CYPRESS_baseUrl=http://localhost:9000 cypress run",
Expand Down Expand Up @@ -37,26 +39,25 @@
"packages/*",
"starters/*"
],
"dependencies": {
"babel-eslint": "^10.1.0",
"cypress": "^4.8.0",
"eslint-config-google": "^0.14.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-cypress": "^2.11.1",
"eslint-plugin-filenames": "^1.3.2",
"eslint-plugin-flowtype": "^5.1.3",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.0",
"start-server-and-test": "^1.11.0"
},
"devDependencies": {
"babel-eslint": "^10.1.0",
"@testing-library/cypress": "^6.0.0",
"concurrently": "^5.2.0",
"cross-env": "^7.0.2",
"gatsby-cypress": "^0.4.4",
"cypress": "^7.0.1",
"eslint": "^7.23.0",
"eslint-config-google": "^0.14.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-cypress": "^2.11.2",
"eslint-plugin-filenames": "^1.3.2",
"eslint-plugin-flowtype": "^5.6.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-react": "^7.23.2",
"gatsby-cypress": "^1.2.0",
"husky": "^4.2.5",
"lerna": "^3.22.1",
"lint-staged": "^10.2.11",
"prettier": "^2.0.5"
"lint-staged": "^10.5.4",
"prettier": "^2.2.1",
"start-server-and-test": "^1.12.1"
}
}
2 changes: 1 addition & 1 deletion packages/gatsby-theme-blog-core/package.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/gatsbyjs/gatsby.git",
"url": "https://github.com/gatsbyjs/themes.git",
"directory": "packages/gatsby-theme-blog-core"
},
"homepage": "https://github.com/gatsbyjs/themes/tree/master/packages/gatsby-theme-blog-core#readme",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-theme-notes/package.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/gatsbyjs/gatsby.git",
"url": "https://github.com/gatsbyjs/themes.git",
"directory": "packages/gatsby-theme-notes"
},
"homepage": "https://github.com/gatsbyjs/themes/tree/master/packages/gatsby-theme-notes#readme",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-theme-ui-preset/package.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/gatsbyjs/gatsby.git",
"url": "https://github.com/gatsbyjs/themes.git",
"directory": "packages/gatsby-theme-ui-preset"
},
"homepage": "https://github.com/gatsbyjs/themes/tree/master/packages/gatsby-theme-ui-preset#readme",
Expand Down
Loading

0 comments on commit dd7d0a6

Please sign in to comment.