Skip to content

Commit 50cea91

Browse files
authored
Merge pull request #6 from twilio-internal/linting
add linting
2 parents 92f4168 + 33b0011 commit 50cea91

File tree

12 files changed

+3627
-661
lines changed

12 files changed

+3627
-661
lines changed

.eslintrc.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"$schema": "https://json.schemastore.org/eslintrc.json",
3+
"extends": [
4+
"airbnb-base",
5+
"airbnb-typescript/base",
6+
"plugin:prettier/recommended"
7+
],
8+
"plugins": ["prettier", "unused-imports"],
9+
"parserOptions": {
10+
"project": "./tsconfig.json"
11+
},
12+
"rules": {
13+
"prettier/prettier": [
14+
"error",
15+
{
16+
"singleQuote": true,
17+
"tabWidth": 2
18+
}
19+
],
20+
"no-plusplus": "off",
21+
"import/extensions": "off",
22+
"no-restricted-syntax": "off"
23+
}
24+
}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
# Dependencies
55
node_modules/
6-
package-lock.json
76

87
# IDE files
98
.vscode/

.prettierrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": false,
4+
"plugins": ["@ianvs/prettier-plugin-sort-imports"],
5+
"importOrder": [
6+
"<BUILT_IN_MODULES>", "", "<THIRD_PARTY_MODULES>", "",
7+
"^@app/(.*)$",
8+
"",
9+
"^[./]"
10+
],
11+
"importOrderParserPlugins": ["typescript", "jsx", "decorators-legacy"],
12+
"importOrderTypeScriptVersion": "5.0.0",
13+
"singleQuote": true
14+
}

0 commit comments

Comments
 (0)