@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.
Files changed (2) hide show
  1. package/index.js +8 -0
  2. 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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eset-gdd/code-styleguide-eslint-vue3",
3
3
  "type": "module",
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "description": "Vue 3 ESLint configuration for ESET's Frontend Coding Styleguide",
6
6
  "author": "ESET GWD Team",
7
7
  "license": "ISC",