Engineering

Our engineering is underpinned by principles that celebrate both the integrity of code and the ambition to innovate. This manifesto champions excellence, advocates for the adoption of cutting-edge technologies, and fosters an environment of continuous intellectual growth.

Stylelint setup

Stylelint lets you run automated checks on your CSS and SCSS files for formatting defects. We encourage all projects to adopt Stylelint for linting.

Add your packages

Add the stylelint package, as well as some others.

yarn add --dev \ stylelint \ stylelint-config-standard \ stylelint-rscss

Configure stylelint

Edit .stylelintrc in your project root. Here's an example:

{ "extends": [ "stylelint-config-standard", "stylelint-rscss/config" ], "rules": { "at-rule-no-unknown": null, "at-rule-empty-line-before": null, "declaration-empty-line-before": null, "no-descending-specificity": null, "no-duplicate-selectors": null, "rscss/class-format": [ true, { "maxDepth": 4, "componentWhitelist": [ "btn", "container" ] } ] } }

Add scripts

Edit your package.json to add a stylelint script. Be sure to enclose the path globs with 'single quotes'!

/* package.json */ { "scripts": { "stylelint": "stylelint 'apps/css/**/*.scss'" } }

Run stylelint on CI

Configure your CI to run Stylelint as part of its test suite. Here's an example for Semaphore CI:

if grep stylelint >/dev/null; then yarn run stylelint; fi

Further reading

• stylelint • stylelint-rscss • stylelint-config-standard

Next: Design Playbook

Connect.

Mashup Garage, a premier software development team, specialises in crafting exceptional products for startups and enterprises. With expertise in React, Elixir/Phoenix, and Ruby on Rails, we deliver solutions that meet your unique needs. Our mission is to bring value backed by decades of technical expertise and global co-founding experience.

What do you need help with?

Build a project

Build a team

Consult

Speak to someone

Expect a guaranteed response from us in 1-2 business days.

United Kingdom

London

Islington, London

+44 738 777 3405

LDN

Philippines

Manila

3F Topy IV Building, 3 Economia Road, Bagumbayan, Quezon City, 1110

+63 917 3084089

MNL