Migrate from CommonJS to ESM (#6651)

This commit is contained in:
Pierre-Yves B
2021-07-09 12:53:55 +01:00
committed by GitHub
parent 23678fe2f5
commit 23c0406bed
1130 changed files with 4457 additions and 6711 deletions

View File

@@ -1,6 +1,4 @@
'use strict'
const Joi = require('joi')
import Joi from 'joi'
// https://support.codefactor.io/i14-glossary
// https://github.com/badges/shields/issues/4269
@@ -31,4 +29,4 @@ function gradeColor(grade) {
return color
}
module.exports = { isValidGrade, gradeColor }
export { isValidGrade, gradeColor }