@eset-gdd/code-styleguide-eslint-vue3 1.1.0 → 1.1.1
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/index.js +8 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -147,6 +147,14 @@ export default [
|
|
|
147
147
|
"vue/prefer-template": "error",
|
|
148
148
|
"vue/prop-name-casing": ["error", "camelCase"],
|
|
149
149
|
// "vue/custom-event-name-casing": ["error", "camelCase"],
|
|
150
|
+
"no-restricted-syntax": [
|
|
151
|
+
"error",
|
|
152
|
+
{
|
|
153
|
+
selector:
|
|
154
|
+
"VariableDeclarator[init.type='CallExpression'][init.callee.name='ref'][init.arguments.0.raw=/^(true|false)$/][id.name=/^(?!is|are|was|were|has|did|can|should)[a-z]/]",
|
|
155
|
+
message: "Boolean ref variables must start with is/are/was/were/has/did/can/should",
|
|
156
|
+
},
|
|
157
|
+
],
|
|
150
158
|
},
|
|
151
159
|
languageOptions: {
|
|
152
160
|
sourceType: "module",
|
package/package.json
CHANGED