aboutsummaryrefslogtreecommitdiff
path: root/src/react-typescript.ts
blob: a63614e541b312fe361b9b8d30c838e8b8973dc0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import rJsxA11y from "./rules/jsx-a11y/default.json";
import rReactHooks from "./rules/react-hooks/default.json";
import rDefault from "./rules/react/default.json";

module.exports = {
	"extends": [
		"./typescript",
		"plugin:jsx-a11y/recommended",
		"plugin:react-hooks/recommended",
		"plugin:react/recommended",
	],
	"parserOptions": {
		ecmaFeatures: {
			jsx: true,
		},
	},
	"plugins": [
		"jsx-a11y",
		"react",
		"react-hooks",
	],
	"rules": {
		...rDefault,
		...rJsxA11y,
		...rReactHooks,
	},
};