eslint-config-niksydeprecated

ESLint config for my projects.

Usage no npm install needed!

<script type="module">
  import eslintConfigNiksy from 'https://cdn.skypack.dev/eslint-config-niksy';
</script>

README

eslint-config-niksy

Build Status

ESLint config for my projects.

Install

npm install eslint@7 --save-dev && npx install-peerdeps eslint-config-niksy --dev

If you’re using npm <5, install this package and each peer dependancy manually or use install-peerdeps CLI.

Usage

Add this config to your .eslintrc:

{
    "extends": [
        "niksy"
    ]
}

If you’re using presets, it’s highly recommended to apply default preset:

{
    "extends": [
        "niksy",
        "niksy/other-preset"
    ]
}

Presets

In addition to default preset, there are also specific presets. You can apply multiple presets with ESLint extends option.

Browser

Browser specific rules.

{
    "extends": [
        "niksy/browser"
    ]
}

Next

Features usually available in next major Node.js version or latest proposals.

{
    "extends": [
        "niksy/next"
    ]
}

Testing

Rules for testing frameworks (e.g. Mocha).

{
    "extends": [
        "niksy/tests"
    ]
}

React

React specific rules.

{
    "extends": [
        "niksy/jsx", // For JSX rules
        "niksy/react"
    ]
}

JSX

JSX specific rules.

{
    "extends": [
        "niksy/jsx"
    ]
}

Vue

Vue specific rules.

{
    "extends": [
        "niksy/jsx", // If you use JSX
        "niksy/vue"
    ]
}

TypeScript

TypeScript specific rules.

{
    "extends": [
        "niksy/typescript"
    ]
}

License

MIT © Ivan Nikolić