eslint-config-protect-me-from-my-stupidity
Advanced tools
Changelog
7.2.0 - 2021-05-15
Changelog
7.1.2 - 2021-05-11
node/no-unsupported-features/es-builtins
, node/no-unsupported-features/es-syntax
and node/no-unsupported-features/node-builtins
rules off.Changelog
7.1.1 - 2021-05-11
.js
extension are not treated as ES modules.Changelog
7.1.0 - 2021-05-11
.cjs
extension are not treated as ES modules.Changelog
7.0.0 - 2021-05-08
no-unsafe-optional-chaining
rule on to prohibit the use of optional chaining where undefined
is not allowed, this includes arithmetic operations.vue/no-unused-refs
rule on to ensure all defined refs are utilised.vue/no-invalid-model-keys
rule on to ensure component model
definitions are correct.vue/valid-next-tick
and vue/next-tick-style
rules on to ensure correct vm.$nextTick
and Vue.nextTick
usage, this includes prohibiting the use of the callback style in favour of the promise style.vue/html-button-has-type
on, prohibiting buttons from not having an explicit type.vue/no-restricted-block
, vue/no-restricted-call-after-await
, vue/no-restricted-custom-event
and vue/no-restricted-props
rules off.vue/new-line-between-multi-line-property
and vue/v-on-event-hyphenation
style rules on. They are switched off when using the protect-me-from-my-stupidity/but/let-my-vue-components-look-stupid
configuration.eslint
version to 7.26.0
.eslint-plugin-promise
version to 5.1.0
.eslint-plugin-vue
version to 7.9.0
.Changelog
6.0.0 - 2020-11-29
eslint-plugin-node
as a new optional plugin dependency.protect-me-from-my-stupidity/and/from-writing-stupid-node-applications
and protect-me-from-my-stupidity/but/let-my-node-applications-look-stupid
.no-nonoctal-decimal-escape
rule on to prohibit the use of non-octal decimal escape sequences.12
(2021).eslint
version to 7.12.1
.eslint-plugin-import
version to 2.22.1
.eslint-plugin-promise
version to 4.2.1
.eslint-plugin-vue
version to 7.1.0
.Changelog
5.1.0 - 2020-01-28
protect-me-from-my-stupidity/and/from-writing-stupid-vue-components
configuration.Changelog
5.0.0 - 2020-01-25
default-case
rule on to prohibit switch
statements without a default
clause.default-param-last
rule on to enforce that defaults are only defined for tail parameters.grouped-accessor-pairs
rule on to enforce that getter/setter pairs are defined adjacently with the getter defined first.no-constructor-return
rule to to prohibit return
statements in constructors.no-dupe-else-if
rule on to prohibit duplicate conditions in if-else-if
chains.no-dupe-keys
rule on to prohibit duplicate keys in object definitions.no-import-assign
rule on to prohibit import bindings being assigned.no-setter-return
rule on to prohibit setters from returning a value.no-useless-computed-key
rule on to prohibit pointless computed keys.no-useless-constructor
rule on to prohibit constructors that do nothing.prefer-exponentiation-operator
rule to enforce the use of the **
operator instead of Math.pow()
.prefer-regex-literals
rule on to prohibit the use of the RegExp
constructor for non-dynamic regular expressions.protect-me-from-my-stupidity/and/from-writing-stupid-vue-components
and protect-me-from-my-stupidity/but/let-my-vue-components-look-stupid
.spaced-comment
, padded-blocks
, line-comment-position
, max-classes-per-file
, prefer-object-spread
, import/group-exports
and promise/no-callback-in-promise
rules off in the protect-me-from-my-stupidity
configuration.11
(2020).protect-me-from-my-stupidity/but-let-me-write-stupid-tests
configuration to protect-me-from-my-stupidity/but/let-me-write-stupid-tests
.protect-me-from-my-stupidity/but-let-my-code-look-stupid
configuration to protect-me-from-my-stupidity/but/let-my-code-look-stupid
.arrow-spacing
and dot-location
rules off in the protect-me-from-my-stupidity/but/let-my-code-look-stupid
configuration.valid-jsdoc
, no-catch-shadow
and require-jsdoc
deprecated rules.Changelog
4.0.0 - 2019-09-02
no-useless-catch
rule on to prohibit catch blocks that just rethrow the error.prefer-named-capture-group
, function-call-argument-newline
and import/no-unused-modules
rules off.max-len
rule off.max-nested-callbacks
rule off in the protect-me-from-my-stupidity/but-let-me-write-stupid-tests
configuration.Changelog
3.2.0 - 2019-04-27
array-element-newline
rule to just enforce consistency.