Skip to content

Commit 54a9b56

Browse files
authored
Merge pull request #820 from ReactTooltip/v5
V5
2 parents 3886816 + 4ec3123 commit 54a9b56

File tree

147 files changed

+17496
-10484
lines changed

Some content is hidden

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

147 files changed

+17496
-10484
lines changed

.babelrc

Lines changed: 0 additions & 19 deletions
This file was deleted.

.editorconfig

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
# editorconfig.org
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
max_line_length = 100
13+
14+
[*.md]
15+
max_line_length = 0
16+
trim_trailing_whitespace = false
17+
18+
[{*.json, *.svg}]
19+
indent_style = space
20+
indent_size = 2
21+
22+
# Matches the exact package.json, or *rc
23+
[{package.json,*.yml,*rc}]
24+
indent_style = space
25+
indent_size = 2

.eslintignore

Lines changed: 0 additions & 10 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 54 deletions
This file was deleted.

.eslintrc.json

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"extends": [
3+
"eslint-config-airbnb",
4+
"plugin:import/typescript",
5+
"plugin:@typescript-eslint/recommended",
6+
"prettier",
7+
"plugin:prettier/recommended"
8+
],
9+
"env": {
10+
"browser": true,
11+
"jest": true
12+
},
13+
"parser": "@typescript-eslint/parser",
14+
"plugins": ["react", "react-hooks", "prettier", "@typescript-eslint"],
15+
"settings": {
16+
"import/resolver": {
17+
"node": {
18+
"extensions": [".js", ".jsx", ".ts", ".tsx"],
19+
"moduleDirectory": ["node_modules", "src/"]
20+
}
21+
}
22+
},
23+
"rules": {
24+
"operator-linebreak": [
25+
2,
26+
"after",
27+
{
28+
"overrides": {
29+
"?": "before",
30+
":": "before"
31+
}
32+
}
33+
],
34+
"object-curly-newline": 0,
35+
"implicit-arrow-linebreak": 0,
36+
"semi": ["error", "never"],
37+
"quotes": [
38+
"error",
39+
"single",
40+
{
41+
"allowTemplateLiterals": true,
42+
"avoidEscape": true
43+
}
44+
],
45+
"max-len": [
46+
"error",
47+
{
48+
"code": 100,
49+
"ignoreStrings": true,
50+
"ignoreTemplateLiterals": true
51+
}
52+
],
53+
"import/no-extraneous-dependencies": [
54+
"error",
55+
{
56+
"devDependencies": true
57+
}
58+
],
59+
"import/no-unresolved": [
60+
"error",
61+
{
62+
"commonjs": true,
63+
"amd": true
64+
}
65+
],
66+
"react/jsx-filename-extension": ["off"],
67+
"react/prop-types": ["warn"],
68+
"react/button-has-type": 0,
69+
"jsx-a11y/href-no-hash": "off",
70+
"jsx-a11y/label-has-for": [
71+
"error",
72+
{
73+
"allowChildren": true
74+
}
75+
],
76+
"jsx-a11y/anchor-is-valid": [
77+
"error",
78+
{
79+
"specialLink": ["to"]
80+
}
81+
],
82+
"react/jsx-props-no-spreading": 0,
83+
"react/react-in-jsx-scope": "off",
84+
"prettier/prettier": "error",
85+
"import/extensions": 0,
86+
"@typescript-eslint/no-unused-vars": "error",
87+
"@typescript-eslint/no-explicit-any": "warn",
88+
"import/prefer-default-export": "off",
89+
"react/function-component-definition": "off",
90+
"@typescript-eslint/ban-ts-comment": "off",
91+
"dot-notation": "off",
92+
"no-shadow": "off",
93+
"@typescript-eslint/no-shadow": "error"
94+
}
95+
}

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# do not show lock files while doing git diff
2+
package-lock.json -diff
3+
yarn.lock -diff

.github/workflows/release.yaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.gitignore

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,37 @@
1-
# system files
2-
*.log
3-
.DS_Store*
1+
## editors
2+
/.idea
3+
4+
## system files
5+
.DS_Store
46
.idea/
7+
*.log
8+
.vscode/
9+
## npm
10+
/node_modules/
11+
/npm-debug.log
12+
.npmrc
13+
14+
## testing
15+
/coverage/
16+
17+
## bower
18+
/bower_components*/
19+
/bower-*.json
20+
21+
## temp folders
22+
/.tmp/
23+
24+
## demoing
25+
/demo/
26+
27+
## building
28+
/build/
29+
/dist/
30+
31+
## other
32+
yarn-error.log
533

634
# push to github
735
!.babelrc
836
!.gitignore
937
!.npmignore
10-
11-
# files
12-
node_modules/
13-
dist/
14-
build/
15-
.env
16-
.npmrc

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
33

4-
npm test
4+
npm run eslint
5+
# npm run stylelint
6+
npm run prettier

.npmignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,22 @@
66
// specific files
77
node_modules/
88
example/
9+
example-v5/
10+
build/
911
test/
1012
bin/
1113
CHANGELOG.md
1214
src/
15+
docs/
16+
public/
17+
coverage/
1318

1419
// setting files
1520
.babelrc
1621
.travis.yml
22+
.editorconfig
23+
24+
// others
25+
.vscode/
26+
.husky/
27+
.github/

.prettierrc.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

.prettierrc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"semi": false,
3+
"arrowParens": "always",
4+
"proseWrap": "preserve",
5+
"singleQuote": true,
6+
"trailingComma": "all",
7+
"tabWidth": 2,
8+
"printWidth": 100,
9+
"endOfLine": "auto"
10+
}

.stylelintrc.json

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
{
2-
"extends": "stylelint-config-standard",
3-
"ignoreFiles": ["src/**/*.js"],
4-
"overrides": [
5-
{
6-
"files": ["*.scss", "**/*.scss"],
7-
"customSyntax": "postcss-scss"
8-
}
9-
],
2+
"extends": ["stylelint-config-standard", "stylelint-config-prettier"],
103
"rules": {
11-
"selector-class-pattern": null
4+
"declaration-no-important": true,
5+
"declaration-colon-newline-after": null,
6+
"selector-pseudo-class-no-unknown": [
7+
true,
8+
{
9+
"ignorePseudoClasses": ["global"]
10+
}
11+
],
12+
"selector-pseudo-element-no-unknown": [
13+
true,
14+
{
15+
"ignorePseudoElements": ["global"]
16+
}
17+
]
1218
}
13-
}
19+
}

0 commit comments

Comments
 (0)