7.1.0 • Published 4 years ago

stylelint-config-moxy v7.1.0

Weekly downloads
16
License
MIT
Repository
github
Last release
4 years ago

stylelint-config-moxy

NPM version Downloads Build Status Dependency status Dev Dependency status

MOXY stylelint configuration to be used across projects.

Installation

$ npm install stylelint stylelint-config-moxy --save-dev

Usage

Create a .stylelintrc.json file with:

{
    "extends": "stylelint-config-moxy"
}

File naming convention

File names should be hyphenated (lower case with hyphens).

If a CSS file is strictly associated with a JS file, it should follow the name of the JS file, e.g.: if we need to style a Button.js react component, then the css file should be named Button.css.

Comments convention

/* ==========================================================================
   Main comment block
   ========================================================================== */

.title {}

/* Secondary comment block
   ============================================= */

.description {}

/* Tertiary comment block & line/inline comments */

.tags {
    /* Line comment */
    background: red;
    transition: color 0.2s ease-out;  /* Inline comment */
}

/*
   Multi
   line
   comment
*/

Tests

$ npm test
$ npm test -- --watch during development

License

MIT License

7.1.0

4 years ago

7.0.1

4 years ago

7.0.0

4 years ago

6.3.0

5 years ago

6.2.1

5 years ago

6.2.0

5 years ago

6.1.0

5 years ago

6.0.0

5 years ago

5.0.0

6 years ago

4.0.0

6 years ago

3.0.0

6 years ago

2.2.1

7 years ago

2.2.0

7 years ago

2.1.0

7 years ago

2.1.1

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.0

7 years ago