Skip to content

Commit cea0cca

Browse files
committed
feat: Initial commit
0 parents  commit cea0cca

7 files changed

+1736
-0
lines changed

.eslintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "acb-base"
3+
}

.gitignoree

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+

LICENSE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 A Color Bright GmbH
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# stylelint-config-acb
2+
3+
Stylelint config providing ACB's standard linting setup for styles.
4+
5+
## Installation
6+
7+
```bash
8+
npm install --save-dev 'acolorbright/stylelint-config-acb#v1.0.0'
9+
`````
10+
11+
## Usage
12+
13+
To start using this configuration, simply extend this package in your Stylelint configuration.
14+
15+
```js
16+
{
17+
"extends": "stylelint-config-acb",
18+
"rules": {
19+
// Add additional rules here
20+
}
21+
}
22+
```
23+
24+
For more information on configuring Stylelint, check out the [configuration](https://github.com/stylelint/stylelint/blob/master/docs/user-guide/configuration.md) guide.
25+
26+
## Property Ordering
27+
28+
Property ordering is performed according to the [SMACSS](http://smacss.com) methodology.
29+
30+
Refer to [here](https://github.com/cahamilton/css-property-sort-order-smacss/blob/master/index.js) for the comprehensive list of property orders.

index.js

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
module.exports = {
2+
extends: [
3+
"stylelint-config-recommended",
4+
"stylelint-config-property-sort-order-acb",
5+
],
6+
rules: {
7+
"at-rule-no-unknown": [true, { "ignoreAtRules": ["define-mixin", "mixin"]}],
8+
"at-rule-no-vendor-prefix": true,
9+
"color-hex-case": "lower",
10+
"color-hex-length": "short",
11+
"color-no-invalid-hex": true,
12+
"max-nesting-depth": 3,
13+
"media-feature-name-no-vendor-prefix": true,
14+
"value-no-vendor-prefix": true,
15+
"declaration-property-value-whitelist": {
16+
"/color$/": [
17+
"/^\\$|initial|inherit|transparent|currentColor|gray|hwb|rgba|hsl|var/"
18+
],
19+
"fill": [
20+
"/^\\$|initial|inherit|transparent|currentColor|gray|hwb|rgba|hsl|var/"
21+
],
22+
"stroke": [
23+
"/^\\$|initial|inherit|transparent|currentColor|gray|hwb|rgba|hsl|var/"
24+
]
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)