forked from permitio/docs
-
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.
Added eslint, prettier, husky packages. Installed eslint plugins
- Loading branch information
Vishwanath
committed
Jun 14, 2023
1 parent
5cd651e
commit 6daa436
Showing
6 changed files
with
1,316 additions
and
26 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,63 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
}, | ||
extends: ["plugin:react/recommended", "plugin:prettier/recommended"], | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
}, | ||
plugins: ["react", "spellcheck"], | ||
rules: { | ||
"react/prop-types": "off", | ||
"no-unused-vars": ["error", { vars: "all", args: "after-used", ignoreRestSiblings: false }], | ||
"spellcheck/spell-checker": [ | ||
"error", | ||
{ | ||
comments: true, | ||
strings: true, | ||
identifiers: true, | ||
templates: true, | ||
lang: "en_US", | ||
skipWords: [ | ||
"nodejs", | ||
"faq", | ||
"sdk", | ||
"unassign", | ||
"quickstart", | ||
"Frontend", | ||
"onboarding", | ||
"Workspace", | ||
"axios", | ||
"dotnet", | ||
"golang", | ||
"erlang", | ||
"kotlin", | ||
"cpp", | ||
"pho", | ||
"integrations", | ||
"href", | ||
"dropdown", | ||
"csharp", | ||
"docusaurus", | ||
"Fullstack", | ||
"algolia", | ||
"ecma", | ||
"lang", | ||
], | ||
}, | ||
], | ||
"prettier/prettier": [ | ||
"off", | ||
{ | ||
endOfLine: "auto", | ||
}, | ||
], | ||
}, | ||
settings: { | ||
react: { | ||
version: "detect", | ||
}, | ||
}, | ||
}; |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
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,6 @@ | ||
{ | ||
"singleQuote": false, | ||
"printWidth": 100, | ||
"tabWidth": 2, | ||
"endOfLine": "auto" | ||
} |
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,6 @@ | ||
{ | ||
"language": "en", | ||
"words": [ | ||
"skipwords" | ||
] | ||
} |
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.