Skip to content

blackzacktech/shared-configs

Repository files navigation

Shared Configs

♻️ Shareable configs

Package Version Downloads Documentation
📦 @blackzacktech/eslint-config Documentation
📦 @blackzacktech/prettier-config Documentation
📝 @blackzacktech/renovate-config - Documentation

Note

📦 - Package
📝 - Configuration file


📥 Installation

npm install --save-dev @blackzacktech/prettier-config
yarn add --dev @blackzacktech/prettier-config
pnpm install --save-dev @blackzacktech/prettier-config

🔩 Usage

// .prettierrc.js
module.exports = {
  ...require('@blackzacktech/prettier-config'),
};
// prettier.config.js
import prettierConfig from "@blackzacktech/prettier-config";

export default {
  ...prettierConfig,
};
{
  "extends": "@blackzacktech/prettier-config"
}

⚙️ Rules overview

Rule Style Documentation
arrowParens always Documentation
bracketSpacing true Documentation
embeddedLanguageFormatting auto Documentation
htmlWhitespaceSensitivity css Documentation
jsxSingleQuote false Documentation
printWidth 200000 Documentation
proseWrap preserve Documentation
quoteProps as-needed Documentation
requirePragma false Documentation
semi true Documentation
singleQuote false Documentation
tabWidth 1 Documentation
trailingComma es5 Documentation
useTabs false Documentation

📥 Installation

npm install --save-dev @blackzacktech/eslint-config
yarn add --dev @blackzacktech/eslint-config
pnpm install --save-dev @blackzacktech/eslint-config

🔩 Usage

Important

Starting from version 2.0.0 this package now includes both legacy and flat configs. This is breaking change, so please update your config files accordingly.

Legacy config:

// .eslintrc.js
module.exports = {
 extends: ["@blackzacktech/eslint-config/legacy"],
};

Flat config:

// eslint.config.js
import eslintConfig from "@blackzacktech/eslint-config/flat";

export default [
 ...eslintConfig
];
Rule Style Type Documentation
constructor-super Error 🚫 Error Documentation
for-direction Error 🚫 Error Documentation
getter-return Error 🚫 Error Documentation
no-async-promise-executor Error 🚫 Error Documentation
no-case-declarations Error 🚫 Error Documentation
no-class-assign Error 🚫 Error Documentation
no-compare-neg-zero Error 🚫 Error Documentation
no-cond-assign Error 🚫 Error Documentation
no-const-assign Error 🚫 Error Documentation
no-constant-binary-expression Error 🚫 Error Documentation
no-constant-condition Error 🚫 Error Documentation
no-control-regex Error 🚫 Error Documentation
no-debugger Error 🚫 Error Documentation
no-delete-var Error 🚫 Error Documentation
no-dupe-args Error 🚫 Error Documentation
no-dupe-class-members Error 🚫 Error Documentation
no-dupe-else-if Error 🚫 Error Documentation
no-dupe-keys Error 🚫 Error Documentation
no-duplicate-case Error 🚫 Error Documentation
no-empty Error 🚫 Error Documentation
no-empty-character-class Error 🚫 Error Documentation
no-empty-pattern Error 🚫 Error Documentation
no-empty-static-block Error 🚫 Error Documentation
no-ex-assign Error 🚫 Error Documentation
no-extra-boolean-cast Error 🚫 Error Documentation
no-fallthrough Error 🚫 Error Documentation
no-func-assign Error 🚫 Error Documentation
no-global-assign Error 🚫 Error Documentation
no-import-assign Error 🚫 Error Documentation
no-invalid-regexp Error 🚫 Error Documentation
no-irregular-whitespace Error 🚫 Error Documentation
no-loss-of-precision Error 🚫 Error Documentation
no-misleading-character-class Error 🚫 Error Documentation
no-new-native-nonconstructor Error 🚫 Error Documentation
no-nonoctal-decimal-escape Error 🚫 Error Documentation
no-obj-calls Error 🚫 Error Documentation
no-octal Error 🚫 Error Documentation
no-prototype-builtins Error 🚫 Error Documentation
no-redeclare Error 🚫 Error Documentation
no-regex-spaces Error 🚫 Error Documentation
no-self-assign Error 🚫 Error Documentation
no-setter-return Error 🚫 Error Documentation
no-shadow-restricted-names Error 🚫 Error Documentation
no-sparse-arrays Error 🚫 Error Documentation
no-this-before-super Error 🚫 Error Documentation
no-undef Error 🚫 Error Documentation
no-unexpected-multiline 0 undefined undefined Documentation
no-unreachable Error 🚫 Error Documentation
no-unsafe-finally Error 🚫 Error Documentation
no-unsafe-negation Error 🚫 Error Documentation
no-unsafe-optional-chaining Error 🚫 Error Documentation
no-unused-labels Error 🚫 Error Documentation
no-unused-private-class-members Error 🚫 Error Documentation
no-unused-vars Documentation ⚠️ Warning Documentation
no-useless-backreference Error 🚫 Error Documentation
no-useless-catch Error 🚫 Error Documentation
no-useless-escape Error 🚫 Error Documentation
no-with Error 🚫 Error Documentation
require-yield Error 🚫 Error Documentation
use-isnan Error 🚫 Error Documentation
valid-typeof Documentation 🚫 Error Documentation
import/order - ⚠️ Warning External rule
@stylistic/linebreak-style Unix 🚫 Error External rule
@stylistic/quotes Double 🚫 Error External rule
@stylistic/semi Always ⚠️ Warning External rule
@stylistic/comma-dangle - 🚫 Error External rule
@stylistic/block-spacing Error 🚫 Error External rule
@stylistic/comma-spacing Error 🚫 Error External rule
@stylistic/keyword-spacing Error 🚫 Error External rule
@stylistic/space-infix-ops Error 🚫 Error External rule
@stylistic/space-unary-ops Error 🚫 Error External rule
@stylistic/brace-style Error 🚫 Error External rule
@stylistic/object-curly-spacing Always 🚫 Error External rule
@stylistic/space-before-function-paren - 🚫 Error External rule
@stylistic/space-in-parens Never 🚫 Error External rule
@stylistic/array-bracket-spacing Never 🚫 Error External rule
@stylistic/template-curly-spacing Never 🚫 Error External rule
@stylistic/computed-property-spacing Never 🚫 Error External rule
@stylistic/quote-props As-needed 🚫 Error External rule
@stylistic/no-extra-semi Error 🚫 Error External rule
@stylistic/jsx-quotes Prefer-double 🚫 Error External rule
no-lonely-if Error 🚫 Error Documentation
no-object-constructor Error 🚫 Error Documentation
no-use-before-define Documentation 🚫 Error Documentation
no-label-var Error 🚫 Error Documentation
no-undefined Off 💡 Disabled Documentation
complexity 50 ⚠️ Warning Documentation
no-alert Warn ⚠️ Warning Documentation
require-await Error 🚫 Error Documentation
prefer-object-spread Error 🚫 Error Documentation
prefer-destructuring Error 🚫 Error Documentation
array-callback-return Error 🚫 Error Documentation
yoda Error 🚫 Error Documentation
unicode-bom Never 🚫 Error Documentation
no-process-env Off 💡 Disabled Documentation
no-eval Error 🚫 Error Documentation
func-names As-needed 🚫 Error Documentation
camelcase Documentation ⚠️ Warning Documentation
prefer-const Error 🚫 Error Documentation
object-shorthand Always 🚫 Error Documentation
no-process-exit Off 💡 Disabled Documentation
global-require Error 🚫 Error Documentation
curly 0 undefined undefined Documentation
@typescript-eslint/lines-around-comment 0 undefined undefined External rule
@typescript-eslint/quotes 0 undefined undefined External rule
babel/quotes 0 undefined undefined External rule
unicorn/template-indent 0 undefined undefined External rule
vue/html-self-closing 0 undefined undefined External rule
vue/max-len 0 undefined undefined External rule
@babel/object-curly-spacing Off 💡 Disabled External rule
@babel/semi Off 💡 Disabled External rule
@typescript-eslint/block-spacing Off 💡 Disabled External rule
@typescript-eslint/brace-style Off 💡 Disabled External rule
@typescript-eslint/comma-dangle Off 💡 Disabled External rule
@typescript-eslint/comma-spacing Off 💡 Disabled External rule
@typescript-eslint/func-call-spacing Off 💡 Disabled External rule
@typescript-eslint/indent Off 💡 Disabled External rule
@typescript-eslint/key-spacing Off 💡 Disabled External rule
@typescript-eslint/keyword-spacing Off 💡 Disabled External rule
@typescript-eslint/member-delimiter-style Off 💡 Disabled External rule
@typescript-eslint/no-extra-parens Off 💡 Disabled External rule
@typescript-eslint/no-extra-semi Off 💡 Disabled External rule
@typescript-eslint/object-curly-spacing Off 💡 Disabled External rule
@typescript-eslint/semi Off 💡 Disabled External rule
@typescript-eslint/space-before-blocks Off 💡 Disabled External rule
@typescript-eslint/space-before-function-paren Off 💡 Disabled External rule
@typescript-eslint/space-infix-ops Off 💡 Disabled External rule
@typescript-eslint/type-annotation-spacing Off 💡 Disabled External rule
babel/object-curly-spacing Off 💡 Disabled External rule
babel/semi Off 💡 Disabled External rule
flowtype/boolean-style Off 💡 Disabled External rule
flowtype/delimiter-dangle Off 💡 Disabled External rule
flowtype/generic-spacing Off 💡 Disabled External rule
flowtype/object-type-curly-spacing Off 💡 Disabled External rule
flowtype/object-type-delimiter Off 💡 Disabled External rule
flowtype/quotes Off 💡 Disabled External rule
flowtype/semi Off 💡 Disabled External rule
flowtype/space-after-type-colon Off 💡 Disabled External rule
flowtype/space-before-generic-bracket Off 💡 Disabled External rule
flowtype/space-before-type-colon Off 💡 Disabled External rule
flowtype/union-intersection-spacing Off 💡 Disabled External rule
react/jsx-child-element-spacing Off 💡 Disabled External rule
react/jsx-closing-bracket-location Off 💡 Disabled External rule
react/jsx-closing-tag-location Off 💡 Disabled External rule
react/jsx-curly-newline Off 💡 Disabled External rule
react/jsx-curly-spacing Off 💡 Disabled External rule
react/jsx-equals-spacing Off 💡 Disabled External rule
react/jsx-first-prop-new-line Off 💡 Disabled External rule
react/jsx-indent Off 💡 Disabled External rule
react/jsx-indent-props Off 💡 Disabled External rule
react/jsx-max-props-per-line Off 💡 Disabled External rule
react/jsx-newline Off 💡 Disabled External rule
react/jsx-one-expression-per-line Off 💡 Disabled External rule
react/jsx-props-no-multi-spaces Off 💡 Disabled External rule
react/jsx-tag-spacing Off 💡 Disabled External rule
react/jsx-wrap-multilines Off 💡 Disabled External rule
standard/array-bracket-even-spacing Off 💡 Disabled External rule
standard/computed-property-even-spacing Off 💡 Disabled External rule
standard/object-curly-even-spacing Off 💡 Disabled External rule
unicorn/empty-brace-spaces Off 💡 Disabled External rule
unicorn/no-nested-ternary Off 💡 Disabled External rule
unicorn/number-literal-case Off 💡 Disabled External rule
vue/array-bracket-newline Off 💡 Disabled External rule
vue/array-bracket-spacing Off 💡 Disabled External rule
vue/array-element-newline Off 💡 Disabled External rule
vue/arrow-spacing Off 💡 Disabled External rule
vue/block-spacing Off 💡 Disabled External rule
vue/block-tag-newline Off 💡 Disabled External rule
vue/brace-style Off 💡 Disabled External rule
vue/comma-dangle Off 💡 Disabled External rule
vue/comma-spacing Off 💡 Disabled External rule
vue/comma-style Off 💡 Disabled External rule
vue/dot-location Off 💡 Disabled External rule
vue/func-call-spacing Off 💡 Disabled External rule
vue/html-closing-bracket-newline Off 💡 Disabled External rule
vue/html-closing-bracket-spacing Off 💡 Disabled External rule
vue/html-end-tags Off 💡 Disabled External rule
vue/html-indent Off 💡 Disabled External rule
vue/html-quotes Off 💡 Disabled External rule
vue/key-spacing Off 💡 Disabled External rule
vue/keyword-spacing Off 💡 Disabled External rule
vue/max-attributes-per-line Off 💡 Disabled External rule
vue/multiline-html-element-content-newline Off 💡 Disabled External rule
vue/multiline-ternary Off 💡 Disabled External rule
vue/mustache-interpolation-spacing Off 💡 Disabled External rule
vue/no-extra-parens Off 💡 Disabled External rule
vue/no-multi-spaces Off 💡 Disabled External rule
vue/no-spaces-around-equal-signs-in-attribute Off 💡 Disabled External rule
vue/object-curly-newline Off 💡 Disabled External rule
vue/object-curly-spacing Off 💡 Disabled External rule
vue/object-property-newline Off 💡 Disabled External rule
vue/operator-linebreak Off 💡 Disabled External rule
vue/quote-props Off 💡 Disabled External rule
vue/script-indent Off 💡 Disabled External rule
vue/singleline-html-element-content-newline Off 💡 Disabled External rule
vue/space-in-parens Off 💡 Disabled External rule
vue/space-infix-ops Off 💡 Disabled External rule
vue/space-unary-ops Off 💡 Disabled External rule
vue/template-curly-spacing Off 💡 Disabled External rule
space-unary-word-ops Off 💡 Disabled Documentation
generator-star Off 💡 Disabled Documentation
no-comma-dangle Off 💡 Disabled Documentation
no-reserved-keys Off 💡 Disabled Documentation
no-space-before-semi Off 💡 Disabled Documentation
no-wrap-func Off 💡 Disabled Documentation
space-after-function-name Off 💡 Disabled Documentation
space-before-function-parentheses Off 💡 Disabled Documentation
space-in-brackets Off 💡 Disabled Documentation
no-arrow-condition Off 💡 Disabled Documentation
space-after-keywords Off 💡 Disabled Documentation
space-before-keywords Off 💡 Disabled Documentation
space-return-throw-case Off 💡 Disabled Documentation
no-spaced-func Off 💡 Disabled Documentation
indent-legacy Off 💡 Disabled Documentation
array-bracket-newline Off 💡 Disabled Documentation
array-bracket-spacing Off 💡 Disabled Documentation
array-element-newline Off 💡 Disabled Documentation
arrow-parens Off 💡 Disabled Documentation
arrow-spacing Off 💡 Disabled Documentation
block-spacing Off 💡 Disabled Documentation
brace-style Off 💡 Disabled Documentation
comma-dangle Off 💡 Disabled Documentation
comma-spacing Off 💡 Disabled Documentation
comma-style Off 💡 Disabled Documentation
computed-property-spacing Off 💡 Disabled Documentation
dot-location Off 💡 Disabled Documentation
eol-last Off 💡 Disabled Documentation
func-call-spacing Off 💡 Disabled Documentation
function-call-argument-newline Off 💡 Disabled Documentation
function-paren-newline Off 💡 Disabled Documentation
generator-star-spacing Off 💡 Disabled Documentation
implicit-arrow-linebreak Off 💡 Disabled Documentation
indent Off 💡 Disabled Documentation
jsx-quotes Off 💡 Disabled Documentation
key-spacing Off 💡 Disabled Documentation
keyword-spacing Off 💡 Disabled Documentation
linebreak-style Off 💡 Disabled Documentation
lines-around-comment 0 undefined undefined Documentation
max-len 0 undefined undefined Documentation
max-statements-per-line Off 💡 Disabled Documentation
multiline-ternary Off 💡 Disabled Documentation
new-parens Off 💡 Disabled Documentation
newline-per-chained-call Off 💡 Disabled Documentation
no-confusing-arrow 0 undefined undefined Documentation
no-extra-parens Off 💡 Disabled Documentation
no-extra-semi Off 💡 Disabled Documentation
no-floating-decimal Off 💡 Disabled Documentation
no-mixed-operators 0 undefined undefined Documentation
no-mixed-spaces-and-tabs Off 💡 Disabled Documentation
no-multi-spaces Off 💡 Disabled Documentation
no-multiple-empty-lines Off 💡 Disabled Documentation
no-tabs 0 undefined undefined Documentation
no-trailing-spaces Off 💡 Disabled Documentation
no-whitespace-before-property Off 💡 Disabled Documentation
nonblock-statement-body-position Off 💡 Disabled Documentation
object-curly-newline Off 💡 Disabled Documentation
object-curly-spacing Off 💡 Disabled Documentation
object-property-newline Off 💡 Disabled Documentation
one-var-declaration-per-line Off 💡 Disabled Documentation
operator-linebreak Off 💡 Disabled Documentation
padded-blocks Off 💡 Disabled Documentation
quote-props Off 💡 Disabled Documentation
quotes 0 undefined undefined Documentation
rest-spread-spacing Off 💡 Disabled Documentation
semi Off 💡 Disabled Documentation
semi-spacing Off 💡 Disabled Documentation
semi-style Off 💡 Disabled Documentation
space-before-blocks Off 💡 Disabled Documentation
space-before-function-paren Off 💡 Disabled Documentation
space-in-parens Off 💡 Disabled Documentation
space-infix-ops Off 💡 Disabled Documentation
space-unary-ops Off 💡 Disabled Documentation
switch-colon-spacing Off 💡 Disabled Documentation
template-curly-spacing Off 💡 Disabled Documentation
template-tag-spacing Off 💡 Disabled Documentation
wrap-iife Off 💡 Disabled Documentation
wrap-regex Off 💡 Disabled Documentation
yield-star-spacing Off 💡 Disabled Documentation
react/jsx-space-before-closing Off 💡 Disabled External rule
prettier/prettier Error 🚫 Error External rule
arrow-body-style Off 💡 Disabled Documentation
prefer-arrow-callback Off 💡 Disabled Documentation

Warning

This is not a package - it is a configuration preset!

🔩 Usage

In your renovate.json file, add the following:

{
 "extends": ["github>blackzacktech/shared-configs//packages/renovate-config/index.json"]
}

About

☔ My sharable ESlint and Prettier configs

Resources

License

Stars

Watchers

Forks

Packages

No packages published