2.3.1 • Published 10 months ago

@n0bodysec/eslint-config v2.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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

  1. 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
  1. 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.

2.3.1

10 months ago

2.3.0

10 months ago

2.2.0

1 year ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.3

2 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago