@useinsider/eslint-config 1.6.0 → 1.7.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/README.md CHANGED
@@ -6,6 +6,7 @@
6
6
  - [Prerequisites](#prerequisites)
7
7
  - [Available Presets](#available-presets)
8
8
  - [Vanilla 🍦](#vanilla-)
9
+ - [Library-specific \& Standalone Configs](#library-specific--standalone-configs)
9
10
  - [Framework-specific](#framework-specific)
10
11
  - [⏳ Upcoming Configurations](#-upcoming-configurations)
11
12
  - [Examples](#examples)
@@ -34,7 +35,13 @@ configured for different environments, such as ServiceWorkers, WebWorkers, etc.
34
35
  | :---------------- | :---------------------------------------------- | :------------------------------------------------------ | :-------------------------------------------------------- |
35
36
  | **EcmaScript/JS** | [`javascript`](./src/configs/javascript#readme) | [`javascript-dom`](./src/configs/javascript-dom#readme) | [`javascript-node`](./src/configs/javascript-node#readme) |
36
37
  | **TypeScript** | [`typescript`](./src/configs/typescript#readme) | [`typescript-dom`](./src/configs/typescript-dom#readme) | [`typescript-node`](./src/configs/typescript-node#readme) |
37
- | **Config files** | [`config`](./src/configs/config#readme) | - | - |
38
+
39
+ ### Library-specific & Standalone Configs
40
+
41
+ | Environment | JavaScript | TypeScript |
42
+ | :--------------- | :-------------------------------------- | :--------- |
43
+ | **Config files** | [`config`](./src/configs/config#readme) | - |
44
+ | **Jest** | [`jest`](./src/configs/jest#readme) | - |
38
45
 
39
46
  ### Framework-specific
40
47
 
@@ -1 +1 @@
1
- "use strict";const e={rules:{"vue/array-bracket-newline":["error"],"vue/array-bracket-spacing":["error","never"],"vue/array-element-newline":["error","consistent"],"vue/arrow-spacing":["error"],"vue/attribute-hyphenation":["error","always"],"vue/attributes-order":["error",{alphabetical:!0,order:["LIST_RENDERING","CONDITIONALS","DEFINITION","RENDER_MODIFIERS","GLOBAL","UNIQUE","SLOT","ATTR_SHORTHAND_BOOL","ATTR_STATIC","ATTR_DYNAMIC","TWO_WAY_BINDING","OTHER_DIRECTIVES","CONTENT","EVENTS"]}],"vue/brace-style":["error","1tbs"],"vue/camelcase":["error",{allow:["^\\$_"]}],"vue/comma-dangle":["error",{arrays:"always-multiline",exports:"always-multiline",functions:"never",imports:"always-multiline",objects:"always-multiline"}],"vue/comma-spacing":["error"],"vue/comma-style":["error","last"],"vue/component-definition-name-casing":["error","PascalCase"],"vue/component-name-in-template-casing":["error","PascalCase",{registeredComponentsOnly:!1,ignores:["component","transition"]}],"vue/component-tags-order":["error",{order:["script[setup]","template","script:not([setup])","style"]}],"vue/dot-location":["error"],"vue/dot-notation":["error"],"vue/eqeqeq":["error"],"vue/func-call-spacing":["error"],"vue/html-closing-bracket-newline":["error",{multiline:"never",singleline:"never"}],"vue/html-end-tags":["error"],"vue/html-indent":["error",4],"vue/html-quotes":["error","double"],"vue/html-self-closing":["error"],"vue/html-closing-bracket-spacing":["error"],"vue/key-spacing":["error"],"vue/keyword-spacing":["error"],"vue/max-attributes-per-line":["error",{multiline:{max:1},singleline:1}],"vue/max-len":["error",120,{ignoreComments:!0,ignoreRegExpLiterals:!0,ignoreTemplateLiterals:!0,ignoreTrailingComments:!0,ignoreUrls:!0}],"vue/multi-word-component-names":"off","vue/multiline-ternary":["error","always-multiline"],"vue/mustache-interpolation-spacing":["error","always"],"vue/no-bare-strings-in-template":["error"],"vue/no-console":["error"],"vue/no-constant-condition":["error"],"vue/no-empty-component-block":["error"],"vue/no-empty-pattern":["error"],"vue/no-extra-parens":["error"],"vue/no-irregular-whitespace":["error"],"vue/no-multi-spaces":["error"],"vue/no-multiple-objects-in-class":["error"],"vue/no-potential-component-option-typo":["error"],"vue/no-reserved-component-names":["error"],"vue/no-restricted-syntax":["error"],"vue/no-spaces-around-equal-signs-in-attribute":["error"],"vue/no-sparse-arrays":["error"],"vue/no-undef-components":["error"],"vue/no-unsupported-features":["error"],"vue/no-unused-properties":["error"],"vue/no-unused-refs":["error"],"vue/no-use-computed-property-like-method":["error"],"vue/no-use-v-if-with-v-for":"error","vue/no-useless-concat":["error"],"vue/no-useless-mustaches":["error"],"vue/no-useless-v-bind":["error"],"vue/no-v-text":["error"],"vue/object-curly-newline":["error",{consistent:!0}],"vue/object-curly-spacing":["error","always"],"vue/object-property-newline":["error",{allowAllPropertiesOnSameLine:!0}],"vue/object-shorthand":["error","always"],"vue/order-in-components":["error",{order:["el","name","parent","functional",["delimiters","comments"],["components","directives","filters"],"extends","mixins","inheritAttrs","model",["props","propsData"],"data","computed","watch","LIFECYCLE_HOOKS","methods",["template","render"],"renderError"]}],"vue/padding-line-between-blocks":["error"],"vue/prefer-separate-static-class":["error"],"vue/prefer-template":["error"],"vue/prefer-true-attribute-shorthand":["error"],"vue/prop-name-casing":["error","camelCase"],"vue/quote-props":["error","as-needed"],"vue/require-default-prop":["error"],"vue/require-prop-type-constructor":"error","vue/require-prop-types":["error"],"@stylistic/indent":"off","vue/script-indent":["error",4,{switchCase:1}],"vue/space-in-parens":["error","never"],"vue/space-infix-ops":["error"],"vue/space-unary-ops":["error"],"vue/template-curly-spacing":["error"],"vue/this-in-template":["error","never"],"vue/v-bind-style":["error","shorthand"],"vue/v-on-function-call":"off","vue/v-on-style":["error","shorthand"],"vue/v-on-event-hyphenation":"off","vue/no-setup-props-destructure":"off","vue/block-tag-newline":["error",{singleline:"always",multiline:"always"}],"vue/require-explicit-emits":["error"],"vue/no-required-prop-with-default":["error"],"vue/no-ref-object-destructure":["error"],"vue/no-template-target-blank":["error"],"vue/define-emits-declaration":["error","type-based"],"vue/define-props-declaration":["error","type-based"]}};module.exports=e;
1
+ "use strict";const e={rules:{"vue/array-bracket-newline":["error"],"vue/array-bracket-spacing":["error","never"],"vue/array-element-newline":["error","consistent"],"vue/arrow-spacing":["error"],"vue/attribute-hyphenation":["error","always"],"vue/attributes-order":["error",{alphabetical:!0,order:["LIST_RENDERING","CONDITIONALS","DEFINITION","RENDER_MODIFIERS","GLOBAL","UNIQUE","SLOT","ATTR_SHORTHAND_BOOL","ATTR_STATIC","ATTR_DYNAMIC","TWO_WAY_BINDING","OTHER_DIRECTIVES","CONTENT","EVENTS"]}],"vue/brace-style":["error","1tbs"],"vue/camelcase":["error",{allow:["^\\$_"]}],"vue/comma-dangle":["error",{arrays:"always-multiline",exports:"always-multiline",functions:"never",imports:"always-multiline",objects:"always-multiline"}],"vue/comma-spacing":["error"],"vue/comma-style":["error","last"],"vue/component-definition-name-casing":["error","PascalCase"],"vue/component-name-in-template-casing":["error","PascalCase",{registeredComponentsOnly:!1,ignores:["component","transition"]}],"vue/component-tags-order":["error",{order:["script[setup]","template","script:not([setup])","style"]}],"vue/dot-location":["error"],"vue/dot-notation":["error"],"vue/eqeqeq":["error"],"vue/func-call-spacing":["error"],"vue/html-closing-bracket-newline":["error",{multiline:"never",singleline:"never"}],"vue/html-end-tags":["error"],"vue/html-indent":["error",4],"vue/html-quotes":["error","double"],"vue/html-self-closing":["error"],"vue/html-closing-bracket-spacing":["error"],"vue/key-spacing":["error"],"vue/keyword-spacing":["error"],"vue/max-attributes-per-line":["error",{multiline:{max:1},singleline:1}],"vue/max-len":["error",120,{ignoreComments:!0,ignoreRegExpLiterals:!0,ignoreTemplateLiterals:!0,ignoreTrailingComments:!0,ignoreUrls:!0}],"vue/multi-word-component-names":"off","vue/multiline-ternary":["error","always-multiline"],"vue/mustache-interpolation-spacing":["error","always"],"vue/no-bare-strings-in-template":["error"],"vue/no-console":["error"],"vue/no-constant-condition":["error"],"vue/no-empty-component-block":["error"],"vue/no-empty-pattern":["error"],"vue/no-extra-parens":["error","all",{allowParensAfterCommentPattern:"@type",enforceForArrowConditionals:!1,nestedBinaryExpressions:!1,returnAssign:!1}],"vue/no-irregular-whitespace":["error"],"vue/no-multi-spaces":["error"],"vue/no-multiple-objects-in-class":["error"],"vue/no-potential-component-option-typo":["error"],"vue/no-reserved-component-names":["error"],"vue/no-restricted-syntax":["error"],"vue/no-spaces-around-equal-signs-in-attribute":["error"],"vue/no-sparse-arrays":["error"],"vue/no-undef-components":["error"],"vue/no-unsupported-features":["error"],"vue/no-unused-properties":["error"],"vue/no-unused-refs":["error"],"vue/no-use-computed-property-like-method":["error"],"vue/no-use-v-if-with-v-for":"error","vue/no-useless-concat":["error"],"vue/no-useless-mustaches":["error"],"vue/no-useless-v-bind":["error"],"vue/no-v-text":["error"],"vue/object-curly-newline":["error",{consistent:!0}],"vue/object-curly-spacing":["error","always"],"vue/object-property-newline":["error",{allowAllPropertiesOnSameLine:!0}],"vue/object-shorthand":["error","always"],"vue/order-in-components":["error",{order:["el","name","parent","functional",["delimiters","comments"],["components","directives","filters"],"extends","mixins","inheritAttrs","model",["props","propsData"],"data","computed","watch","LIFECYCLE_HOOKS","methods",["template","render"],"renderError"]}],"vue/padding-line-between-blocks":["error"],"vue/prefer-separate-static-class":["error"],"vue/prefer-template":["error"],"vue/prefer-true-attribute-shorthand":["error"],"vue/prop-name-casing":["error","camelCase"],"vue/quote-props":["error","as-needed"],"vue/require-default-prop":["error"],"vue/require-prop-type-constructor":"error","vue/require-prop-types":["error"],"@stylistic/indent":"off","vue/script-indent":["error",4,{switchCase:1}],"vue/space-in-parens":["error","never"],"vue/space-infix-ops":["error"],"vue/space-unary-ops":["error"],"vue/template-curly-spacing":["error"],"vue/this-in-template":["error","never"],"vue/v-bind-style":["error","shorthand"],"vue/v-on-function-call":"off","vue/v-on-style":["error","shorthand"],"vue/v-on-event-hyphenation":"off","vue/no-setup-props-destructure":"off","vue/block-tag-newline":["error",{singleline:"always",multiline:"always"}],"vue/require-explicit-emits":["error"],"vue/no-required-prop-with-default":["error"],"vue/no-ref-object-destructure":["error"],"vue/no-template-target-blank":["error"],"vue/define-emits-declaration":["error","type-based"],"vue/define-props-declaration":["error","type-based"],"vue-scoped-css/enforce-style-type":["error",{allows:["scoped","module"]}]}};module.exports=e;
package/dist/rules/vue.js CHANGED
@@ -89,7 +89,12 @@ const e = {
89
89
  "vue/no-constant-condition": ["error"],
90
90
  "vue/no-empty-component-block": ["error"],
91
91
  "vue/no-empty-pattern": ["error"],
92
- "vue/no-extra-parens": ["error"],
92
+ "vue/no-extra-parens": ["error", "all", {
93
+ allowParensAfterCommentPattern: "@type",
94
+ enforceForArrowConditionals: !1,
95
+ nestedBinaryExpressions: !1,
96
+ returnAssign: !1
97
+ }],
93
98
  "vue/no-irregular-whitespace": ["error"],
94
99
  "vue/no-multi-spaces": ["error"],
95
100
  "vue/no-multiple-objects-in-class": ["error"],
@@ -170,7 +175,8 @@ const e = {
170
175
  "vue/no-ref-object-destructure": ["error"],
171
176
  "vue/no-template-target-blank": ["error"],
172
177
  "vue/define-emits-declaration": ["error", "type-based"],
173
- "vue/define-props-declaration": ["error", "type-based"]
178
+ "vue/define-props-declaration": ["error", "type-based"],
179
+ "vue-scoped-css/enforce-style-type": ["error", { allows: ["scoped", "module"] }]
174
180
  }
175
181
  };
176
182
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@useinsider/eslint-config",
3
3
  "type": "module",
4
- "version": "1.6.0",
4
+ "version": "1.7.0",
5
5
  "description": "A collection of ESLint configurations provided by @useinsider, offering support for various environments including Vanilla JS, TypeScript, and framework-specific setups such as Vue 3.",
6
6
  "keywords": [
7
7
  "useinsider",