Skip to content

Commit 2ad42f5

Browse files
committed
Initialize Lerna monorepo for v2.x
0 parents  commit 2ad42f5

File tree

99 files changed

+23005
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+23005
-0
lines changed

.eslintrc.js

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true,
5+
},
6+
extends: [
7+
'eslint:recommended',
8+
'plugin:react/recommended',
9+
'plugin:react-hooks/recommended',
10+
'plugin:import/errors',
11+
'plugin:import/warnings',
12+
'plugin:import/typescript',
13+
'plugin:@typescript-eslint/eslint-recommended',
14+
'plugin:prettier/recommended',
15+
'prettier',
16+
],
17+
globals: {
18+
Atomics: 'readonly',
19+
SharedArrayBuffer: 'readonly',
20+
},
21+
parser: '@typescript-eslint/parser',
22+
parserOptions: {
23+
ecmaFeatures: {
24+
jsx: true,
25+
},
26+
ecmaVersion: 2018,
27+
sourceType: 'module',
28+
},
29+
plugins: [
30+
'react',
31+
'import',
32+
'@typescript-eslint',
33+
'prettier',
34+
'simple-import-sort',
35+
],
36+
rules: {
37+
quotes: ['warn', 'single', { allowTemplateLiterals: true }],
38+
'no-console': 'warn',
39+
'no-unused-vars': 'warn',
40+
'no-prototype-builtins': 'off',
41+
'sort-imports': [
42+
'error',
43+
{
44+
ignoreCase: true,
45+
ignoreDeclarationSort: true,
46+
ignoreMemberSort: false,
47+
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
48+
},
49+
],
50+
'simple-import-sort/sort': 'error',
51+
'react/prop-types': 'off',
52+
'react/display-name': 'off',
53+
'react-hooks/exhaustive-deps': 'error',
54+
'import/first': 'error',
55+
'import/no-unresolved': 'off',
56+
'import/no-namespace': 'error',
57+
'import/no-duplicates': 'error',
58+
'import/no-default-export': 'error',
59+
'import/no-internal-modules': 'off',
60+
'import/newline-after-import': 'error',
61+
'import/no-useless-path-segments': 'error',
62+
'import/order': [
63+
'error',
64+
{
65+
groups: ['builtin', 'external', 'parent', 'index', 'sibling'],
66+
},
67+
],
68+
'@typescript-eslint/no-unused-vars': 'error',
69+
'@typescript-eslint/explicit-member-accessibility': 'error',
70+
'prettier/prettier': 'off',
71+
},
72+
settings: {
73+
'import/extensions': ['.js', '.jsx', '.ts', '.tsx'],
74+
react: {
75+
version: 'detect',
76+
},
77+
},
78+
};

.gitignore

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# JetBrains IDEs, Vim swap files
2+
.idea/
3+
*.swp
4+
5+
# VS Code for external contributors
6+
.vscode
7+
8+
# Dependencies
9+
node_modules/
10+
/.pnp
11+
.pnp.js
12+
13+
# Testing
14+
/coverage
15+
16+
# Production
17+
dist/
18+
build/
19+
20+
# Misc
21+
.DS_Store
22+
.env.local
23+
.env.development.local
24+
.env.test.local
25+
.env.production.local
26+
27+
npm-debug.log*
28+
yarn-debug.log*
29+
yarn-error.log*

.prettierrc.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
trailingComma: 'es5',
3+
tabWidth: 4,
4+
semi: true,
5+
singleQuote: true,
6+
useTabs: false,
7+
printWidth: 88,
8+
};

.travis.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: node_js
2+
node_js:
3+
- 10
4+
install:
5+
- npm ci
6+
7+
jobs:
8+
include:
9+
- script: echo "npm test temporarily disabled"
10+
- stage: lint
11+
script: npm run lint
12+
- stage: typecheck
13+
script: npm run typecheck
14+
15+
stages:
16+
- lint-src
17+
- typecheck-src

lerna.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"packages": [
3+
"packages/*"
4+
],
5+
"version": "2.0.0-alpha.0"
6+
}

0 commit comments

Comments
 (0)