2.1.1 • Published 10 months ago

@smda/eslint-config-smda v2.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months 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 @smda/eslint-config-smda --save-dev

Javascript

Extend the config in your .eslintrc.js

Example:

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

Typescript

For a Typescript project extend the /typescript config instead:

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

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': [
		'@smda/eslint-config-smda/react.js',
	],
};
2.1.1

10 months ago

2.1.0

11 months ago

2.0.1

11 months ago

2.0.0

11 months ago

1.0.17

2 years ago

1.0.11

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.10

2 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago