♻️ Shareable configs
Package | Version | Downloads | Documentation |
---|---|---|---|
📦 @igorkowalczyk/eslint-config |
Documentation | ||
📦 @igorkowalczyk/prettier-config |
Documentation | ||
📝 @igorkowalczyk/renovate-config |
- | Documentation |
Note
📦 - Package
📝 - Configuration file
@igorkowalczyk/prettier-config
📦 📥 Installation
npm install --save-dev @igorkowalczyk/prettier-config
yarn add --dev @igorkowalczyk/prettier-config
pnpm install --save-dev @igorkowalczyk/prettier-config
🔩 Usage
// .prettierrc.js
module.exports = {
...require('@igorkowalczyk/prettier-config'),
};
// prettier.config.js
import prettierConfig from "@igorkowalczyk/prettier-config";
export default {
...prettierConfig,
};
{
"extends": "@igorkowalczyk/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 |
@igorkowalczyk/eslint-config
📦 📥 Installation
npm install --save-dev @igorkowalczyk/eslint-config
yarn add --dev @igorkowalczyk/eslint-config
pnpm install --save-dev @igorkowalczyk/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: ["@igorkowalczyk/eslint-config/legacy"],
};
Flat config:
// eslint.config.js
import eslintConfig from "@igorkowalczyk/eslint-config/flat";
export default [
...eslintConfig
];
⚙️ Rules overview
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-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-ex-assign |
Error | 🚫 Error |
Documentation |
no-extra-boolean-cast |
Error | 🚫 Error |
Documentation |
no-extra-semi |
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-inner-declarations |
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-mixed-spaces-and-tabs |
Error | 🚫 Error |
Documentation |
no-new-symbol |
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 |
Error | 🚫 Error |
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-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 |
prettier/prettier |
Warn | ⚠️ Warning |
External rule |
no-lonely-if |
Error | 🚫 Error |
Documentation |
linebreak-style |
Unix | 🚫 Error |
Documentation |
quotes |
Double | 🚫 Error |
Documentation |
semi |
Always | ⚠️ Warning |
Documentation |
comma-dangle |
Documentation | 🚫 Error |
Documentation |
no-eval |
Error | 🚫 Error |
Documentation |
func-names |
As-needed | 🚫 Error |
Documentation |
camelcase |
Documentation | ⚠️ Warning |
Documentation |
prefer-arrow-callback |
Error | 🚫 Error |
Documentation |
prefer-const |
Error | 🚫 Error |
Documentation |
object-shorthand |
Always | 🚫 Error |
Documentation |
block-spacing |
Error | 🚫 Error |
Documentation |
no-object-constructor |
Error | 🚫 Error |
Documentation |
comma-spacing |
Error | 🚫 Error |
Documentation |
keyword-spacing |
Error | 🚫 Error |
Documentation |
space-infix-ops |
Error | 🚫 Error |
Documentation |
space-unary-ops |
Error | 🚫 Error |
Documentation |
brace-style |
Error | 🚫 Error |
Documentation |
object-curly-spacing |
Always | 🚫 Error |
Documentation |
space-before-function-paren |
Documentation | 🚫 Error |
Documentation |
space-in-parens |
Never | 🚫 Error |
Documentation |
array-bracket-spacing |
Never | 🚫 Error |
Documentation |
template-curly-spacing |
Never | 🚫 Error |
Documentation |
computed-property-spacing |
Never | 🚫 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 |
quote-props |
As-needed | 🚫 Error |
Documentation |
require-await |
Off | 💡 Disabled |
Documentation |
prefer-object-spread |
Error | 🚫 Error |
Documentation |
prefer-destructuring |
Error | 🚫 Error |
Documentation |
array-callback-return |
Error | 🚫 Error |
Documentation |
yoda |
Error | 🚫 Error |
Documentation |
jsx-quotes |
Prefer-double | 💡 Disabled |
Documentation |
unicode-bom |
Never | 🚫 Error |
Documentation |
no-process-env |
Off | 💡 Disabled |
Documentation |
no-process-exit |
Off | 💡 Disabled |
Documentation |
global-require |
Error | 🚫 Error |
Documentation |
@igorkowalczyk/renovate-config
📝 Warning
This is not a package - it is a configuration preset!
🔩 Usage
In your renovate.json
file, add the following:
{
"extends": ["github>igorkowalczyk/shared-configs//packages/renovate-config/index.json"]
}