cli icon indicating copy to clipboard operation
cli copied to clipboard

Add support to .sequelizerc.js

Open andredesousa opened this issue 3 years ago • 4 comments

Feature Description

Other tools like ESLint and Prettier have support to JavaScript, JSON, or YAML. This can be in the form of an .sequelizerc.* file. I'm just proposing .sequelizerc.js because the content is JavaScript. We will win highlighting and autocomplete.

I can open a PR if you want.

andredesousa avatar Jun 19 '21 01:06 andredesousa

I support this idea

fguille94 avatar Oct 28 '21 22:10 fguille94

Hi! Thanks for the suggestion. Looks like a good idea, if you are still willing to open a PR for this @andredesousa that would be great. Maybe also incorporate a JSON file, YAML/YML file (as requested in https://github.com/sequelize/cli/issues/957) and possibly also incorporating it in package.json (as requested in https://github.com/sequelize/cli/issues/673) or in the command line in there as well? Basically just what Mocha does as well

WikiRik avatar Nov 09 '21 14:11 WikiRik

@WikiRik I think that implementing *js is straightforward. Other formats, I need to investigate.

andredesousa avatar Nov 15 '21 20:11 andredesousa

Not sure how much it will help you, but this is how Mocha does it; https://github.com/mochajs/mocha/blob/master/lib/cli/config.js

WikiRik avatar Nov 15 '21 21:11 WikiRik