Feel free to extend it.
Initially made at Gojob, see @gojob/eslint-config.
With the deprecation of TSLint (we'll miss you, buddy), we decided to progressively switch all our linting processes to ESLint.
You can extend our default configuration, in your own ESLint configuration (e.g. .eslintrc):
{
"extends": [
"@vinceops/eslint-config/typescript" // or typescript-react
],
}Assuming you already installed typescript...
yarn add --dev eslint @vinceops/eslint-config prettier
# or
npm install --save-dev eslint @vinceops/eslint-config prettierAt the present time, the ESLint plugin for VSCode has difficulties parsing/fixing TypeScript. Adding the following configuration to VSCode settings (.vscode/settings.json in your project) solves the problem:
{
"eslint.validate": [
"javascript",
"javascriptreact",
{ "language": "typescript", "autoFix": true },
"typescriptreact"
],
"typescript.tsdk": "node_modules/typescript/lib"
}