Skip to content

Commit

Permalink
Merge branch 'main' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
EnzoVezzaro committed Mar 30, 2022
2 parents aaa7a96 + c635b76 commit f4d0876
Show file tree
Hide file tree
Showing 172 changed files with 8,190 additions and 6,883 deletions.
2 changes: 1 addition & 1 deletion .eslintcache

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
public
# types
*d.ts
*.js

local-testnet
src/_start/*
124 changes: 124 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"env": {
"es6": true,
"browser": true,
"node": true
},
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended",
"plugin:react-hooks/recommended"
],
"settings": {
"react": {
"version": "detect"
}
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
// react
"react/prop-types": "off",
"react/sort-prop-types": "error",
"react/self-closing-comp": "error",
"react/jsx-boolean-value": "error",
"react/jsx-handler-names": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"react/no-find-dom-node": "error",
"react/jsx-pascal-case": [
"error",
{
"allowAllCaps": false,
"allowNamespace": false
}
],
"react/jsx-fragments": [
"error",
"syntax"
],
"react/jsx-curly-brace-presence": [
"error",
{
"props": "never",
"children": "never"
}
],
"react/jsx-sort-props": [
"error",
{
"callbacksLast": true,
"shorthandFirst": true,
"noSortAlphabetically": false,
"reservedFirst": true
}
],
// typescript
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/consistent-type-definitions": [
"error",
"interface"
],
// eslint
"camelcase": "error",
"use-isnan": "error",
"no-unreachable": "error",
"newline-before-return": "error",
"no-useless-computed-key": "error",
"eqeqeq": [
"error",
"always",
{
"null": "ignore"
}
],
"one-var": [
"error",
{
"initialized": "never"
}
],
"prefer-destructuring": ["error", {
"array": true,
"object": true
}, {
"enforceForRenamedProperties": false
}],
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "*",
"next": "return"
},
{
"blankLine": "always",
"prev": "multiline-block-like",
"next": "if"
},
{
"blankLine": "always",
"prev": "multiline-block-like",
"next": "expression"
},
{
"blankLine": "always",
"prev": "const",
"next": "if"
}
]
}
}
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no -- commitlint --edit
11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"bracketSpacing": true,
"bracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 80,
"arrowParens": "always",
"proseWrap": "always",
"semi": true,
"singleQuote": false,
"tabWidth": 2
}
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ["@commitlint/config-conventional"] };
Loading

0 comments on commit f4d0876

Please sign in to comment.