chore: simplify eslint configuration (#44347)
* chore: extend import/recommended * chore: use recommended lint rules * refactor: apply lint rules * chore: drop used config
This commit is contained in:
committed by
GitHub
parent
4a4aa1f2f9
commit
efba2e777d
@@ -202,7 +202,8 @@ const motivationSchemaValidation = languages => {
|
||||
if (
|
||||
!fileJson.motivationalQuotes.every(
|
||||
object =>
|
||||
object.hasOwnProperty('quote') && object.hasOwnProperty('author')
|
||||
Object.prototype.hasOwnProperty.call(object, 'quote') &&
|
||||
Object.prototype.hasOwnProperty.call(object, 'author')
|
||||
)
|
||||
) {
|
||||
console.warn(`${language}/motivation.json has malformed quote objects.`);
|
||||
|
Reference in New Issue
Block a user