Skip to content

Commit 0affbdb

Browse files
committed
Добавляет конфиги и ридми
1 parent 1962210 commit 0affbdb

File tree

3 files changed

+74
-2
lines changed

3 files changed

+74
-2
lines changed

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
; http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
13+
[*.{go,py,rb,php}]
14+
indent_size = 4
15+
16+
[*.md]
17+
trim_trailing_whitespace = false

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules/
2+
.idea/
3+
*.log
4+
*.lock
5+
.DS_Store
6+
.publish
7+
Thumbs.db

README.md

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,50 @@
1-
# congenial-spoon
2-
HTML Academy Stylelint config
1+
# stylelint-config-htmlacademy
2+
> The standard shareable config for stylelint.
3+
4+
Use it as is or as a foundation for your own config.
5+
6+
## Installation
7+
8+
```bash
9+
npm install stylelint-config-htmlacademy --save-dev
10+
```
11+
12+
## Usage
13+
14+
If you've installed `stylelint-config-htmlacademy` locally within your project, just set your `stylelint` config to:
15+
16+
```json
17+
{
18+
"extends": "stylelint-config-htmlacademy"
19+
}
20+
```
21+
22+
If you've globally installed `stylelint-config-htmlacademy` using the `-g` flag, then you'll need to use the absolute path to `stylelint-config-htmlacademy` in your config e.g.
23+
24+
```json
25+
{
26+
"extends": "/absolute/path/to/stylelint-config-htmlacademy"
27+
}
28+
```
29+
30+
### Extending the config
31+
32+
Simply add a `"rules"` key to your config, then add your overrides and additions there.
33+
34+
For example, to change the `indentation` to tabs, turn off the `number-leading-zero` rule, change the `property-no-unknown` rule to use its `ignoreAtRules` option and add the `unit-whitelist` rule:
35+
36+
```json
37+
{
38+
"extends": "stylelint-config-htmlacademy",
39+
"rules": {
40+
"indentation": "tab",
41+
"number-leading-zero": null,
42+
"property-no-unknown": [ true, {
43+
"ignoreProperties": [
44+
"composes"
45+
]
46+
}],
47+
"unit-whitelist": ["em", "rem", "s"]
48+
}
49+
}
50+
```

0 commit comments

Comments
 (0)