Package Exports
- @khanhtran47/config
Readme
@khanhtran47/eslint-config
This is my personal ESLint configuration. It is a shareable configuration that can be used in any JavaScript or TypeScript project.
Install
npm install --save-dev @khanhtran47/eslint-configBe sure to install the appropriately versioned
eslintpeer dependency as well.
Usage
Follow the ESLint documentation on shared configurations. See the documentation on ignoring files if you need to ignore anything the config doesn't already ignore by default.
Examples
eslint.config.js
import baseConfig from '@khanhtran47/eslint-config';
/** @type {import("eslint").Linter.Config[]} */
const config = [
...baseConfig,
// overrides here
];
export default config;package.json
{
"scripts": {
...
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",
...
}
}