Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fers4t authored Dec 12, 2022
0 parents commit cacad4c
Show file tree
Hide file tree
Showing 12 changed files with 18,649 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
module.exports = {
env: {
browser: true,
es2021: true,
jest: true,
amd: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: [
'react',
'@typescript-eslint',
'typescript-sort-keys',
'unused-imports',
],
rules: {
'typescript-sort-keys/interface': 'error',
'typescript-sort-keys/string-enum': 'error',
'react/jsx-filename-extension': 'off',
'react/jsx-props-no-spreading': 'off',
'react/function-component-definition': 'off',
'react/destructuring-assignment': 'off',
'react/display-name': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'react/jsx-wrap-multilines': 'off',
'react/require-default-props': 'off',
indent: 'off',
'import/no-unresolved': 'off',
'import/extensions': 'off',
'import/no-extraneous-dependencies': 'off',
'import/prefer-default-export': 'off',
'no-unused-vars': 'off',
'no-nested-ternary': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
'unused-imports/no-unused-imports': 'error',
'@typescript-eslint/no-var-requires': 'warn',
},
exclude: ['node_modules', 'dist', 'example', 'tsconfig.json'],
};
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# JetBrains IDE files
.idea/

# testing
/coverage

# production
/dist

# misc
.DS_Store
*.pem
tsconfig.tsbuildinfo

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

storybook-static
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"trailingComma": "none",
"singleQuote": true,
"printWidth": 120,
"proseWrap": "always",
"tabWidth": 3,
"useTabs": false,
"semi": true,
"bracketSpacing": true
}
23 changes: 23 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.fixAll.eslint": true
},
"eslint.format.enable": true,
"eslint.alwaysShowStatus": true,
"eslint.codeAction.showDocumentation": {
"enable": true
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.cursorSmoothCaretAnimation": true,
"editor.snippetSuggestions": "inline",
"editor.formatOnSave": true,
"editor.fontLigatures": "'ss01', 'ss02', 'ss03', 'ss06', 'zero'",
"editor.renderWhitespace": "boundary",
"editor.glyphMargin": true,
"editor.guides.bracketPairs": "active",
"editor.find.addExtraSpaceOnTop": false,
"editor.inlineSuggest.enabled": true,
"editor.suggestSelection": "first",
"editor.accessibilitySupport": "off"
}
9 changes: 9 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### IN DEVELOPMENT

## Install package to Next.js app

cd example pnpm install ../

## Watch changes

cd to root folder and run pnpm watch
1 change: 1 addition & 0 deletions example
Submodule example added at 336d20
89 changes: 89 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"name": "react-package-fers4t",
"description": "Test package for react",
"version": "0.2.1-10",
"author": "oceaners-dev",
"license": "ISC",
"keywords": [],
"files": [
"dist"
],
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"repository": {
"type": "git",
"url": ""
},
"scripts": {
"build": "rm -rf ./dist && pnpm run build:esm && pnpm run build:cjs",
"build:esm": "tsc",
"build:cjs": "tsc --module CommonJS --outDir dist/cjs",
"dev": "concurrently \"pnpm build\" \"pnpm storybook\"",
"watch": "tsc --watch",
"commit": "cz",
"storybook": "start-storybook -p 6006 --quiet",
"build-storybook": "build-storybook",
"deploy-storybook": "storybook-to-ghpages",
"release": "pnpm release-it"
},
"engines": {
"node": ">=14.0.0"
},
"devDependencies": {
"@storybook/addon-actions": "6.5.13",
"@storybook/addon-essentials": "6.5.13",
"@storybook/addon-interactions": "6.5.13",
"@storybook/addon-links": "6.5.13",
"@storybook/builder-webpack5": "6.5.13",
"@storybook/manager-webpack5": "6.5.13",
"@storybook/react": "6.5.13",
"@storybook/storybook-deployer": "2.8.16",
"@storybook/testing-library": "0.0.13",
"@types/jest": "29.2.3",
"@types/node": "18.11.9",
"@types/react": "18.0.25",
"@types/react-dom": "18.0.7",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"autoprefixer": "^10.4.12",
"concurrently": "7.4.0",
"date-fns": "^2.29.3",
"date-fns-tz": "^1.3.7",
"eslint": "8.26.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-next": "13.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jsx-a11y": "6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-storybook": "0.6.7",
"eslint-plugin-typescript-sort-keys": "2.1.0",
"eslint-plugin-unused-imports": "2.0.0",
"inspx": "0.0.1-alpha.6",
"next": "13.0.0",
"postcss": "^8.4.18",
"prettier": "^2.7.1",
"prettier-plugin-tailwindcss": "^0.1.13",
"purgecss": "^5.0.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"tailwindcss": "^3.2.1",
"ts-jest": "29.0.3",
"tsup": "6.2.3",
"typescript": "4.8.4"
},
"peerDependencies": {
"cookie-universal": ">=2",
"next": ">=13",
"react": ">=18",
"react-dom": ">=18",
"react-uuid": "^2.0.0",
"tailwindcss": "^3.2.1"
},
"dependencies": {
"@faker-js/faker": "7.6.0",
"@storybook/addon-postcss": "2.0.0"
}
}
Loading

0 comments on commit cacad4c

Please sign in to comment.