eslint-config-protect-me-from-my-stupidity
Advanced tools
Changelog
12.0.1 - 2025-01-07
promise/catch-or-return
rule in the base configuration to allow the use of the finally()
method.Changelog
12.0.0 - 2025-01-07
and/from-writing-stupid-web-applications
) configuration extension.promise/prefer-catch
rule on in the base configuration.vue/slot-name-casing
rule on in the Vue configuration extension, enforcing slot names to be kebab-case.vue/restricted-component-names
rule off in the Vue configuration extension..jsx
files.eslint
version to 9.17.0
.eslint-plugin-promise
version to 7.2.1
.eslint-plugin-vue
version to 9.32.0
.eslint-plugin-n
version to 17.15.1
.@stylistic/eslint-plugin-js
version to 2.12.1
.Changelog
11.1.0 - 2024-11-12
vue/prefer-use-template-ref
rule on in the Vue configuration extension.eslint
version to 9.15.0
.eslint-plugin-vue
version to 9.31.0
.@stylistic/eslint-plugin-js
version to 2.11.0
.Changelog
11.0.0 - 2024-11-22
no-useless-assignment
and promise/spec-only
rules on in the base configuration.n/prefer-node-protocol
rules on in the Node configuration extension.vue/no-deprecated-delete-set
and vue/require-default-export
rules on in the Vue configuration extension.vue/max-props
and vue/max-template-depth
rules off in the Vue configuration extension.eslint
version to 9.13.0
.eslint-plugin-promise
version to 7.1.0
.eslint-plugin-vue
version to 9.29.1
.eslint-plugin-import
version to 2.31.0
.@stylistic/eslint-plugin-js
version to 2.9.0
.eslint-plugin-node
, as it's no longer maintained, with eslint-plugin-n
. The minimum required version is 17.13.2
.line-comment-position
rule with the @stylistic/js/line-comment-position
rule in the base configuration.multiline-comment-style
rule with the @stylistic/js/multiline-comment-style
rule in the base configuration.n/shebang
rule with the n/hashbang
rule in the Node configuration extension.import/no-unresolved
rule off in the base configuration.but/let-my-code-look-stupid
, but/let-my-vue-components-look-stupid
and but/let-my-node-applications-look-stupid
configuration extensions.but/let-me-write-stupid-tests
configuration extension, these rule overrides are now included in the base configuration for all .spec.{js,cjs,mjs}
and .test.{js, cjs, mjs}
files.Changelog
10.1.1 - 2024-05-26
The package repository has moved and it's now reflected in the package metadata; this version contains no functionality changes.
Changelog
10.1.0 - 2024-02-25
vue/enforce-style-attribute
, vue/no-restricted-v-on
and vue/require-explicit-slots
rules off.eslint
version to 8.57.0
.eslint-plugin-vue
version to 9.22.0
.Changelog
10.0.0 - 2024-01-08
vue/no-unused-emit-declarations
rule on, ensuring that all emit declarations are used.vue/v-if-else-key
rule on, ensuring that repeated components rendered within the same conditional scope have a key assigned to them.@stylistic/eslint-plugin-js
is now a required peer dependency. This now powers the stylistic rules previously defined by eslint
.max-depth
rule configuration, increasing the maximum allowed depth to 4
.eslint
version to 8.56.0
.eslint-plugin-import
version to 2.29.1
.eslint-plugin-vue
version to 9.19.2
.Changelog
9.5.1 - 2023-10-08
no-object-constructor
rule on. This replaces the deprecated no-new-object
rule; disallowing the use of the Object
constructor.no-new-object
rule as it is now deprecated.Changelog
9.5.0 - 2023-09-03
vue/max-lines-per-block
and vue/no-use-v-else-with-v-for
rules off.vue/block-order
rule on to enforce the same order enforced by the removed vue/component-tags-order
rule configuration.vue/no-console
rule on, enforcing the same rules as the no-console
rule in template expressions.vue/no-deprecated-model-definition
rule on, disallowing the usage of the deprecated model
component option.vue/no-ref-object-reactivity-loss
rule on to disallow ref usage that will result in lose of reactivity.vue/no-setup-props-reactivity-loss
rule on, disallowing usage of props during component setup that would will result in lose of reactivity.vue/require-macro-variable-name
rule on, enforcing the default macro variable names.vue/require-typed-object-prop
rule on, enforcing type declarations for non-primitive object props.vue/require-typed-ref
rule on to ensure a generic type parameter is provided to ref()
and shallowRef()
when no initial value is provided.no-return-await
rule as it is now deprecated.vue/component-tags-order
, vue/no-setup-props-destructure
and vue/no-ref-object-destructure
rules as they are now deprecated.Changelog
9.4.0 - 2023-06-04
vue/no-root-v-if
rule off.vue/prefer-define-options
rule on to prefer using the defineOptions()
macro instead of the default export. This rule is switched off when using the protect-me-from-my-stupidity/but/let-my-vue-components-look-stupid
configuration.vue/valid-define-options
rule on to ensure the usage of the defineOptions()
macro is correct.eslint-plugin-vue
and eslint-plugin-node
peer dependencies optional.