← Back to Home

Shared Lint Configs

Starting today, you can lint Ember and Node projects like I do. Simply install the desired packages from ijlee2-frontend-configs, then replace your existing config with 1 line.

.template-lintrc.js
module.exports = require('@ijlee2-frontend-configs/ember-template-lint');
eslint.config.mjs
export { default } from '@ijlee2-frontend-configs/eslint-config-ember/v2-app';
prettier.config.mjs
export { default } from '@ijlee2-frontend-configs/prettier';
.stylelintrc.mjs
export { default } from '@ijlee2-frontend-configs/stylelint';

My configurations target the latest majors. This means, you can update eslint to v9 without spending days migrating to the flat config. You can also starting using ESM for prettier and stylelint.

The configurations are also minimal. I intentionally avoid over-constraining code and stick to what most projects need to succeed (80% case).

Lastly, they can be extended: You can import my configuration, modify it, then export the new one. You can wrap my configs in your shared configs to reduce the impact of a breaking change. Finally, if you don't want to install my configs, you can copy and alter the source code (open source 🧡).

More good news: See shared lint configs in action when creating a codemod or v2 addon repo. Need help with updating configs in an existing codemod or v2 addon repo? Get in touch with me on Ember Discord.