chore: update website linting rules (#1659)
This commit is contained in:
parent
7285e0c530
commit
d538554c88
@ -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"
|
|
||||||
}]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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/",
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user