mirror of
https://github.com/foomo/next-utils.git
synced 2025-10-16 12:35:36 +00:00
chore(setup): learna
This commit is contained in:
parent
2df31f7d9f
commit
adc7221dac
30
.eslintrc.js
Normal file
30
.eslintrc.js
Normal 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
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
node_modules
|
||||
dist
|
||||
@ -1,2 +1,3 @@
|
||||
# next.js-utils
|
||||
next-utils
|
||||
# NextJS Utilities
|
||||
|
||||
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
6
lerna.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"packages": ["packages/*"],
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": true,
|
||||
"version": "0.0.10"
|
||||
}
|
||||
10
package.json
Normal file
10
package.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "@foomo/next-utils",
|
||||
"private": true,
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
],
|
||||
"devDependencies": {
|
||||
"lerna": "^4.0.0"
|
||||
}
|
||||
}
|
||||
6
packages/lerna.json
Normal file
6
packages/lerna.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"packages": [
|
||||
"packages/*"
|
||||
],
|
||||
"version": "0.0.0"
|
||||
}
|
||||
7
packages/package.json
Normal file
7
packages/package.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "root",
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"lerna": "^4.0.0"
|
||||
}
|
||||
}
|
||||
10
prettier.config.js
Normal file
10
prettier.config.js
Normal 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,
|
||||
};
|
||||
Loading…
Reference in New Issue
Block a user