-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* create eslint from template * ignore build * configure plugin and fix an issue * use old config instead of crippy old one * correct github action * fix eslint resolver error * fix eslint issues * fix eslint issues
- Loading branch information
Showing
18 changed files
with
875 additions
and
326 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,44 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true, | ||
"jest": true | ||
}, | ||
"extends": [ | ||
"plugin:react/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier", | ||
"plugin:prettier/recommended", | ||
"plugin:import/recommended" | ||
], | ||
"overrides": [], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"ecmaVersion": 12, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ "react", "@typescript-eslint", "react-hooks" ], | ||
"rules": { | ||
"no-use-before-define": "off", | ||
"@typescript-eslint/no-use-before-define": [ "error" ], | ||
"react/jsx-filename-extension": [ "warn", { "extensions": [ ".tsx" ] } ], | ||
"import/extensions": [ "error", "ignorePackages", { "ts": "never", "tsx": "never" } ], | ||
"no-shadow": "off", | ||
"@typescript-eslint/no-shadow": [ "error" ], | ||
"@typescript-eslint/explicit-function-return-type": [ "error", { "allowExpressions": true } ], | ||
"max-len": [ "warn", { "code": 100, "ignoreComments": true, "ignoreUrls": true } ], | ||
"react-hooks/rules-of-hooks": "error", | ||
"react-hooks/exhaustive-deps": "warn", | ||
"import/prefer-default-export": "off", | ||
"react/prop-types": "off", | ||
"prettier/prettier": [ "error", { "endOfLine": "auto" } ] | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
"typescript": {} | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint" | ||
] | ||
} |
Oops, something went wrong.