-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
2,923 additions
and
4,168 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 |
---|---|---|
@@ -1,28 +1,119 @@ | ||
module.exports = { | ||
env: { | ||
es2021: true, | ||
node: true, | ||
es2021: true, | ||
node: true, | ||
}, | ||
settings: { | ||
react: { | ||
version: "detect", | ||
}, | ||
}, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
ecmaVersion: 12, | ||
sourceType: "module", | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
ecmaVersion: 12, | ||
sourceType: "module", | ||
}, | ||
plugins: ["react", "react-hooks", "@typescript-eslint"], | ||
plugins: [ | ||
"react", | ||
"react-hooks", | ||
"@typescript-eslint", | ||
"typescript-sort-keys", | ||
"sort-destructure-keys", | ||
"import", | ||
], | ||
rules: { | ||
"linebreak-style": ["error", "unix"], | ||
quotes: ["error", "double"], | ||
semi: ["error", "always"], | ||
"react-hooks/rules-of-hooks": "error", | ||
"react-hooks/exhaustive-deps": "error", | ||
"react/display-name": "off" | ||
"linebreak-style": ["error", "unix"], | ||
quotes: ["warn", "double"], | ||
semi: ["warn", "always"], | ||
"react-hooks/rules-of-hooks": "error", | ||
"react-hooks/exhaustive-deps": "error", | ||
"react/display-name": "off", | ||
"react/prop-types": "off", | ||
"no-unused-vars": "off", // disable the base rule as it can report incorrect errors | ||
"@typescript-eslint/consistent-type-imports": [ | ||
"warn", | ||
{ prefer: "type-imports" }, | ||
], | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
vars: "all", | ||
args: "after-used", | ||
ignoreRestSiblings: true, | ||
}, | ||
], | ||
"no-unreachable": "warn", | ||
"typescript-sort-keys/interface": "warn", | ||
"typescript-sort-keys/string-enum": "warn", | ||
"sort-destructure-keys/sort-destructure-keys": [ | ||
"warn", | ||
{ caseSensitive: false }, | ||
], | ||
"react/jsx-sort-props": [ | ||
"warn", | ||
{ | ||
ignoreCase: true, | ||
reservedFirst: ["key", "children", "ref"], | ||
}, | ||
], | ||
"import/order": [ | ||
"warn", | ||
{ | ||
"newlines-between": "always", | ||
distinctGroup: true, | ||
alphabetize: { | ||
order: "asc", | ||
caseInsensitive: true, | ||
orderImportKind: "desc", | ||
}, | ||
groups: [ | ||
"builtin", | ||
"external", | ||
"parent", | ||
"sibling", | ||
"internal", | ||
"unknown", | ||
], | ||
pathGroupsExcludedImportTypes: ["react"], | ||
pathGroups: [ | ||
{ | ||
pattern: "react", | ||
group: "builtin", | ||
position: "before", | ||
}, | ||
{ | ||
pattern: "([a-z]|@)**", | ||
group: "external", | ||
}, | ||
{ | ||
pattern: "**/styles", | ||
group: "internal", | ||
position: "before", | ||
}, | ||
{ | ||
pattern: "**/types", | ||
group: "internal", | ||
position: "before", | ||
}, | ||
{ | ||
pattern: "**/components/**", | ||
group: "internal", | ||
}, | ||
{ | ||
pattern: "**/utils/**", | ||
group: "internal", | ||
position: "after", | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
}; | ||
}; |
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,199 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": "explicit" | ||
}, | ||
"eslint.workingDirectories": ["./src"], | ||
"gitmoji.addCustomEmoji": [ | ||
{ | ||
"emoji": "✨", | ||
"code": ":sparkles:", | ||
"description": "Introduce new features" | ||
}, | ||
{ | ||
"emoji": "💄", | ||
"code": ":lipstick:", | ||
"description": "Improve styling/UI" | ||
}, | ||
{ | ||
"emoji": "👼", | ||
"code": ":angel:", | ||
"description": "Improve user experience" | ||
}, | ||
{ | ||
"emoji": "🧑💻", | ||
"code": ":technologist:", | ||
"description": "Improve developer experience" | ||
}, | ||
{ | ||
"emoji": "🩹", | ||
"code": ":adhesive_bandage:", | ||
"description": "Minor fix for a non-critical issue" | ||
}, | ||
{ | ||
"emoji": "🐛", | ||
"code": ":bug:", | ||
"description": "Fix a bug" | ||
}, | ||
{ | ||
"emoji": "🚑️", | ||
"code": ":ambulance:", | ||
"description": "Make a critical patch" | ||
}, | ||
{ | ||
"emoji": "😷", | ||
"code": ":mask:", | ||
"description": "Attempt to fix an issue" | ||
}, | ||
{ | ||
"emoji": "🦺", | ||
"code": ":safety_vest:", | ||
"description": "Safeguard against an issue" | ||
}, | ||
{ | ||
"emoji": "🚧", | ||
"code": ":construction:", | ||
"description": "Work in progress" | ||
}, | ||
{ | ||
"emoji": "🧵", | ||
"code": ":thread:", | ||
"description": "Tie up loose end" | ||
}, | ||
{ | ||
"emoji": "⚡️", | ||
"code": ":zap:", | ||
"description": "Improve performance" | ||
}, | ||
{ | ||
"emoji": "📱", | ||
"code": ":iphone:", | ||
"description": "Adjust styling for different screen sizes" | ||
}, | ||
{ | ||
"emoji": "💸", | ||
"code": ":money_with_wings:", | ||
"description": "Make changes to money-related infrastructure" | ||
}, | ||
{ | ||
"emoji": "🤖", | ||
"code": ":robot_face:", | ||
"description": "Add or update analytics or tracking code" | ||
}, | ||
{ | ||
"emoji": "📝", | ||
"code": ":memo:", | ||
"description": "Add or update documentation or comments" | ||
}, | ||
{ | ||
"emoji": "🧽", | ||
"code": ":sponge:", | ||
"description": "Clean up code" | ||
}, | ||
{ | ||
"emoji": "🚚", | ||
"code": ":truck:", | ||
"description": "Move or rename files/folders" | ||
}, | ||
{ | ||
"emoji": "♻️", | ||
"code": ":recycle:", | ||
"description": "Refactor code" | ||
}, | ||
{ | ||
"emoji": "⚰️", | ||
"code": ":coffin:", | ||
"description": "Remove dead code" | ||
}, | ||
{ | ||
"emoji": "☠️", | ||
"code": ":skull_and_crossbones:", | ||
"description": "Deprecate code" | ||
}, | ||
{ | ||
"emoji": "🍾", | ||
"code": ":champagne:", | ||
"description": "Begin a project" | ||
}, | ||
{ | ||
"emoji": "🔖", | ||
"code": ":bookmark:", | ||
"description": "Bump version" | ||
}, | ||
{ | ||
"emoji": "🍱", | ||
"code": ":bento:", | ||
"description": "Add or update assets" | ||
}, | ||
{ | ||
"emoji": "💬", | ||
"code": ":speech_balloon:", | ||
"description": "Add or update text" | ||
}, | ||
{ | ||
"emoji": "➕", | ||
"code": ":heavy_plus_sign:", | ||
"description": "Add a dependency" | ||
}, | ||
{ | ||
"emoji": "➖", | ||
"code": ":heavy_minus_sign:", | ||
"description": "Remove a dependency" | ||
}, | ||
{ | ||
"emoji": "⬇️", | ||
"code": ":arrow_down:", | ||
"description": "Downgrade dependencies" | ||
}, | ||
{ | ||
"emoji": "⬆️", | ||
"code": ":arrow_up:", | ||
"description": "Upgrade dependencies" | ||
}, | ||
{ | ||
"emoji": "📌", | ||
"code": ":pushpin:", | ||
"description": "Pin dependencies to specific versions" | ||
}, | ||
{ | ||
"emoji": "🤫", | ||
"code": ":shushing_face:", | ||
"description": "Fix linter/compiler warnings" | ||
}, | ||
{ | ||
"emoji": "🧪", | ||
"code": ":alembic:", | ||
"description": "Add or update tests" | ||
}, | ||
{ | ||
"emoji": "🔨", | ||
"code": ":hammer:", | ||
"description": "Attempt to fix failing test" | ||
}, | ||
{ | ||
"emoji": "⚙️", | ||
"code": ":gear:", | ||
"description": "Add or update config" | ||
}, | ||
{ | ||
"emoji": "🔐", | ||
"code": ":closed_lock_with_key:", | ||
"description": "Add or update secrets" | ||
}, | ||
{ | ||
"emoji": "🗃️", | ||
"code": ":card_file_box:", | ||
"description": "Make database-related changes" | ||
}, | ||
{ | ||
"emoji": "🏗️", | ||
"code": ":building_construction:", | ||
"description": "Make architectural/infrastructure changes" | ||
}, | ||
{ | ||
"emoji": "🥚", | ||
"code": ":egg:", | ||
"description": "Add or update an easter egg" | ||
} | ||
], | ||
"gitmoji.onlyUseCustomEmoji": true | ||
} |
Oops, something went wrong.