-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[editor] Add Linting & Fix Lint Errors (#672)
[editor] Add Linting & Fix Lint Errors # [editor] Add Linting & Fix Lint Errors After some previous PRs I realized linting is not even set up for the editor client yet, which is why there were some missing deps issues noticed in the previous PR. To fix, set up the lint config with proper rules and then manually resolve all errors/warnings. ``` ryanholinshead@Ryans-MacBook-Pro client % yarn lint yarn run v1.22.19 $ eslint . --max-warnings=0 ✨ Done in 0.87s. ryanholinshead@Ryans-MacBook-Pro client % ``` Ran through the workbook actions (change input, prompt name, model settings, parameters) and ensure they all work as expected
- Loading branch information
Showing
29 changed files
with
316 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"root": true, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react-hooks/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["@typescript-eslint"], | ||
"rules": { | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
"argsIgnorePattern": "^_", | ||
"varsIgnorePattern": "^_", | ||
"caughtErrorsIgnorePattern": "^_" | ||
} | ||
] | ||
}, | ||
"ignorePatterns": [ | ||
"@types/", | ||
"build/", | ||
"node_modules/", | ||
"public/", | ||
"postbuild.js" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.