@dvukovic/style-guide 0.8.0 → 0.9.0
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
|
@@ -5,7 +5,7 @@ Personal style guide with ESLint, Prettier, Stylelint, and CSpell configurations
|
|
|
5
5
|
## Quick Start
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npx @dvukovic/style-guide@latest init
|
|
8
|
+
npx -y @dvukovic/style-guide@latest init
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
This interactive CLI will:
|
|
@@ -88,11 +88,11 @@ export default config
|
|
|
88
88
|
Create `stylelint.config.js`:
|
|
89
89
|
|
|
90
90
|
```js
|
|
91
|
-
import
|
|
91
|
+
import { core } from "@dvukovic/style-guide/stylelint"
|
|
92
92
|
|
|
93
93
|
/** @type {import("stylelint").Config} */
|
|
94
94
|
const config = {
|
|
95
|
-
...
|
|
95
|
+
...core,
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
export default config
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as core
|
|
1
|
+
export { default as core } from "./configs/core.js";
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export function generateStylelintConfig() {
|
|
2
|
-
return `import
|
|
2
|
+
return `import { core } from "@dvukovic/style-guide/stylelint"
|
|
3
3
|
|
|
4
4
|
/** @type {import("stylelint").Config} */
|
|
5
5
|
const config = {
|
|
6
|
-
...
|
|
6
|
+
...core,
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export default config
|
package/src/eslint/index.js
CHANGED
package/src/stylelint/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as core
|
|
1
|
+
export { default as core } from "./configs/core.js"
|