@nosaid/eslint-config-for-typescript

Easy to lint for typescript

Usage no npm install needed!

<script type="module">
  import nosaidEslintConfigForTypescript from 'https://cdn.skypack.dev/@nosaid/eslint-config-for-typescript';
</script>

README

@nosaid/eslint-config-for-typescript

Easy to lint, for typescript

Installation

npm install @nosaid/eslint-config-for-typescript --save-dev

Usage

& vim .eslintrc.js
module.exports = {
    extends: '@nosaid/eslint-config-for-typescript',
    rules: {
        ...
    }
};

& vim .prettierrc
{
    "singleQuote": true,
    "trailingComma": "none",
    "tabWidth": 4,
    "endOfLine": "auto",
    "printWidth": 120,
    "bracketSpacing": true,
    "arrowParens": "avoid"
}
& vim package.json
{
    "scripts": {
        ...,
        "lint": "eslint --ext .js,.ts,.vue .",
        "fix": "eslint --fix --ext .js,.ts,.vue .",
        "format": "prettier --write \"**/*.@(ts|js|vue)\" --ignore-path .gitignore"
    }
}