Skip to content

Commit 0573f20

Browse files
authored
Feature: Created the stylelint-config-ckeditor5 stylelint preset. Closes #575.
2 parents 7e45daa + 9b8ff1f commit 0573f20

File tree

5 files changed

+76
-0
lines changed

5 files changed

+76
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "stylelint-config-recommended",
3+
"rules": {
4+
"at-rule-no-unknown": null
5+
}
6+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Changelog
2+
=========
3+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2003-2019, CKSource - Frederico Knabben
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
13+
all 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
21+
THE SOFTWARE.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
CKEditor 5 stylelint preset
2+
========================
3+
4+
## Usage
5+
6+
```
7+
npm i --save-dev stylelint-config-ckeditor5
8+
```
9+
10+
Configure stylelint with a `.stylelintrc` file using the following contents:
11+
12+
```js
13+
{
14+
"extends": "stylelint-config-ckeditor5"
15+
}
16+
```
17+
18+
## Changelog
19+
20+
See the [`CHANGELOG.md`](https://github.com/ckeditor/ckeditor5-dev/blob/master/packages/stylelint-config-ckeditor5/CHANGELOG.md) file.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "stylelint-config-ckeditor5",
3+
"version": "1.0.0",
4+
"description": "CKEditor 5 stylelint preset.",
5+
"keywords": [
6+
"stylelint",
7+
"config",
8+
"lint",
9+
"ckeditor"
10+
],
11+
"main": ".stylelintrc",
12+
"dependencies": {
13+
"stylelint-config-recommended": "^3.0.0"
14+
},
15+
"peerDependencies": {
16+
"stylelint": ">=12.0.0"
17+
},
18+
"files": [
19+
".stylelintrc"
20+
],
21+
"author": "CKSource (http://cksource.com/)",
22+
"license": "MIT",
23+
"homepage": "https://github.com/ckeditor/ckeditor5-dev/tree/master/packages/stylelint-config-ckeditor5",
24+
"bugs": "https://github.com/ckeditor/ckeditor5-dev/issues",
25+
"repository": "https://github.com/ckeditor/ckeditor5-dev"
26+
}

0 commit comments

Comments
 (0)