@icebreakers/eslint-config 5.0.2 → 5.0.4
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 +1 -1
- package/README.zh.md +1 -1
- package/dist/{dist-fjokZKZW.cjs → dist-B7ddKLda.cjs} +615 -615
- package/dist/{dist-Q1ckojP1.js → dist-Bhh5YMxq.js} +16 -16
- package/dist/index.cjs +65 -55
- package/dist/index.js +24 -50
- package/dist/{jiti-rvW1Nngq.cjs → jiti-BOkVoEUx.cjs} +4 -4
- package/dist/{jiti-DflBE4I9.js → jiti-CwIriPCr.js} +1 -1
- package/dist/{lib-COpZ8-nd.js → lib-Dc92-WCU.js} +1 -1
- package/dist/{lib-ivfmw_L0.cjs → lib-H3OzP-X_.cjs} +152 -152
- package/dist/{lib-CsDEZ3xL.js → lib-Mwx9Doks.js} +5 -5
- package/dist/{lib-_LfrBdIh.cjs → lib-R7AmzwP-.cjs} +473 -473
- package/dist/{modern-D2OTfylT.cjs → modern-DRyO5loa.cjs} +0 -1
- package/dist/{src-seAD4Fwt.cjs → src-C34Mcqt3.cjs} +9 -9
- package/dist/{src-ByvzhpaY.js → src-DPttw6yg.js} +1 -1
- package/dist/stylelint.cjs +0 -1
- package/package.json +3 -3
- package/dist/chunk-BrWF7lJc.cjs +0 -64
- /package/dist/{chunk-DwxmvJxx.js → chunk-yCSr5jVb.js} +0 -0
- /package/dist/{modern-Bann1D4p.js → modern-Dr_fOGoK.js} +0 -0
package/README.md
CHANGED
|
@@ -124,7 +124,7 @@ Mini Program templates. It enables the following defaults:
|
|
|
124
124
|
|
|
125
125
|
- injects readonly globals for `wx`, `Page`, `App`, `Component`, `getApp`, `getCurrentPages`, `requirePlugin`, and `WechatMiniprogram`
|
|
126
126
|
- ignores `dist/**`, `.weapp-vite/**`, `miniprogram_npm/**`, `node_modules/**`, `project.config.json`, and `project.private.config.json`
|
|
127
|
-
- when `vue: true` is also enabled,
|
|
127
|
+
- when `vue: true` is also enabled, disables `vue/no-deprecated-slot-attribute`, `vue/no-useless-template-attributes`, and `vue/singleline-html-element-content-newline` so native Mini Program slot projection and compiler-only slot attributes are allowed, and warns when Vue props are named `id`, `class`, or `slot` because Mini Program `properties` may not receive those values reliably
|
|
128
128
|
|
|
129
129
|
#### Native Mini Program Minimal Config
|
|
130
130
|
|
package/README.zh.md
CHANGED
|
@@ -145,7 +145,7 @@ export default icebreaker({
|
|
|
145
145
|
|
|
146
146
|
- 注入 `wx`、`Page`、`App`、`Component`、`getApp`、`getCurrentPages`、`requirePlugin`、`WechatMiniprogram` 全局变量
|
|
147
147
|
- 忽略 `dist/**`、`.weapp-vite/**`、`miniprogram_npm/**`、`node_modules/**`、`project.config.json`、`project.private.config.json`
|
|
148
|
-
- 当同时开启 `vue: true`
|
|
148
|
+
- 当同时开启 `vue: true` 时,关闭 `vue/no-deprecated-slot-attribute`、`vue/no-useless-template-attributes` 与 `vue/singleline-html-element-content-newline`,允许小程序原生 slot 投影和编译器专用的 slot 属性;同时对命名为 `id`、`class` 或 `slot` 的 Vue props 给出 warning,因为小程序 `properties` 可能无法稳定接收到这些值
|
|
149
149
|
|
|
150
150
|
#### 原生小程序最小配置
|
|
151
151
|
|