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, {
"ignoreAtRules": ["/^neat/"]
}],
"no-descending-specificity": [true, {
"severity": "warning"
}]
"no-descending-specificity": null
}
}

View File

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

View File

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

View File

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