@nijesmik/stylelint-config 0.1.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/dist/bem.d.ts +9 -0
- package/dist/bem.js +13 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +18 -0
- package/package.json +37 -0
package/dist/bem.d.ts
ADDED
package/dist/bem.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// bem.ts
|
|
2
|
+
var bem_default = {
|
|
3
|
+
rules: {
|
|
4
|
+
// BEM 패턴 (예: .button--sm, .button__icon)
|
|
5
|
+
"selector-class-pattern": [
|
|
6
|
+
"^[a-z][a-z0-9]*(-[a-z0-9]+)*(__[a-z0-9]+(-[a-z0-9]+)*)?(--[a-z0-9]+(-[a-z0-9]+)*)?$",
|
|
7
|
+
{ message: "Expected class selector to be BEM pattern (block__element--modifier)" }
|
|
8
|
+
]
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
bem_default as default
|
|
13
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
extends: string[];
|
|
3
|
+
plugins: string[];
|
|
4
|
+
rules: {
|
|
5
|
+
"import-notation": null;
|
|
6
|
+
"@stylistic/no-missing-end-of-source-newline": boolean;
|
|
7
|
+
"@stylistic/max-empty-lines": number;
|
|
8
|
+
"@stylistic/indentation": number;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { _default as default };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// index.ts
|
|
2
|
+
var index_default = {
|
|
3
|
+
extends: ["stylelint-config-standard", "stylelint-config-tailwindcss"],
|
|
4
|
+
plugins: ["@stylistic/stylelint-plugin"],
|
|
5
|
+
rules: {
|
|
6
|
+
// @import url() vs @import "" 방식 제한 해제
|
|
7
|
+
"import-notation": null,
|
|
8
|
+
// 파일 끝에 빈 줄 필수
|
|
9
|
+
"@stylistic/no-missing-end-of-source-newline": true,
|
|
10
|
+
// 연속 빈 줄 최대 1개
|
|
11
|
+
"@stylistic/max-empty-lines": 1,
|
|
12
|
+
// 들여쓰기 2칸
|
|
13
|
+
"@stylistic/indentation": 2
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
index_default as default
|
|
18
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nijesmik/stylelint-config",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./bem": {
|
|
13
|
+
"types": "./dist/bem.d.ts",
|
|
14
|
+
"import": "./dist/bem.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@stylistic/stylelint-plugin": "^3.0.0",
|
|
22
|
+
"stylelint-config-standard": "^38.0.0",
|
|
23
|
+
"stylelint-config-tailwindcss": "^1.0.0"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"stylelint": ">=16.0.0"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"stylelint": "^16.19.1"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "tsup index.ts bem.ts --format esm --dts"
|
|
36
|
+
}
|
|
37
|
+
}
|