eslint-config-berkekaragoz-suggestions

0.0.4 • Public • Published

Install:

  • NPM: npm i -D eslint-config-berkekaragoz-suggestions
  • Yarn: yarn add -D eslint-config-berkekaragoz-suggestions
  • PNPM: pnpm i -D eslint-config-berkekaragoz-suggestions

eslint-config-berkekaragoz-suggestions

ESLint suggestions configuration aimed to have balanced aspects. A part of eslint-config-berkekaragoz.

Wait for version 1.

Usage

extends:
  - berkekaragoz-suggestions

VSCode Settings

{
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}

Contents:

{
  rules: {
    curly: ["warn", "multi"],
    eqeqeq: "error",
    "arrow-body-style": ["warn", "as-needed"],
    "no-empty": ["warn", { allowEmptyCatch: false }],
    "no-else-return": "warn",
    "no-restricted-syntax": [
      "warn",
      {
        selector: "FunctionExpression",
        message:
          "Function expressions are not allowed, use the arrow notation.",
      },
    ],
    "no-return-await": "warn",
    "prefer-arrow-callback": "warn",
    "sort-imports": "warn",
    "spaced-comment": [
      "warn",
      "always",
      { line: { exceptions: ["/"] }, block: { exceptions: ["*"] } },
    ],
    yoda: "warn",
  },
};

Related:

Readme

Keywords

Package Sidebar

Install

npm i eslint-config-berkekaragoz-suggestions

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

4.19 kB

Total Files

4

Last publish

Collaborators

  • berkekaragoz