chore: update website linting rules (#1659)

This commit is contained in:
Caleb 2018-11-02 09:52:01 -06:00 committed by Shawn Erquhart
parent 7285e0c530
commit d538554c88
4 changed files with 4 additions and 7 deletions

View File

@ -6,8 +6,6 @@
"at-rule-no-unknown": [true, { "at-rule-no-unknown": [true, {
"ignoreAtRules": ["/^neat/"] "ignoreAtRules": ["/^neat/"]
}], }],
"no-descending-specificity": [true, { "no-descending-specificity": null
"severity": "warning"
}]
} }
} }

View File

@ -26,7 +26,7 @@ exports.createPages = async ({ graphql, boundActionCreators }) => {
`); `);
if (allMarkdown.errors) { if (allMarkdown.errors) {
console.error(allMarkdown.errors); console.error(allMarkdown.errors); // eslint-disable-line no-console
throw Error(allMarkdown.errors); throw Error(allMarkdown.errors);
} }

View File

@ -7,8 +7,7 @@
"build": "gatsby build && mv public dist", "build": "gatsby build && mv public dist",
"copy:contribs": "cp ../.all-contributorsrc data/contributors.json", "copy:contribs": "cp ../.all-contributorsrc data/contributors.json",
"prepare": "npm run copy:contribs", "prepare": "npm run copy:contribs",
"reset": "rm -rf .cache", "reset": "rm -rf .cache"
"lint": "eslint src"
}, },
"author": "", "author": "",
"homepage": "https://www.netlifycms.org/", "homepage": "https://www.netlifycms.org/",

View File

@ -28,7 +28,7 @@ class EventWidget extends Component {
}); });
}) })
.catch(err => { .catch(err => {
console.log(err); console.log(err); // eslint-disable-line no-console
// TODO: set state to show error message // TODO: set state to show error message
this.setState({ this.setState({
loading: false, loading: false,