Skip to content

Commit

Permalink
feat(stylelint-config): describe angular-less config (#219)
Browse files Browse the repository at this point in the history
Some projects uses angular with less. Describing of separate angular-less config must hide tricks of combining two configs from package users

Co-authored-by: Ilya Vladimirovich Zyablitsev <i.zyablitsev@tinkoff.ru>
  • Loading branch information
zy2ba and Ilya Vladimirovich Zyablitsev authored Nov 14, 2022
1 parent ae261eb commit 87422e9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/stylelint-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,11 @@ More information about available at
"extends": ["@tinkoff/stylelint-config/angular"]
}
```

- **angular-less**

```json
{
"extends": ["@tinkoff/stylelint-config/angular-less"]
}
```
11 changes: 11 additions & 0 deletions packages/stylelint-config/angular-less.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const angularConfig = require('./angular');
const lessConfig = require('./less');

module.exports = {
...angularConfig,
customSyntax: lessConfig.customSyntax,
rules: {
...angularConfig.rules,
...lessConfig.rules,
},
};

0 comments on commit 87422e9

Please sign in to comment.