Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tonynguyenit18 committed Sep 8, 2020
0 parents commit 48d8167
Show file tree
Hide file tree
Showing 23 changed files with 6,298 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
66 changes: 66 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
module.exports = {
env: {
es6: true,
node: true,
// avoid errors like it/describe in test
jest: true,
// avoid errors like window/document
browser: true,
},
plugins: [
"react",
"@typescript-eslint",
"import",
"simple-import-sort",
"react-hooks",
],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:react/recommended",
"plugin:prettier/recommended",
"plugin:import/typescript",
"plugin:import/errors",
"plugin:import/warnings",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: "module",
tsconfigRootDir: __dirname,
project: ["./tsconfig.json"],
},
settings: {
react: {
version: "detect",
},
"import/resolver": {
alias: {
map: [["@", "./src"]],
extensions: [".ts", ".js", ".tsx", ".jsx", ".json"],
},
},
},
rules: {
"prettier/prettier": "warn",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/prefer-includes": "off",
"@typescript-eslint/member-delimiter-style": "off",
"@typescript-eslint/prefer-regexp-exec": "off",
"@typescript-eslint/no-explicit-any": "off",
eqeqeq: ["error", "always", { null: "ignore" }],
"@typescript-eslint/camelcase": ["error", { genericType: "always" }],
"prefer-const": ["error", { destructuring: "all" }],
"react/display-name": "off",
"simple-import-sort/sort": "error",
"sort-imports": "off",
"import/order": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
},
};
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
coverage/
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
5 changes: 5 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
singleQuote: false
semi: false
tabWidth: 2
printWidth: 100
trailingComma: none
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"esbenp.prettier-vscode"
]
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"editor.formatOnSave": true,
"eslint.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.packageManager": "yarn"
}
Empty file added ImagePixelated/index.d.ts
Empty file.
10 changes: 10 additions & 0 deletions build/ImagePixelated/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/// <reference types="react" />
export declare type ImagePixelatedProps = {
src: string;
width?: number;
height?: number;
pixelSize?: number;
centered?: boolean;
fillTransparencyColor?: string;
};
export declare const ImagePixelated: ({ src, width, height, pixelSize, centered, fillTransparencyColor }: ImagePixelatedProps) => JSX.Element;
1 change: 1 addition & 0 deletions build/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./ImagePixelated";
74 changes: 74 additions & 0 deletions build/index.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/index.es.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

82 changes: 82 additions & 0 deletions build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 48d8167

Please sign in to comment.