@noveo/eslint-config-codestyle

Shareable configuration package with code style settings

Usage no npm install needed!

<script type="module">
  import noveoEslintConfigCodestyle from 'https://cdn.skypack.dev/@noveo/eslint-config-codestyle';
</script>

README

@noveo/eslint-config-codestyle

This module add eslint config and pre-commit hook based on AirBnB Style Guid with few differences:

"rules": {
    "indent": ["error", 4],
    "strict": [2, "global"],
    "no-console": "error",
    "require-jsdoc": ["error", {
        "require": {
            "FunctionDeclaration": true,
            "MethodDefinition": true,
            "ClassDeclaration": true,
            "ArrowFunctionExpression": true,
            "FunctionExpression": true
        }
    }],
    "valid-jsdoc": ["error", {
        "requireReturn": false,
        "preferType": {
            "boolean": "Boolean",
            "number": "Number",
            "object": "Object",
            "string": "String"
        }
    }],
    "comma-dangle": ["off", {
        "arrays": "always-multiline",
        "objects": "always-multiline",
        "imports": "always-multiline",
        "exports": "always-multiline",
        "functions": "always-multiline"
    }]
}

Install

npm install @noveo/eslint-config-codestyle --save-dev