chore: update website linting rules (#1659)
This commit is contained in:
parent
7285e0c530
commit
d538554c88
@ -6,8 +6,6 @@
|
||||
"at-rule-no-unknown": [true, {
|
||||
"ignoreAtRules": ["/^neat/"]
|
||||
}],
|
||||
"no-descending-specificity": [true, {
|
||||
"severity": "warning"
|
||||
}]
|
||||
"no-descending-specificity": null
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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/",
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user