@kununu/stylelint-config 2.0.0 → 2.1.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -7,6 +7,7 @@ These configurations are for [stylelint](https://stylelint.io/) linter.
7
7
  ## 📦 Installation
8
8
 
9
9
  Add @kununu/stylelint-config npm package as a dev dependency to your project:
10
+
10
11
  ```console
11
12
  npm install @kununu/stylelint-config --save-dev
12
13
  ```
@@ -20,13 +21,18 @@ Create a `.stylelintrc` file with the following configuration:
20
21
  "extends": "@kununu/stylelint-config"
21
22
  }
22
23
  ```
24
+
23
25
  See [docs](https://stylelint.io/user-guide/configuration) to find more detailed information on stylelint configuration and usage.
24
26
 
25
27
  And add
28
+
26
29
  ```console
30
+
27
31
  "lint": "stylelint '**/*.scss'",
28
32
  ```
33
+
29
34
  to your npm file.
35
+
30
36
  ## ⚡️ Editor Plugins
31
37
 
32
38
  At kununu, [@kununu/stylelint-config](https://www.npmjs.com/package/@kununu/stylelint-config) linter runs on every commit, but finding a lint error after push can be frustrating and a waste time. In order to avoid it, editor plugins are available to warn you and validate your code.
@@ -34,7 +40,9 @@ At kununu, [@kununu/stylelint-config](https://www.npmjs.com/package/@kununu/styl
34
40
  There's what we use and recommend:
35
41
 
36
42
  ### Atom
43
+
37
44
  - [linter-stylelint](https://atom.io/packages/linter-stylelint)
38
45
 
39
46
  ### Visual Code Studio
47
+
40
48
  - [stylelint](https://marketplace.visualstudio.com/items?itemName=hex-ci.stylelint-plus)
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
2
  extends: [
3
- 'stylelint-config-standard',
3
+ 'stylelint-config-standard-scss',
4
4
  ],
5
5
  plugins: [
6
6
  'stylelint-scss',
@@ -49,6 +49,12 @@ module.exports = {
49
49
  'border-in-box-model': false,
50
50
  'empty-line-between-groups': false,
51
51
  }],
52
+ 'property-no-unknown': [
53
+ true,
54
+ {
55
+ ignoreSelectors: [':export'],
56
+ },
57
+ ],
52
58
  'property-no-vendor-prefix': true,
53
59
  'rule-empty-line-before': ['always', {except: ['after-single-line-comment', 'first-nested']}],
54
60
  'scss/at-rule-no-unknown': true,
@@ -66,5 +72,13 @@ module.exports = {
66
72
  'selector-pseudo-element-colon-notation': 'single',
67
73
  'string-quotes': 'single',
68
74
  'value-no-vendor-prefix': true,
75
+ 'selector-class-pattern': '^[a-z][a-zA-Z0-9]+$', // camelCase
76
+ 'scss/at-mixin-pattern': '^([a-z][a-z0-9]*)(-[a-z0-9]+)*$', // kebab-case
77
+ 'color-function-notation': 'legacy',
78
+ 'alpha-value-notation': 'number',
79
+ 'max-line-length': [120, {
80
+ 'ignore': ['non-comments'],
81
+ 'ignorePattern': '/box-shadow:/'
82
+ }]
69
83
  },
70
84
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kununu/stylelint-config",
3
- "version": "2.0.0",
3
+ "version": "2.1.0-beta.2",
4
4
  "description": "kununu's stylelint config",
5
5
  "author": "kununu",
6
6
  "license": "ISC",
@@ -13,14 +13,11 @@
13
13
  "scss",
14
14
  "sass"
15
15
  ],
16
- "scripts": {
17
- "publish:beta": "npm publish --tag=beta"
18
- },
19
16
  "dependencies": {
20
- "stylelint": "13.12.0",
17
+ "stylelint": "14.1.0",
21
18
  "stylelint-config-rational-order": "0.1.2",
22
- "stylelint-config-standard": "21.0.0",
23
- "stylelint-order": "4.1.0",
24
- "stylelint-scss": "3.19.0"
19
+ "stylelint-config-standard-scss": "3.0.0",
20
+ "stylelint-order": "5.0.0",
21
+ "stylelint-scss": "4.1.0"
25
22
  }
26
23
  }
package/CHANGELOG.md DELETED
@@ -1,8 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## 0.0.2 (2020-10-15)
7
-
8
- **Note:** Version bump only for package @kununu/stylelint-config