2.3.1 • Published 10 months ago
@n0bodysec/eslint-config v2.3.1
eslint-config-n0bodysec
This the base ESLint configuration I use in personal JavaScript/TypeScript projects.
!IMPORTANT Due to the partial upgrade to ESLint v9, this config only works for TypeScript at this moment. Sorry about that.
🚀 Usage
- Install dependencies
npm install --save-dev eslint eslint-config-airbnb-base
# TypeScript Only!
npm install --save-dev https://github.dev/claabs/eslint-config-airbnb-typescript-x.git eslint-import-resolver-typescript
- Install the package:
npm install -D @n0bodysec/eslint-config
Example config
// eslint.config.mjs
import n0bodysec from '@n0bodysec/eslint-config';
import airbnbTs from 'eslint-config-airbnb-typescript-x/base';
import tseslint from 'typescript-eslint';
export default tseslint.config(
...airbnbTs,
...n0bodysec,
...tseslint.configs.recommendedTypeChecked,
...tseslint.configs.stylisticTypeChecked,
{
ignores: ['node_modules', 'dist'],
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
);
📝 Changelog
You can read the commits.
📜 License
Licensed under MIT License.