@deot/dev-stylelint 2.7.0 → 2.8.1

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.
Files changed (2) hide show
  1. package/index.js +32 -21
  2. package/package.json +5 -4
package/index.js CHANGED
@@ -1,9 +1,7 @@
1
- module.exports = {
2
- root: true,
3
- plugins: ['stylelint-order'],
4
- extends: ['stylelint-config-standard'],
1
+ export default {
2
+ plugins: ['stylelint-order', 'stylelint-codeguide'],
3
+ extends: ['stylelint-config-standard-scss'],
5
4
  rules: {
6
- "indentation": "tab",
7
5
  'selector-pseudo-class-no-unknown': [
8
6
  true,
9
7
  {
@@ -14,16 +12,16 @@ module.exports = {
14
12
  true,
15
13
  {
16
14
  ignoreAtRules: [
17
- 'use',
18
- 'for',
19
- 'function',
20
- 'if',
21
- 'each',
22
- 'include',
23
- 'mixin',
24
- 'at-root',
25
- 'else',
26
- 'extend',
15
+ 'use',
16
+ 'for',
17
+ 'function',
18
+ 'if',
19
+ 'each',
20
+ 'include',
21
+ 'mixin',
22
+ 'at-root',
23
+ 'else',
24
+ 'extend',
27
25
  'return',
28
26
  'debug',
29
27
  'while'
@@ -32,20 +30,23 @@ module.exports = {
32
30
  ],
33
31
  'no-empty-source': null,
34
32
  'named-grid-areas-no-invalid': null,
35
- 'unicode-bom': 'never',
36
33
  'no-descending-specificity': null,
37
34
  'font-family-no-missing-generic-family-keyword': null,
38
- 'declaration-colon-space-after': 'always-single-line',
39
- 'declaration-colon-space-before': 'never',
40
- 'declaration-block-trailing-semicolon': 'always',
41
35
  'rule-empty-line-before': [
42
36
  'always',
43
37
  {
44
38
  ignore: ['after-comment', 'first-nested'],
45
39
  }
46
40
  ],
47
- "function-no-unknown": null,
41
+ 'function-no-unknown': null,
48
42
  'unit-no-unknown': [true, { ignoreUnits: ['rpx'] }],
43
+
44
+ // stylistic
45
+ 'codeguide/indentation': 'tab',
46
+ 'codeguide/declaration-colon-space-after': 'always-single-line',
47
+ 'codeguide/declaration-colon-space-before': 'never',
48
+ 'codeguide/declaration-block-trailing-semicolon': 'always',
49
+
49
50
  // Specify the alphabetical order of the attributes in the declaration block
50
51
  'order/properties-order': [
51
52
  'position',
@@ -196,5 +197,15 @@ module.exports = {
196
197
  'speak'
197
198
  ],
198
199
  },
199
- ignoreFiles: ['**/*.js', '**/*.jsx'],
200
+ ignoreFiles: [
201
+ '**/node_modules/**',
202
+ '**/dist/**',
203
+ '**/temp/**',
204
+ '**/tmp/**',
205
+ '**/coverage/**',
206
+ '**/*.js',
207
+ '**/*.ts',
208
+ '**/*.tsx',
209
+ '**/*.jsx'
210
+ ]
200
211
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deot/dev-stylelint",
3
- "version": "2.7.0",
3
+ "version": "2.8.1",
4
4
  "main": "index.js",
5
5
  "files": [
6
6
  "index.js"
@@ -10,10 +10,11 @@
10
10
  "access": "public"
11
11
  },
12
12
  "dependencies": {
13
- "stylelint-config-standard": "^34.0.0",
14
- "stylelint-order": "^6.0.3"
13
+ "stylelint-config-standard-scss": "^12.0.0",
14
+ "stylelint-codeguide": "^1.0.2",
15
+ "stylelint-order": "^6.0.4"
15
16
  },
16
17
  "devDependencies": {
17
- "stylelint": "^15.11.0"
18
+ "stylelint": "^16.0.2"
18
19
  }
19
20
  }