@vic1707/eslint-config

6.0.2 • Public • Published

Eslint config

to use this package install it with

npm install --save-dev @vic1707/eslint-config eslint

and create an .eslintrc.js file with the following content

module.exports = {
    root: true,
    extends: ['@vic1707'],
    parserOptions: {
        project: './tsconfig.json',
        tsconfigRootDir: __dirname,
    },
};

If you're using typescript you'll want to add some extra rules to your tsconfig.json file

{
    // existing config
    "include": [".eslintrc.js" /* existing source dirs*/]
}

Here are the scripts I use to lint my code:

{
    "lint": "eslint src --ext .ts,.tsx",
    "lint:fix": "eslint src --ext .ts,.tsx --fix"
}

Original repo can be found here: https://github.com/vic1707/devconfig

Readme

Keywords

none

Package Sidebar

Install

npm i @vic1707/eslint-config

Weekly Downloads

3

Version

6.0.2

License

MIT

Unpacked Size

11 kB

Total Files

9

Last publish

Collaborators

  • vic1707