Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit b9076ee

Browse files
committed
Fix linting issues related to postcss-cssnext merge
1 parent 5ff99f6 commit b9076ee

File tree

17 files changed

+43
-34
lines changed

17 files changed

+43
-34
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ rules:
3535
indent: [2, 2] # 2 spaces indentation
3636
max-len: [2, 80, 4]
3737
quotes: [2, "double"]
38+
jsx-quotes: [2, "prefer-double"]
3839
semi: [2, "never"]
3940
no-multiple-empty-lines: [2, {"max": 1}]
4041

@@ -65,7 +66,6 @@ rules:
6566
# eslint-plugin-react rules
6667
react/jsx-boolean-value: 2
6768
react/jsx-no-undef: 2
68-
react/jsx-quotes: 2
6969
#react/jsx-sort-prop-types: 2
7070
#react/jsx-sort-props: 2
7171
react/jsx-uses-react: 2

docs/scripts/build.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from "path"
22

3-
import {sync as rm} from "rimraf"
3+
import { sync as rm } from "rimraf"
44
import color from "chalk"
55

66
import Metalsmith from "metalsmith"
@@ -30,7 +30,7 @@ const log = nanoLogger("./build")
3030

3131
JSON.stringify(buildConfig, null, 2).split("\n").forEach(l => log(l))
3232

33-
const mdToHtmlReplacement = [/\.md$/, ".html"]
33+
const mdToHtmlReplacement = [ /\.md$/, ".html" ]
3434

3535
// We clean ./dist by hand mainly for prod, in order to be able to build
3636
// assets with webpack before metalsmith build.
@@ -63,7 +63,7 @@ smith
6363
.use(
6464
url([
6565
mdToHtmlReplacement,
66-
[/index\.html?$/, ""],
66+
[ /index\.html?$/, "" ],
6767
])
6868
)
6969
// wrap .html into react `template:`
@@ -87,9 +87,9 @@ smith
8787
rename([
8888
mdToHtmlReplacement,
8989
// no .html at the end of urls
90-
[/\.html$/, "/index.html"],
90+
[ /\.html$/, "/index.html" ],
9191
// ensure we only have index.html, no index/index
92-
[/index\/index\.html$/, "index.html"],
92+
[ /index\/index\.html$/, "index.html" ],
9393
])
9494
)
9595

docs/scripts/webpack.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,19 @@ export default (webpackConfig, log, cb) => {
99

1010
if (stats.hasErrors()) {
1111
stats.compilation.errors.forEach(
12-
item => log(...[color.red("Error:"), ...item.message.split("\n")])
12+
item => log(...[
13+
color.red("Error:"),
14+
...item.message.split("\n"),
15+
])
1316
)
1417
throw new Error("webpack build failed with errors")
1518
}
1619
if (stats.hasWarnings()) {
1720
stats.compilation.warnings.forEach(
18-
item => log(...[color.yellow("Warning:"), ...item.message.split("\n")])
21+
item => log(...[
22+
color.yellow("Warning:"),
23+
...item.message.split("\n"),
24+
])
1925
)
2026
}
2127

docs/src/layouts/Default.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {Component, PropTypes} from "react"
1+
import React, { Component, PropTypes } from "react"
22
import cx from "classnames"
33

44
import dashify from "../modules/dashify"
@@ -124,7 +124,7 @@ export default class Default extends Component {
124124
"r-Grid-cell": true,
125125
"js-markdownIt-TOCOriginalContainer": true,
126126
})}
127-
dangerouslySetInnerHTML={{__html: file.contents}}
127+
dangerouslySetInnerHTML={{ __html: file.contents }}
128128
/>
129129
<div
130130
className={cx({

docs/src/layouts/Simple.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {Component, PropTypes} from "react"
1+
import React, { Component, PropTypes } from "react"
22

33
import Html from "../modules/Html"
44
import Head from "../modules/Head"
@@ -52,7 +52,7 @@ export default class Simple extends Component {
5252
>
5353
<div
5454
className={file.className || ""}
55-
dangerouslySetInnerHTML={{__html: file.contents}}
55+
dangerouslySetInnerHTML={{ __html: file.contents }}
5656
/>
5757
</Body>
5858
</Html>

docs/src/modules/Analytics/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {Component} from "react"
1+
import React, { Component } from "react"
22

33
import isogram from "isogram"
44

docs/src/modules/Body/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {Component, PropTypes} from "react"
1+
import React, { Component, PropTypes } from "react"
22

33
import Header from "../Header"
44
import Footer from "../Footer"

docs/src/modules/Footer/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {Component, PropTypes} from "react"
1+
import React, { Component, PropTypes } from "react"
22

33
import SVGIcon from "../SVGIcon"
44
import requireRaw from "../requireRaw"

docs/src/modules/Head/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {Component, PropTypes} from "react"
1+
import React, { Component, PropTypes } from "react"
22

33
export default class Head extends Component {
44

docs/src/modules/Header/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {Component, PropTypes} from "react"
1+
import React, { Component, PropTypes } from "react"
22

33
import SVGIcon from "../SVGIcon"
44
import requireRaw from "../requireRaw"

0 commit comments

Comments
 (0)