Skip to content

Commit 2a544f6

Browse files
committed
Update eslint to allow long comment & update tsConfig to avoid duplicate transpilation
1 parent b360bcc commit 2a544f6

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.eslintrc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"extends": [
3-
"airbnb",
3+
"airbnb",
44
"plugin:jest/recommended",
55
"plugin:@typescript-eslint/eslint-recommended",
6-
"plugin:@typescript-eslint/recommended"],
6+
"plugin:@typescript-eslint/recommended"
7+
],
78
"root": true,
89
"plugins": ["jest", "react", "react-hooks", "@typescript-eslint"],
910
"rules": {
@@ -13,7 +14,8 @@
1314
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
1415
"react-hooks/exhaustive-deps": "warn", // Checks effect dependencies
1516
"react/jsx-filename-extension": [0],
16-
"linebreak-style": "off"
17+
"linebreak-style": "off",
18+
"max-len": [{ "ignoreComments": true }]
1719
},
1820
"env": {
1921
"es6": true,
@@ -33,4 +35,4 @@
3335
"ecmaVersion": 2018,
3436
"sourceType": "module"
3537
}
36-
}
38+
}

tsconfig.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"target": "es5",
77
// Specifies the syntax for writing React components in TypeScript
88
"jsx": "react",
9+
"outDir": "./src/extension/build/bundles/",
910

1011
// --------------------------MODULES----------------------------------------
1112
// Specifies the module format for the compiled TypeScript files
@@ -70,7 +71,12 @@
7071
// Specifies which files should be included in the compilation.
7172
"include": ["./src/app", "./src/backend", "./src/extension", "./jest-setup.ts", "./global.d.ts"],
7273
// Specifies which files should be excluded from the compilation.
73-
"exclude": ["./src/app/__tests__", "./src/backend/__tests__", "node_modules"],
74+
"exclude": [
75+
"./src/app/__tests__",
76+
"./src/backend/__tests__",
77+
"node_modules",
78+
"./src/extension/build/bundles"
79+
],
7480

7581
// Specifies options for TypeDoc, a documentation generator for TypeScript. In this case, it tells TypeDoc to generate documentation for the project in "file" mode, and to output the documentation to a "docs" folder.
7682
"typeDocOptions": {

0 commit comments

Comments
 (0)