Skip to content

Commit

Permalink
remove old files and consolidate some configs (gatsbyjs#2716)
Browse files Browse the repository at this point in the history
* remove old files and consolidate some configs

* fix test
  • Loading branch information
jquense authored and KyleAMathews committed Nov 1, 2017
1 parent c3593e1 commit 9ce9c95
Show file tree
Hide file tree
Showing 41 changed files with 197 additions and 1,318 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

29 changes: 6 additions & 23 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
"prettier/flowtype",
"prettier/react"
],
"plugins": [
"flowtype",
"react"
],
"plugins": ["flowtype", "react"],
"parserOptions": {
"ecmaVersion": 2016,
"sourceType": "module",
Expand All @@ -29,30 +26,16 @@
"no-console": "off",
"valid-jsdoc": "off",
"require-jsdoc": "off",
"quotes": [
"error",
"backtick"
],
"consistent-return": [
"error",
],
"quotes": ["error", "backtick"],
"consistent-return": ["error"],
"arrow-body-style": [
"error",
"as-needed",
{ "requireReturnForObjectLiteral": true }
],
"jsx-quotes": [
"error",
"prefer-double"
],
"semi": [
"error",
"never"
],
"object-curly-spacing": [
"error",
"always"
],
"jsx-quotes": ["error", "prefer-double"],
"semi": ["error", "never"],
"object-curly-spacing": ["error", "always"],
"comma-dangle": [
"error",
{
Expand Down
4 changes: 4 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@

[ignore]
.*/test/.*
.*/node_modules/documentation/.*
.*/node_modules/typography/.*
.*/node_modules/fbjs/.*
.*/node_modules/react-side-effect/.*
.*/node_modules/styled-components/.*
.*/node_modules/preact/.*
.*/node_modules/jss/.*
.*/www/.*
.*/examples/.*
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@

packages/*/yarn.lock
packages/*/package-lock.json

# Logs
logs
*.log
Expand Down Expand Up @@ -44,5 +48,4 @@ node_modules/
# IDE specific
.idea/
.vscode/
yarn.lock
package-lock.json

12 changes: 0 additions & 12 deletions .pre-commit.sh

This file was deleted.

3 changes: 0 additions & 3 deletions .publishrc

This file was deleted.

File renamed without changes.
3 changes: 0 additions & 3 deletions interfaces/invariant.js

This file was deleted.

3 changes: 0 additions & 3 deletions interfaces/object-assign.js

This file was deleted.

24 changes: 0 additions & 24 deletions interfaces/parse-filepath.js

This file was deleted.

3 changes: 0 additions & 3 deletions interfaces/slash.js

This file was deleted.

23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,19 @@
"rimraf": "^2.6.1"
},
"engines": {
"yarn": "^1.0.2"
"yarn": "^1.2.1"
},
"private": true,
"engines": {
"yarn": "^1.0.2"
},

"scripts": {
"bootstrap": "yarn && npm run check-versions && lerna run prepublish",
"check-versions": "babel-node scripts/check-versions.js",
"format": "npm run format-packages && npm run format-cache-dir && npm run format-www && npm run format-examples && npm run format-scripts",
"format-cache-dir": "prettier-eslint --write \"packages/gatsby/cache-dir/*.js\"",
"format-examples": "prettier-eslint --write \"examples/**/gatsby-node.js\" \"examples/**/gatsby-config.js\" \"examples/**/src/**/*.js\"",
"format":
"npm run format-packages && npm run format-cache-dir && npm run format-www && npm run format-examples && npm run format-scripts",
"format-cache-dir":
"prettier-eslint --write \"packages/gatsby/cache-dir/*.js\"",
"format-examples":
"prettier-eslint --write \"examples/**/gatsby-node.js\" \"examples/**/gatsby-config.js\" \"examples/**/src/**/*.js\"",
"format-packages": "prettier-eslint --write \"packages/*/src/**/*.js\"",
"format-scripts": "prettier-eslint --write \"scripts/**/*.js\"",
"format-www": "prettier-eslint --write \"www/*.js\" \"www/src/**/*.js\"",
Expand All @@ -63,10 +64,10 @@
"test": "yarn run lint && jest",
"test:update": "jest --updateSnapshot",
"test:watch": "jest --watch",
"test_bkup": "npm run lint && npm run test-node && npm run test-integration",
"test_bkup":
"npm run lint && npm run test-node && npm run test-integration",
"watch": "lerna run watch --no-sort --stream --concurrency 999"
},
"workspaces": [
"packages/*"
]
"workspaces": ["packages/*"],
"eslintIgnore": ["interfaces", "**/__tests__/fixtures/"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Object {
"completedAt": 1482363367071,
"createdAt": 1482363367071,
"id": "test job",
"plugin": Object {},
"plugin": null,
"runTime": 0,
},
],
Expand All @@ -20,7 +20,7 @@ Object {
"payload": Object {
"id": "test job",
},
"plugin": Object {},
"plugin": null,
"type": "CREATE_JOB",
}
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Array [
"context": Object {},
"internalComponentName": "ComponentHi",
"jsonName": "hi.json",
"layout": null,
"path": "/hi/",
"pluginCreatorId": "test",
"pluginCreator___NODE": "test",
Expand All @@ -19,6 +20,7 @@ Array [
"context": Object {},
"internalComponentName": "ComponentHiPizza",
"jsonName": "hi-pizza.json",
"layout": null,
"path": "/hi/pizza/",
"pluginCreatorId": "test",
"pluginCreator___NODE": "test",
Expand All @@ -35,6 +37,7 @@ Object {
"context": Object {},
"internalComponentName": "ComponentHi",
"jsonName": "hi.json",
"layout": null,
"path": "/hi/",
"pluginCreatorId": "test",
"pluginCreator___NODE": "test",
Expand All @@ -57,6 +60,7 @@ Array [
"context": Object {},
"internalComponentName": "ComponentHi",
"jsonName": "hi.json",
"layout": null,
"path": "/hi/",
"pluginCreatorId": "test",
"pluginCreator___NODE": "test",
Expand All @@ -75,6 +79,7 @@ Object {
},
"internalComponentName": "ComponentHi",
"jsonName": "hi.json",
"layout": null,
"path": "/hi/",
"pluginCreatorId": "test",
"pluginCreator___NODE": "test",
Expand All @@ -99,6 +104,7 @@ Array [
},
"internalComponentName": "ComponentHi",
"jsonName": "hi.json",
"layout": null,
"path": "/hi/",
"pluginCreatorId": "test",
"pluginCreator___NODE": "test",
Expand All @@ -117,6 +123,7 @@ Array [
"context": Object {},
"internalComponentName": "ComponentHi",
"jsonName": "hi.json",
"layout": null,
"path": "/hi/",
"pluginCreatorId": "test",
"pluginCreator___NODE": "test",
Expand Down
Loading

0 comments on commit 9ce9c95

Please sign in to comment.