Very minimal eslint config for JavaScript and TypeScript Node projects.
Just install and use as thus:
Intall the package as a dev dependency:
yarn add --dev @akhilome/eslint-config
Create an ESLint config file in the root of your project:
echo 'extends: "@akhilome/eslint-config"' > .eslintrc.yml
Ensure the package's required peer dependencies -
eslint >= 8.0.0
,prettier >= 2.0.0
are installed.
Intall the package as a dev dependency:
yarn add --dev @akhilome/eslint-config
Create an ESLint config file in the root of your project:
echo 'extends: "@akhilome/eslint-config/ts"' > .eslintrc.yml
Create [if not exists] a tsconfig.eslint.json
file with the following content:
{
"extends": "./tsconfig.json",
"include": ["./*.ts", "src", "test", "tests"],
"exclude": [""]
}
Ensure the package's required peer dependencies -
eslint >= 8.0.0
,prettier >= 2.0.0
,typescript >= 4.0.0
are installed.