Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add custom createTransitionString function #239

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ coverage
lib
dist
flow-coverage
!.storybook
.storybook
62 changes: 17 additions & 45 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,60 +1,32 @@
module.exports = {
extends: [
'airbnb',
'plugin:flowtype/recommended',
'prettier',
'prettier/flowtype',
'prettier/react',
'eslint-config-alloy/typescript-react',
],
plugins: ['prettier', 'flowtype', 'sort-class-members', 'bdd'],
parser: 'babel-eslint',
rules: {
'indent': [
'error',
2,
{
SwitchCase: 1,
flatTernaryExpressions: true
}
],
'react/jsx-indent': [
'error',
2
],
'react/jsx-indent-props': [
'error',
2
],
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': 0,
'react/jsx-filename-extension': 0,
'react/no-unused-prop-types': 0,
'react/sort-comp': 0,
'sort-class-members/sort-class-members': [
2,
{
order: [
'[static-properties]',
'[static-methods]',
'[properties]',
'constructor',
'componentWillMount',
'componentDidMount',
'componentWillReceiveProps',
'shouldComponentUpdate',
'componentWillUpdate',
'componentDidUpdate',
'componentWillUnmount',
'[arrow-function-properties]',
'[methods]',
'render',
],
},
],
'no-console': [1, { allow: ['warn', 'error'] }],
'no-plusplus': [1, { allowForLoopAfterthoughts: true }],

'flowtype/delimiter-dangle': [2, 'always-multiline'],
'flowtype/no-dupe-keys': 2,
'flowtype/no-primitive-constructor-types': 2,
'flowtype/no-weak-types': 1,
'flowtype/object-type-delimiter': [2, 'comma'],
'flowtype/semi': 2,

'bdd/focus': 2,
'bdd/exclude': 2,

'prettier/prettier': [
'error',
{
trailingComma: 'all',
singleQuote: true,
},
],
},
settings: {
flowtype: {
Expand Down
14 changes: 0 additions & 14 deletions .flowconfig

This file was deleted.

106 changes: 0 additions & 106 deletions flow-typed/react-flip-move_v2.9.x-v2.10.x.js

This file was deleted.

28 changes: 10 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@
"build": "rollup -c",
"flow": "flow",
"flow-coverage": "flow-coverage-report -i 'src/**/*.js' -t html -t json -t text",
"prebuild": "npm run lint && flow check && npm run typescript && npm run test",
"prebuild": "npm run lint && npm run typescript",
"prepublishOnly": "npm run build",
"prepush": "npm run prebuild",
"test": "cross-env NODE_ENV=test ./node_modules/.bin/karma start --single-run",
"test:dev": "karma start karma.conf.js",
"tslint": "tslint typings/*.tsx typings/*.ts",
"typescript": "npm run tslint && tsc typings/test.tsx --noEmit --jsx react --target es6 --module es2015 --moduleResolution node",
"typescript": "tsc typings/test.tsx --noEmit --jsx react --target es6 --module es2015 --moduleResolution node",
"storybook": "start-storybook -p 9001",
"storybook:preact": "cross-env REACT_IMPL=preact npm run storybook"
},
Expand All @@ -49,7 +48,7 @@
},
"devDependencies": {
"@storybook/react": "3.2.12",
"@types/react": "16.0.7",
"@types/react": "^16.4.18",
"babel": "6.23.0",
"babel-core": "6.26.0",
"babel-eslint": "7.2.3",
Expand All @@ -68,18 +67,10 @@
"cross-env": "^5.1.3",
"enzyme": "3.7.0",
"enzyme-adapter-react-16": "1.6.0",
"eslint": "3.10.0",
"eslint-config-airbnb": "12.0.0",
"eslint-config-prettier": "^2.3.0",
"eslint-plugin-bdd": "2.1.1",
"eslint-plugin-flowtype": "2.32.1",
"eslint-plugin-import": "1.16.0",
"eslint-plugin-jsx-a11y": "2.2.3",
"eslint-plugin-prettier": "^2.2.0",
"eslint-plugin-react": "6.10.3",
"eslint-plugin-sort-class-members": "1.1.1",
"flow-bin": "0.54.0",
"flow-coverage-report": "0.3.0",
"eslint": "^5.12.1",
"eslint-config-alloy": "^1.4.2",
"eslint-plugin-react": "^7.12.4",
"eslint-plugin-typescript": "^0.14.0",
"husky": "0.14.1",
"karma": "1.7.1",
"karma-chai": "0.1.0",
Expand All @@ -102,12 +93,13 @@
"rollup": "^0.53.4",
"rollup-plugin-babel": "^3.0.3",
"rollup-plugin-replace": "^2.0.0",
"rollup-plugin-typescript": "^1.0.0",
"rollup-plugin-uglify": "^2.0.1",
"sinon": "1.17.3",
"sinon-chai": "2.8.0",
"styled-components": "^4.0.2",
"tslint": "5.2.0",
"typescript": "2.3.2",
"typescript": "^3.2.4",
"typescript-eslint-parser": "^22.0.0",
"webpack": "3.6.0"
}
}
4 changes: 3 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
import babel from 'rollup-plugin-babel';
import replace from 'rollup-plugin-replace';
import uglify from 'rollup-plugin-uglify';
import typescript from 'rollup-plugin-typescript';
import pkg from './package.json';

const mergeAll = objs => Object.assign({}, ...objs);

const commonPlugins = [
typescript(),
babel({
exclude: 'node_modules/**',
plugins: ['external-helpers'],
}),
];

const configBase = {
input: 'src/index.js',
input: 'src/index.ts',
external: [
...Object.keys(pkg.dependencies || {}),
...Object.keys(pkg.peerDependencies || {}),
Expand Down
Loading