Skip to content

Commit c2cd0cb

Browse files
committed
feat(init): setting up the development environment
0 parents  commit c2cd0cb

9 files changed

+2139
-0
lines changed

Diff for: .gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules/
2+
dist/
3+
.idea
4+
.cache
5+
*.tgz
6+
.DS_Store

Diff for: .npmignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules
2+
.idea
3+
/src
4+
/demo
5+
.prettierrc
6+
tsconfig.json
7+
tslint.json
8+
yarn.lock
9+
*.tgz

Diff for: .prettierrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"printWidth": 80,
3+
"semi": true,
4+
"trailingComma": "all",
5+
"singleQuote": true,
6+
"arrowParens": "always",
7+
"jsxBracketSameLine": false,
8+
"bracketSpacing": true
9+
}

Diff for: LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 LeetCode Open Source
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# [WIP]react-simple-resizer

Diff for: package.json

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"name": "react-simple-resizer",
3+
"version": "0.0.1",
4+
"description": "An intuitive React component set for multi-column resizing",
5+
"main": "./dist/index.js",
6+
"types": "./dist/index.d.ts",
7+
"scripts": {
8+
"build": "rm -rf ./dist && tsc",
9+
"prettier": "prettier '@(src|demo)/**/*.@(ts|tsx|html|less)' --write",
10+
"test": "echo \"Error: no test specified\" && exit 1"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "git+https://github.com/LeetCode-OpenSource/react-simple-resizer.git"
15+
},
16+
"keywords": [
17+
"react",
18+
"resize",
19+
"resizer"
20+
],
21+
"bugs": {
22+
"url": "https://github.com/LeetCode-OpenSource/react-simple-resizer/issues"
23+
},
24+
"homepage": "https://github.com/LeetCode-OpenSource/react-simple-resizer#readme",
25+
"author": "LeetCode front-end team",
26+
"license": "MIT",
27+
"husky": {
28+
"hooks": {
29+
"pre-commit": "lint-staged"
30+
}
31+
},
32+
"lint-staged": {
33+
"{*.@(ts|tsx)": [
34+
"prettier --write",
35+
"tslint -p tsconfig.json --fix",
36+
"git add"
37+
],
38+
"*.@(less|html)": [
39+
"prettier --write",
40+
"git add"
41+
]
42+
},
43+
"devDependencies": {
44+
"@types/lodash": "^4.14.115",
45+
"@types/react": "^16.4.7",
46+
"@types/react-dom": "^16.0.7",
47+
"husky": "^1.2.0",
48+
"lint-staged": "^8.1.0",
49+
"prettier": "1.15.3",
50+
"react": "^16.4.2",
51+
"react-dom": "^16.4.2",
52+
"tslib": "^1.9.3",
53+
"tslint": "^5.11.0",
54+
"tslint-eslint-rules": "^5.3.1",
55+
"tslint-react": "^3.6.0",
56+
"tslint-sonarts": "^1.7.0",
57+
"typescript": "^3.1.6"
58+
},
59+
"dependencies": {
60+
"lodash": "^4.17.11",
61+
"rxjs": "^6.3.3"
62+
},
63+
"peerDependencies": {
64+
"react": "^16.3.0",
65+
"react-dom": "^16.4.2"
66+
}
67+
}

Diff for: tsconfig.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"compilerOptions": {
3+
"outDir": "dist/",
4+
"declaration": true,
5+
"removeComments": true,
6+
"preserveConstEnums": true,
7+
"allowSyntheticDefaultImports": true,
8+
"experimentalDecorators": true,
9+
"noUnusedParameters": true,
10+
"noUnusedLocals": true,
11+
"noImplicitAny": true,
12+
"strict": true,
13+
"noImplicitReturns": true,
14+
"moduleResolution": "node",
15+
"lib": ["dom", "es2015"],
16+
"jsx": "react",
17+
"target": "es5"
18+
},
19+
"include": ["src"]
20+
}

Diff for: tslint.json

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"extends": [
3+
"tslint-react",
4+
"tslint-eslint-rules",
5+
"tslint-sonarts"
6+
],
7+
"defaultSeverity": "error",
8+
"rules": {
9+
"array-bracket-spacing": [true, "never", {
10+
"arraysInArrays": false,
11+
"singleValue": false,
12+
"objectsInArrays": false
13+
}],
14+
"jsx-boolean-value": false,
15+
"block-spacing": [true, "always"],
16+
"import-spacing": true,
17+
"no-boolean-literal-compare": true,
18+
"no-console": [true, "log", "time", "trace"],
19+
"no-duplicate-variable": true,
20+
"no-multi-spaces": true,
21+
"no-return-await": true,
22+
"no-string-literal": true,
23+
"no-string-throw": true,
24+
"no-trailing-whitespace": true,
25+
"no-unnecessary-initializer": true,
26+
"no-var-keyword": true,
27+
"object-curly-spacing": [true, "always"],
28+
"one-variable-per-declaration": [true, "ignore-for-loop"],
29+
"prefer-const": true,
30+
"quotemark": [true, "single", "jsx-double"],
31+
"ter-arrow-spacing": [true, { "before": true, "after": true }],
32+
"triple-equals": [true, "allow-null-check", "allow-undefined-check"],
33+
"whitespace": [
34+
true,
35+
"check-branch",
36+
"check-decl",
37+
"check-operator",
38+
"check-module",
39+
"check-separator",
40+
"check-rest-spread",
41+
"check-type",
42+
"check-typecast",
43+
"check-type-operator",
44+
"check-preblock"
45+
],
46+
"interface-over-type-literal": true,
47+
"no-consecutive-blank-lines": true,
48+
"space-before-function-paren": [true, {
49+
"anonymous": "never",
50+
"named": "never",
51+
"asyncArrow": "always"
52+
}],
53+
"space-within-parens": [true, 0],
54+
"jsx-curly-spacing": [true, "never"],
55+
"jsx-no-multiline-js": false,
56+
"jsx-equals-spacing": false,
57+
"jsx-no-bind": true,
58+
"jsx-key": true,
59+
"jsx-no-lambda": true,
60+
"jsx-no-string-ref": true,
61+
"jsx-wrap-multiline": true,
62+
"jsx-self-close": true,
63+
"cognitive-complexity": false,
64+
"no-duplicate-string": false,
65+
"no-big-function": false,
66+
"no-small-switch": false,
67+
"max-union-size": [true, 20],
68+
"parameters-max-number": false
69+
}
70+
}

0 commit comments

Comments
 (0)