@nosaid/eslint-config-for-typescript

0.0.7 • Public • Published

@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"
    }
}

Package Sidebar

Install

npm i @nosaid/eslint-config-for-typescript

Weekly Downloads

8

Version

0.0.7

License

MIT

Unpacked Size

3.42 kB

Total Files

4

Last publish

Collaborators

  • shalldie