1.0.5 • Published 2 years ago

@thesouschef/eslint-config-ts v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Vanilla TS Eslint Config

npm install -D @thesouschef/eslint-config-ts

Usage

In your eslint config file for vanilla TS projects, extend this library and add the following to your config:

const path = require('path');

...

extends: ["@thesouschef/eslint-config", "@thesouschef/eslint-config-ts"],
parserOptions: {
    tsconfigRootDir: __dirname,
    project: path.resolve(__dirname, 'tsconfig.json'),
},
settings: {
    'import/resolver': {
        typescript: {
            project: path.resolve(__dirname, 'tsconfig.json'),
        },
    },
},

For more reference, see the documentation.

NOTE: We use prettier for formatting, which is run using eslint-plugin-prettier. As such, prettier is a required dependency. It is recommended that you use the prettier plugin for your editor in addition to the eslint plugin and turn off auto-formatting by any other plugin (including eslint).

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago