@nice-move/stylelint-config 0.6.10 → 0.6.11

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/lib/ignore.cjs +14 -10
  2. package/package.json +5 -5
package/lib/ignore.cjs CHANGED
@@ -2,17 +2,19 @@
2
2
 
3
3
  const { join } = require('path');
4
4
 
5
+ const { readJson, getPkg } = require('settingz');
6
+
7
+ function ignoreList() {
8
+ const { ignore: { all = [], stylelint = [] } = {} } = getPkg('nice-move');
9
+
10
+ return [...all, ...stylelint];
11
+ }
12
+
5
13
  function BestShot() {
6
- try {
7
- const {
8
- git = [],
9
- stylelint = git,
10
- // eslint-disable-next-line import/no-unresolved
11
- } = require('@best-shot/cli/config/ignore.json');
12
- return stylelint;
13
- } catch {
14
- return [];
15
- }
14
+ const { git = [], stylelint = git } = readJson(
15
+ '@best-shot/cli/config/ignore.json',
16
+ );
17
+ return stylelint;
16
18
  }
17
19
 
18
20
  module.exports = {
@@ -20,6 +22,8 @@ module.exports = {
20
22
  '**/*.min.*',
21
23
  '**/dist/**',
22
24
  '**/.(cache|svn|git)/**',
25
+ '**/miniprogram_npm/**',
23
26
  ...BestShot(),
27
+ ...ignoreList(),
24
28
  ].map((item) => join(process.cwd(), item)),
25
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-move/stylelint-config",
3
- "version": "0.6.10",
3
+ "version": "0.6.11",
4
4
  "description": "A `stylelint` config created by personal preferences",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -29,12 +29,12 @@
29
29
  },
30
30
  "main": "index.cjs",
31
31
  "dependencies": {
32
- "postcss-html": "^1.2.0",
32
+ "postcss-html": "^1.3.0",
33
33
  "postcss-less": "^5.0.0",
34
- "postcss-markdown": "^1.1.0",
35
- "settingz": "^0.1.0",
34
+ "postcss-markdown": "^1.2.0",
35
+ "settingz": "^0.1.2",
36
36
  "stylelint-config-prettier": "^9.0.3",
37
- "stylelint-config-recommended-scss": "^5.0.1",
37
+ "stylelint-config-recommended-scss": "^5.0.2",
38
38
  "stylelint-config-standard": "^24.0.0",
39
39
  "stylelint-declaration-block-no-ignored-properties": "^2.5.0"
40
40
  },