10.1.0 • Published 1 year ago

@joeao/eslint-config-joe v10.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

eslint config

Setup

Remove existing eslint setups first:

npm remove @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-prettier eslint-config-standard eslint-plugin-prettier prettier eslint-config-standard-react eslint-plugin-react eslint-plugin-react-hooks

Install this (will also install eslint as a dependency);

npm install @joeao/eslint-config-joe --save-dev

Javascript

Extend the config in your .eslintrc.js

Example:

module.exports = {
	'root': true,
	'extends': [
		'@joeao/eslint-config-joe',
	],
};

Typescript

For a Typescript project extend the /typescript config instead:

module.exports = {
	'root': true,
	'extends': [
		'@joeao/eslint-config-joe/typescript.mjs',
	],
};

React

For a React project you need to install some additional plugins:

npm install eslint-plugin-react eslint-plugin-react-hooks --save-dev

Then extend the /react config instead:

module.exports = {
	'root': true,
	'extends': [
		'@joeao/eslint-config-joe/react.mjs',
	],
};
10.1.0

1 year ago

8.1.0

2 years ago

8.0.0

2 years ago

8.3.0

2 years ago

10.0.0

2 years ago

8.2.0

2 years ago

10.0.1

2 years ago

9.1.0

2 years ago

9.0.0

2 years ago

7.0.0

2 years ago

6.2.1

2 years ago

6.2.0

2 years ago

6.1.0

2 years ago

6.0.0

2 years ago

5.0.2

2 years ago

5.0.1

2 years ago

5.0.0

2 years ago

4.0.2

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago