chore(setup): learna

This commit is contained in:
Wlad 2021-04-27 12:06:45 +02:00
parent 2df31f7d9f
commit adc7221dac
9 changed files with 5061 additions and 2 deletions

30
.eslintrc.js Normal file
View File

@ -0,0 +1,30 @@
module.exports = {
env: {
es6: true,
node: true,
jest: true,
browser: true,
},
settings: {
react: {
version: 'detect',
},
},
extends: ['plugin:react/recommended', 'plugin:@typescript-eslint/eslint-recommended', 'prettier'],
ignorePatterns: ['**/node_modules/**', '**/dist/**'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
plugins: ['react', '@typescript-eslint'],
rules: {
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
'no-unreachable': 'off',
'no-console': ['warn'],
},
};

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
node_modules
dist

View File

@ -1,2 +1,3 @@
# next.js-utils # NextJS Utilities
next-utils
This project is a monorepo of useful NextJS components and utilities. Please refer to the specific packages for more information.

6
lerna.json Normal file
View File

@ -0,0 +1,6 @@
{
"packages": ["packages/*"],
"npmClient": "yarn",
"useWorkspaces": true,
"version": "0.0.10"
}

10
package.json Normal file
View File

@ -0,0 +1,10 @@
{
"name": "@foomo/next-utils",
"private": true,
"workspaces": [
"packages/*"
],
"devDependencies": {
"lerna": "^4.0.0"
}
}

6
packages/lerna.json Normal file
View File

@ -0,0 +1,6 @@
{
"packages": [
"packages/*"
],
"version": "0.0.0"
}

7
packages/package.json Normal file
View File

@ -0,0 +1,7 @@
{
"name": "root",
"private": true,
"devDependencies": {
"lerna": "^4.0.0"
}
}

10
prettier.config.js Normal file
View File

@ -0,0 +1,10 @@
// prettier.config.js or .prettierrc.js
module.exports = {
singleQuote: true,
printWidth: 120,
jsxSingleQuote: false,
trailingComma: "es5",
semi: true,
arrowParens: "always",
tabWidth: 2,
};

4987
yarn.lock Normal file

File diff suppressed because it is too large Load Diff