Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Commit 60d4c32

Browse files
committed
adding prettier
1 parent 8078bea commit 60d4c32

File tree

6 files changed

+20
-5
lines changed

6 files changed

+20
-5
lines changed

.prettierrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "all",
3+
"tabWidth": 2,
4+
"semi": false,
5+
"singleQuote": true
6+
}

.vscode/settings.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
22
"git.ignoreLimitWarning": true,
3-
"eslint.enable": false
4-
}
3+
"eslint.enable": false,
4+
"editor.defaultFormatter": "esbenp.prettier-vscode",
5+
"editor.formatOnSave": true
6+
}

cypress/integration/alert-spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
import HelloWorld from '../../src/stateless-alert.jsx'
44
import React from 'react'
55
import ReactDom from 'react-dom'
6-
import { mount } from "cypress-react-unit-tests";
6+
import { mount } from 'cypress-react-unit-tests'
77

88
/* eslint-env mocha */
99
describe('Stateless alert', () => {
1010
beforeEach(() => {
1111
const spy = cy.spy().as('alert')
1212
cy.on('window:alert', spy)
13-
mount(<HelloWorld name='Alert' />, { ReactDom })
13+
mount(<HelloWorld name="Alert" />, { ReactDom })
1414
})
1515

1616
it('shows link', () => {

cypress/integration/counter-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference types="cypress" />
22
/// <reference types="../../lib" />
33
import React from 'react'
4-
import { mount } from "cypress-react-unit-tests";
4+
import { mount } from 'cypress-react-unit-tests'
55
import { Counter } from '../../src/counter.jsx'
66

77
/* eslint-env mocha */

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"css-loader": "2.1.1",
5050
"cypress": "3.4.1",
5151
"github-post-release": "1.13.1",
52+
"prettier": "1.19.1",
5253
"react": "16.8.6",
5354
"react-dom": "16.8.6",
5455
"react-google-maps": "9.4.5",

0 commit comments

Comments
 (0)