@enke.dev/lint 0.8.1 → 0.8.2
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/package.json +4 -3
- package/stylelint.config.d.ts +13 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enke.dev/lint",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "Meta package to provide linting for web projects",
|
|
5
5
|
"homepage": "https://github.com/enke-dev/lint",
|
|
6
6
|
"repository": {
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
"url": "git+https://github.com/enke-dev/lint.git"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
|
-
"eslint.config.js",
|
|
12
11
|
"eslint.config.d.ts",
|
|
12
|
+
"eslint.config.js",
|
|
13
13
|
"eslint-plugins.d.ts",
|
|
14
|
+
"stylelint.config.d.ts",
|
|
14
15
|
"stylelint.config.js",
|
|
15
16
|
"README.md"
|
|
16
17
|
],
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
"main": "eslint.config.js",
|
|
19
20
|
"types": "eslint.config.d.ts",
|
|
20
21
|
"scripts": {
|
|
21
|
-
"lint": "eslint -c eslint.config.ts
|
|
22
|
+
"lint": "eslint -c eslint.config.ts ./*.config.ts",
|
|
22
23
|
"build": "tsc"
|
|
23
24
|
},
|
|
24
25
|
"author": {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Config } from 'stylelint';
|
|
2
|
+
/**
|
|
3
|
+
* Stylelint configuration options
|
|
4
|
+
*/
|
|
5
|
+
export interface Options {
|
|
6
|
+
cssCustomPropertyPrefix: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Prepares a Stylelint configuration
|
|
10
|
+
* @param options to configure options
|
|
11
|
+
* @returns an options object to be used for Stylelint
|
|
12
|
+
*/
|
|
13
|
+
export declare const defineConfig: ({ cssCustomPropertyPrefix }: Options) => Config;
|