Netcentric / fe-build

All-in-one solution for modern Frontend projects, with special focus on AEM (Adobe Experience Manager)
Apache License 2.0
21 stars 7 forks source link

Order imports alphabetically #3

Closed quicoto closed 3 years ago

quicoto commented 3 years ago

In config/index.js we should order the imports alphabetically for easier read / find.


const plugins = require('./plugins.config');
const eslint = require('./eslint.config');
const babel = require('./babel.config');
const output = require('./output.config');
const optimization = require('./optimization.config');
const clientlibs = require('./clientlibs.config');
const sass = require('./sass.config');
const stylelint = require('./stylelint.config');
const resolve = require('./resolve.config');
const postcss = require('./postcss.config');
const templates = require('./templates.config');
const modules = general.modules;```
easingthemes commented 3 years ago

Hey @quicoto, do you have some IDE plugin for this or it's manual work?

quicoto commented 3 years ago

@easingthemes VSCode has a "sort" command that does it for you.