@flarian/frontend-preset 1.4.2 → 1.4.3
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 +19 -0
- package/dist/index.cjs +0 -1
- package/dist/index.mjs +0 -1
- package/dist/stylelint/config/all.cjs +0 -1
- package/dist/stylelint/config/all.mjs +0 -1
- package/dist/stylelint/config/less.cjs +2 -14
- package/dist/stylelint/config/less.mjs +2 -13
- package/dist/stylelint/config/scss.cjs +2 -14
- package/dist/stylelint/config/scss.mjs +2 -13
- package/dist/stylelint/index.cjs +0 -1
- package/dist/stylelint/index.mjs +0 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -93,6 +93,18 @@ export default all;
|
|
|
93
93
|
---
|
|
94
94
|
|
|
95
95
|
### Настройка stylelint
|
|
96
|
+
В зависимости от используемого препроцессора (LESS или SCSS), необходимо установить дополнительные зависимости:
|
|
97
|
+
|
|
98
|
+
#### Для LESS:
|
|
99
|
+
```sh
|
|
100
|
+
pnpm add stylelint-order stylelint-less stylelint-config-standard stylelint-config-standard-less stylelint-config-recommended-vue -D
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
#### Для SCSS:
|
|
104
|
+
```sh
|
|
105
|
+
pnpm add stylelint-order stylelint-scss stylelint-config-standard stylelint-config-standard-scss stylelint-config-recommended-vue -D
|
|
106
|
+
```
|
|
107
|
+
|
|
96
108
|
#### stylelint.config.mjs
|
|
97
109
|
```js
|
|
98
110
|
import { all } from '@flarian/frontend-preset/stylelint';
|
|
@@ -102,6 +114,13 @@ export default {
|
|
|
102
114
|
};
|
|
103
115
|
```
|
|
104
116
|
|
|
117
|
+
**Примечание:** Используйте только нужные пресеты в `extends`. Например, если работаете только с LESS:
|
|
118
|
+
```js
|
|
119
|
+
export default {
|
|
120
|
+
extends: [all.less],
|
|
121
|
+
};
|
|
122
|
+
```
|
|
123
|
+
|
|
105
124
|
## .editorconfig
|
|
106
125
|
```ini
|
|
107
126
|
root = true
|
package/dist/index.cjs
CHANGED
|
@@ -30,7 +30,6 @@ require('./prettier/config/vue.cjs');
|
|
|
30
30
|
require('./prettier/config/yml.cjs');
|
|
31
31
|
require('./stylelint/config/all.cjs');
|
|
32
32
|
require('./stylelint/config/less.cjs');
|
|
33
|
-
require('module');
|
|
34
33
|
require('./shared/frontend-preset.A0xn3etH.cjs');
|
|
35
34
|
require('./stylelint/config/scss.cjs');
|
|
36
35
|
|
package/dist/index.mjs
CHANGED
|
@@ -28,6 +28,5 @@ import './prettier/config/vue.mjs';
|
|
|
28
28
|
import './prettier/config/yml.mjs';
|
|
29
29
|
import './stylelint/config/all.mjs';
|
|
30
30
|
import './stylelint/config/less.mjs';
|
|
31
|
-
import 'module';
|
|
32
31
|
import './shared/frontend-preset.D9dSlTPx.mjs';
|
|
33
32
|
import './stylelint/config/scss.mjs';
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
const stylelint_config_less = require('./less.cjs');
|
|
4
4
|
const stylelint_config_scss = require('./scss.cjs');
|
|
5
|
-
require('module');
|
|
6
5
|
require('../../shared/frontend-preset.A0xn3etH.cjs');
|
|
7
6
|
|
|
8
7
|
const all = { less: stylelint_config_less.lessConfig, scss: stylelint_config_scss.scssConfig };
|
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const module$1 = require('module');
|
|
4
3
|
const orderGroups = require('../../shared/frontend-preset.A0xn3etH.cjs');
|
|
5
4
|
|
|
6
|
-
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
7
|
-
const require$1 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('stylelint/config/less.cjs', document.baseURI).href)));
|
|
8
|
-
const stylelintPlugins = {
|
|
9
|
-
order: require$1.resolve("stylelint-order"),
|
|
10
|
-
less: require$1.resolve("stylelint-less")
|
|
11
|
-
};
|
|
12
|
-
const stylelintConfig = {
|
|
13
|
-
standard: require$1.resolve("stylelint-config-standard"),
|
|
14
|
-
standardLess: require$1.resolve("stylelint-config-standard-less"),
|
|
15
|
-
recommendedVue: require$1.resolve("stylelint-config-recommended-vue")
|
|
16
|
-
};
|
|
17
5
|
const lessConfig = {
|
|
18
|
-
plugins: [
|
|
19
|
-
extends: [
|
|
6
|
+
plugins: ["stylelint-order", "stylelint-less"],
|
|
7
|
+
extends: ["stylelint-config-standard", "stylelint-config-standard-less", "stylelint-config-recommended-vue"],
|
|
20
8
|
rules: {
|
|
21
9
|
...orderGroups.baseRules,
|
|
22
10
|
...orderGroups.orderRules,
|
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
import { createRequire } from 'module';
|
|
2
1
|
import { o as orderGroupsRules, a as orderRules, b as baseRules } from '../../shared/frontend-preset.D9dSlTPx.mjs';
|
|
3
2
|
|
|
4
|
-
const require$1 = createRequire(import.meta.url);
|
|
5
|
-
const stylelintPlugins = {
|
|
6
|
-
order: require$1.resolve("stylelint-order"),
|
|
7
|
-
less: require$1.resolve("stylelint-less")
|
|
8
|
-
};
|
|
9
|
-
const stylelintConfig = {
|
|
10
|
-
standard: require$1.resolve("stylelint-config-standard"),
|
|
11
|
-
standardLess: require$1.resolve("stylelint-config-standard-less"),
|
|
12
|
-
recommendedVue: require$1.resolve("stylelint-config-recommended-vue")
|
|
13
|
-
};
|
|
14
3
|
const lessConfig = {
|
|
15
|
-
plugins: [
|
|
16
|
-
extends: [
|
|
4
|
+
plugins: ["stylelint-order", "stylelint-less"],
|
|
5
|
+
extends: ["stylelint-config-standard", "stylelint-config-standard-less", "stylelint-config-recommended-vue"],
|
|
17
6
|
rules: {
|
|
18
7
|
...baseRules,
|
|
19
8
|
...orderRules,
|
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const module$1 = require('module');
|
|
4
3
|
const orderGroups = require('../../shared/frontend-preset.A0xn3etH.cjs');
|
|
5
4
|
|
|
6
|
-
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
7
|
-
const require$1 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('stylelint/config/scss.cjs', document.baseURI).href)));
|
|
8
|
-
const stylelintPlugins = {
|
|
9
|
-
order: require$1.resolve("stylelint-order"),
|
|
10
|
-
scss: require$1.resolve("stylelint-scss")
|
|
11
|
-
};
|
|
12
|
-
const stylelintConfig = {
|
|
13
|
-
standard: require$1.resolve("stylelint-config-standard"),
|
|
14
|
-
standardScss: require$1.resolve("stylelint-config-standard-scss"),
|
|
15
|
-
recommendedVue: require$1.resolve("stylelint-config-recommended-vue")
|
|
16
|
-
};
|
|
17
5
|
const scssConfig = {
|
|
18
|
-
plugins: [
|
|
19
|
-
extends: [
|
|
6
|
+
plugins: ["stylelint-order", "stylelint-scss"],
|
|
7
|
+
extends: ["stylelint-config-standard", "stylelint-config-standard-scss", "stylelint-config-recommended-vue"],
|
|
20
8
|
rules: {
|
|
21
9
|
...orderGroups.baseRules,
|
|
22
10
|
...orderGroups.orderRules,
|
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
import { createRequire } from 'module';
|
|
2
1
|
import { o as orderGroupsRules, a as orderRules, b as baseRules } from '../../shared/frontend-preset.D9dSlTPx.mjs';
|
|
3
2
|
|
|
4
|
-
const require$1 = createRequire(import.meta.url);
|
|
5
|
-
const stylelintPlugins = {
|
|
6
|
-
order: require$1.resolve("stylelint-order"),
|
|
7
|
-
scss: require$1.resolve("stylelint-scss")
|
|
8
|
-
};
|
|
9
|
-
const stylelintConfig = {
|
|
10
|
-
standard: require$1.resolve("stylelint-config-standard"),
|
|
11
|
-
standardScss: require$1.resolve("stylelint-config-standard-scss"),
|
|
12
|
-
recommendedVue: require$1.resolve("stylelint-config-recommended-vue")
|
|
13
|
-
};
|
|
14
3
|
const scssConfig = {
|
|
15
|
-
plugins: [
|
|
16
|
-
extends: [
|
|
4
|
+
plugins: ["stylelint-order", "stylelint-scss"],
|
|
5
|
+
extends: ["stylelint-config-standard", "stylelint-config-standard-scss", "stylelint-config-recommended-vue"],
|
|
17
6
|
rules: {
|
|
18
7
|
...baseRules,
|
|
19
8
|
...orderRules,
|
package/dist/stylelint/index.cjs
CHANGED
package/dist/stylelint/index.mjs
CHANGED