@jhqn/stylelint-config 0.0.3 → 0.0.6

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 +69 -69
  2. package/package.json +9 -9
package/index.js CHANGED
@@ -1,69 +1,69 @@
1
- module.exports = {
2
- extends: [
3
- 'stylelint-config-recess-order',
4
- 'stylelint-config-recommended',
5
- 'stylelint-config-standard',
6
- 'stylelint-config-standard-scss',
7
- ],
8
- plugins: [
9
- 'stylelint-css-modules',
10
- 'stylelint-scss',
11
- 'stylelint-declaration-block-no-ignored-properties',
12
- 'stylelint-no-unsupported-browser-features',
13
- ],
14
- rules: {
15
- 'max-line-length': null,
16
- 'at-rule-no-unknown': null,
17
- 'scss/at-rule-no-unknown': true,
18
- 'scss/at-import-partial-extension': 'always',
19
- 'scss/at-import-partial-extension-whitelist': ['scss'],
20
- 'css-modules/composed-class-names': true,
21
- 'css-modules/css-variables': null,
22
- 'plugin/declaration-block-no-ignored-properties': true,
23
- 'no-descending-specificity': [
24
- true,
25
- {
26
- severity: 'warning',
27
- },
28
- ],
29
- 'plugin/no-unsupported-browser-features': [
30
- true,
31
- {
32
- severity: 'warning',
33
- },
34
- ],
35
- 'selector-pseudo-class-no-unknown': [
36
- true,
37
- {
38
- ignorePseudoClasses: ['global'],
39
- },
40
- ],
41
- 'value-no-vendor-prefix': null,
42
- 'property-no-vendor-prefix': null,
43
- // kebab-case(组件库常用 or snake_case(方便使用css modules)
44
- 'selector-class-pattern': '^([a-z][a-z0-9]*)((_|__|-|--)[a-z0-9]+)*$',
45
- 'indentation': [2, { baseIndentLevel: 1 }],
46
- },
47
- overrides: [
48
- {
49
- files: ['*.vue', '**/*.vue'],
50
- extends: [
51
- 'stylelint-config-recommended-vue',
52
- 'stylelint-config-recommended-vue/scss',
53
- 'stylelint-config-standard-vue',
54
- 'stylelint-config-standard-vue/scss',
55
- ],
56
- rules: {
57
- 'selector-pseudo-class-no-unknown': [
58
- true,
59
- {
60
- ignorePseudoClasses: ['global', 'deep'],
61
- },
62
- ],
63
- // conflict when using style in template with prettier-vue/prettier
64
- 'declaration-block-trailing-semicolon': null,
65
- },
66
- },
67
- ],
68
- ignoreFiles: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
69
- }
1
+ module.exports = {
2
+ extends: [
3
+ 'stylelint-config-recess-order',
4
+ 'stylelint-config-recommended',
5
+ 'stylelint-config-standard',
6
+ 'stylelint-config-standard-scss',
7
+ ],
8
+ plugins: [
9
+ 'stylelint-css-modules',
10
+ 'stylelint-scss',
11
+ 'stylelint-declaration-block-no-ignored-properties',
12
+ 'stylelint-no-unsupported-browser-features',
13
+ ],
14
+ rules: {
15
+ 'max-line-length': null,
16
+ 'at-rule-no-unknown': null,
17
+ 'scss/at-rule-no-unknown': true,
18
+ 'scss/at-import-partial-extension': 'always',
19
+ 'scss/at-import-partial-extension-whitelist': ['scss'],
20
+ 'css-modules/composed-class-names': true,
21
+ 'css-modules/css-variables': null,
22
+ 'plugin/declaration-block-no-ignored-properties': true,
23
+ 'no-descending-specificity': [
24
+ true,
25
+ {
26
+ severity: 'warning',
27
+ },
28
+ ],
29
+ 'plugin/no-unsupported-browser-features': [
30
+ true,
31
+ {
32
+ severity: 'warning',
33
+ },
34
+ ],
35
+ 'selector-pseudo-class-no-unknown': [
36
+ true,
37
+ {
38
+ ignorePseudoClasses: ['global', 'deep'],
39
+ },
40
+ ],
41
+ 'value-no-vendor-prefix': null,
42
+ 'property-no-vendor-prefix': null,
43
+ // kebab-case(组件库常用 or snake_case(方便使用css modules)
44
+ 'selector-class-pattern': '^([a-z][a-z0-9]*)((_|__|-|--)[a-z0-9]+)*$',
45
+ 'indentation': [2, { baseIndentLevel: 1 }],
46
+ },
47
+ overrides: [
48
+ {
49
+ files: ['*.vue', '**/*.vue'],
50
+ extends: [
51
+ 'stylelint-config-recommended-vue',
52
+ 'stylelint-config-recommended-vue/scss',
53
+ 'stylelint-config-standard-vue',
54
+ 'stylelint-config-standard-vue/scss',
55
+ ],
56
+ rules: {
57
+ 'selector-pseudo-class-no-unknown': [
58
+ true,
59
+ {
60
+ ignorePseudoClasses: ['global', 'deep'],
61
+ },
62
+ ],
63
+ // conflict when using style in template with prettier-vue/prettier
64
+ 'declaration-block-trailing-semicolon': null,
65
+ },
66
+ },
67
+ ],
68
+ ignoreFiles: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
69
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jhqn/stylelint-config",
3
- "version": "0.0.3",
4
- "packageManager": "pnpm@7.1.9",
3
+ "version": "0.0.6",
4
+ "packageManager": "pnpm@7.5.2",
5
5
  "description": "jhqn's stylelint config",
6
6
  "author": "jade-gjz",
7
7
  "license": "MIT",
@@ -14,7 +14,7 @@
14
14
  "index.js"
15
15
  ],
16
16
  "peerDependencies": {
17
- "stylelint": "^14.0.0"
17
+ "stylelint": "^14.9.1"
18
18
  },
19
19
  "dependencies": {
20
20
  "postcss-html": "^1.4.1",
@@ -22,7 +22,7 @@
22
22
  "stylelint-config-recommended": "^8.0.0",
23
23
  "stylelint-config-recommended-vue": "^1.4.0",
24
24
  "stylelint-config-standard": "^26.0.0",
25
- "stylelint-config-standard-scss": "^4.0.0",
25
+ "stylelint-config-standard-scss": "^5.0.0",
26
26
  "stylelint-config-standard-vue": "^1.0.0",
27
27
  "stylelint-css-modules": "^1.2.2",
28
28
  "stylelint-declaration-block-no-ignored-properties": "^2.5.0",
@@ -30,12 +30,12 @@
30
30
  "stylelint-scss": "^4.2.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@jhqn/eslint-config-basic": "^0.0.29",
34
- "bumpp": "^7.1.1",
33
+ "@jhqn/eslint-config-basic": "^0.0.30",
34
+ "bumpp": "^8.0.0",
35
35
  "conventional-changelog-cli": "^2.2.2",
36
- "eslint": "^8.17.0",
37
- "stylelint": "^14.9.0",
38
- "typescript": "^4.7.3"
36
+ "eslint": "^8.18.0",
37
+ "stylelint": "^14.9.1",
38
+ "typescript": "^4.7.4"
39
39
  },
40
40
  "scripts": {
41
41
  "lint": "eslint .",