eslint-config-luxjs

Luxbet Eslint shareable config

Usage no npm install needed!

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

README

eslint-config-luxjs

What?

Guidelines for sensible coding. This config is used by ESLint to automatically ensure developers across projects are adhering to a single, coherent JavaScript coding style.

Why?

Why does JavaScript need a style guide?.

How?

Install ESLint and this config

npm install --save-dev eslint eslint-config-luxjs

Add config to .eslintrc (or package.json) in the root of your project

{
    "extends": "luxjs"
}

Optional: Add script to package.json

{
    "devDependencies": {
        "eslint": "*",
        "eslint-config-luxjs": "*"
    },
    "scripts": {
        "lint": "eslint ."
    }
}

Then, on the command line:

$ npm run lint