10.1.0 • Published 12 months ago

eslint-config-faithlife v10.1.0

Weekly downloads
95
License
MIT
Repository
-
Last release
12 months ago

ESLint rules for Faithlife projects

Installing

yarn add --dev eslint-config-faithlife

Configuring

In your .eslintrc/.eslintrc.json, extend the "faithlife" config:

{
	"extends": ["faithlife"]
}

If you want to opt out of React-specific configuration, you can use base instead:

{
	"extends": ["faithlife/base"]
}

react-jest

If you use Jest and React Testing Library for testing your frontend, extend faithlife/react-jest as well.

{
	"extends": ["faithlife", "faithlife/react-jest"]
}

If you'd like to make sure faithlife/react-jest only applies the rules to your test files, you can use (replacing the files glob as needed):

module.exports = {
	extends: ['faithlife'],
	overrides: [
		Object.assign(
			{
				files: ['*.test.{ts,tsx,js,jsx}'],
			},
			require('eslint-config-faithlife/react-jest')
		),
	],
};

Behavior

This configuration will attempt to use an appropriate set of rules and parser options for your project.

  1. For TypeScript (.ts, and .tsx) files, the @typescript-eslint/parser parser will be used, and TypeScript-specific rules will be loaded.
  2. For JavaScript (.js, and .jsx) files, the default ESLint parser will be used.
10.1.0

12 months ago

10.0.0

2 years ago

10.0.0-next.3

2 years ago

10.0.0-next.4

2 years ago

10.0.0-next.1

2 years ago

10.0.0-next.2

2 years ago

9.1.0

3 years ago

9.0.0

4 years ago

8.5.0

4 years ago

8.4.0

4 years ago

8.3.0

4 years ago

8.2.0

4 years ago

8.1.0

5 years ago

8.0.0

5 years ago

7.0.0

5 years ago

6.1.0

6 years ago

6.0.0

6 years ago

5.0.0

6 years ago

4.11.0

6 years ago

4.10.0

6 years ago

4.9.0

6 years ago

4.8.1

6 years ago

4.8.0

6 years ago

4.7.0

6 years ago

4.6.0

6 years ago

4.5.0

6 years ago

4.4.0

6 years ago

4.3.0

6 years ago

4.2.0

6 years ago

4.1.0

6 years ago

4.0.0

6 years ago

3.1.0

8 years ago

3.0.6

8 years ago

3.0.5

9 years ago

3.0.4

9 years ago

3.0.3

9 years ago

3.0.2

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.0.0

9 years ago

2.0.0-beta3

9 years ago

2.0.0-beta2

9 years ago

2.0.0-beta1

9 years ago

1.0.0

9 years ago

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago