Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 69159ed

Browse files
authored
feat: New react-popper API (#117)
1 parent f14cc3d commit 69159ed

33 files changed

+3847
-748
lines changed

.babelrc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
{
2-
"presets": [["env", { "modules": false }], "stage-2", "react"]
2+
"presets": [["env", { "modules": false }], "stage-2", "react"],
3+
"plugins": ["transform-class-properties"],
4+
"env": {
5+
"test": {
6+
"presets": ["env", "stage-2", "react"]
7+
}
8+
}
39
}

.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
indent_style = space
7+
indent_size = 2

.eslintrc.js

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
1-
exports.root = true;
2-
3-
exports.plugins = ['prettier'];
4-
5-
exports.extends = ['standard', 'standard-react', 'prettier', 'prettier/react'];
6-
7-
exports.parser = 'babel-eslint';
8-
9-
exports.env = {
10-
browser: true,
11-
};
12-
13-
exports.settings = {
14-
react: {
15-
version: '16.2',
1+
module.exports = {
2+
root: true,
3+
extends: ['standard', 'standard-react', 'prettier', 'prettier/react'],
4+
plugins: ['prettier', 'jest'],
5+
parser: 'babel-eslint',
6+
env: {
7+
browser: true,
8+
'jest/globals': true,
9+
},
10+
settings: {
11+
react: {
12+
version: '16.3',
13+
},
14+
},
15+
rules: {
16+
// prettier
17+
'prettier/prettier': [
18+
'error',
19+
{ trailingComma: 'es5', singleQuote: true, semi: true },
20+
],
21+
'no-unexpected-multiline': 'off',
1622
},
17-
};
18-
19-
exports.globals = {
20-
};
21-
22-
exports.rules = {
23-
// prettier
24-
'prettier/prettier': ['error', { trailingComma: 'all', singleQuote: true, semi: false, }],
25-
curly: ['error', 'multi-line'],
26-
'no-unexpected-multiline': 'off',
2723
};

.flowconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[ignore]
2+
.*/node_modules/config-chain/.*
3+
/lib/.*
4+
5+
[include]
6+
7+
[libs]
8+
9+
[lints]
10+
11+
[options]
12+
13+
[strict]

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ npm-debug.log
1111
dist
1212
lib
1313
yarn-error.log
14+
coverage
1415

1516
# General Files
1617
.sass-cache

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
language: node_js
2+
node_js:
3+
- "9"
4+
cache: yarn

0 commit comments

Comments
 (0)