Skip to content

Commit 4223322

Browse files
author
David Bradshaw
committed
Add TypeScript
1 parent fe5fa06 commit 4223322

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docs/typescript.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## TypeScript
2+
3+
All of the packages in *eslint-config-adjuct* should work with TypeScript. The following is an example config using the AirBnB ruleset with Adjunct and TypeScript-Eslint.
4+
5+
6+
```json
7+
{
8+
"extends": [
9+
"airbnb",
10+
"airbnb/hooks",
11+
"adjunct",
12+
"plugin:@typescript-eslint/recommended",
13+
"plugin:@typescript-eslint/eslint-recommended",
14+
"prettier/@typescript-eslint",
15+
],
16+
"parser": "@typescript-eslint/parser",
17+
"parserOptions": {
18+
"ecmaVersion": 9,
19+
"sourceType": "module"
20+
},
21+
"rules": {
22+
"react/prop-types": 0,
23+
"@typescript-eslint/interface-name-prefix": 0
24+
}
25+
}
26+
```

0 commit comments

Comments
 (0)