Skip to content

Commit

Permalink
chore: add dep and config
Browse files Browse the repository at this point in the history
  • Loading branch information
vpicone committed Jul 29, 2019
1 parent 5146b9c commit 65ff2c1
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 9 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "extends": ["eslint-config-carbon"] }
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"jsxBracketSameLine": true,
"printWidth": 80,
"singleQuote": true,
"trailingComma": "es5",
"proseWrap": "preserve"
}
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"scripts": {
"dev": "gatsby develop",
"dev:clean": "gatsby clean && gatsby develop",
"clean": "gatsby clean"
"clean": "gatsby clean",
"lint:js": "eslint src",
"format": "prettier --write 'src/**/*.{js,json,css,scss,md,mdx,yaml}'"
},
"dependencies": {
"gatsby": "^2.13.41",
Expand All @@ -15,5 +17,9 @@
"markdown-it": "^9.0.1",
"react": "^16.8.6",
"react-dom": "^16.8.6"
},
"devDependencies": {
"eslint-config-carbon": "^1.0.2",
"prettier": "^1.18.2"
}
}
18 changes: 10 additions & 8 deletions src/gatsby-theme-carbon/templates/Homepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,27 @@ import { calloutLink } from './Homepage.module.scss';

import Carbon from '../../images/carbon.jpg';

const FirstLeftText = () => <p>Carbon Design
System</p>;
const FirstLeftText = () => <p>Carbon Design System</p>;

const FirstRightText = () => (
<p>
Carbon is IBM’s <strong>open-source</strong> design system for products and experiences. With the IBM Design Language as its foundation, the system consists of working code, design tools and resources, human interface guidelines, and a vibrant community of contributors.
Carbon is IBM’s <strong>open-source</strong> design system for products and
experiences. With the IBM Design Language as its foundation, the system
consists of working code, design tools and resources, human interface
guidelines, and a vibrant community of contributors.
</p>
);

const SecondLeftText = () => <p>Wondering how
to contribute?</p>;
const SecondLeftText = () => <p>Wondering how to contribute?</p>;

const SecondRightText = () => (
<p>
We welcome all feedback, designs, or ideas in order to produce the best possible experience for our users. If you’re interested in contributing, check out our contributing guidelines to get started.
We welcome all feedback, designs, or ideas in order to produce the best
possible experience for our users. If you’re interested in contributing,
check out our contributing guidelines to get started.
<a
className={calloutLink}
href="https://www.carbondesignsystem.com/contributions/overview/"
>
href="https://www.carbondesignsystem.com/contributions/overview/">
Start contributing →
</a>
</p>
Expand Down
17 changes: 17 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4684,6 +4684,18 @@ escape-string-regexp@1.0.5, escape-string-regexp@^1.0.2, escape-string-regexp@^1
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=

eslint-config-carbon-base@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/eslint-config-carbon-base/-/eslint-config-carbon-base-1.0.1.tgz#3cc3a930202889be4d2bf6bb223eea7c3dda389a"
integrity sha1-PMOpMCAoib5NK/a7Ij7qfD3aOJo=

eslint-config-carbon@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/eslint-config-carbon/-/eslint-config-carbon-1.0.2.tgz#4af1cefb679d4c88bb1bff5159d692d903d55df2"
integrity sha1-SvHO+2edTIi7G/9RWdaS2QPVXfI=
dependencies:
eslint-config-carbon-base "^1.0.0"

eslint-config-react-app@^3.0.0:
version "3.0.8"
resolved "https://registry.yarnpkg.com/eslint-config-react-app/-/eslint-config-react-app-3.0.8.tgz#6f606828ba30bafee7d744c41cd07a3fea8f3035"
Expand Down Expand Up @@ -10343,6 +10355,11 @@ prepend-http@^2.0.0:
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=

prettier@^1.18.2:
version "1.18.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea"
integrity sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==

pretty-bytes@^4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-4.0.2.tgz#b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9"
Expand Down

0 comments on commit 65ff2c1

Please sign in to comment.