I am dealing with constant file and having just one constant object in that file. I am facing trouble with ESLINT error checking part.
Constant file name :- constant.js
export const myObject = {
const1:'hello world',
const2:'new world'
}
Getting an eslint error Prefer default export.eslint(import/prefer-default-export)
Here constants are not allow to export default( only class and function are allow to export)
Environment information
ESLint plugin version :- 1.9.0
Here, how do i create and export constant without eslint error ?