universal-transition
Advanced tools
Comparing version 1.0.0-beta.1 to 1.0.0-beta.3
206
.eslintrc.js
@@ -1,203 +0,5 @@ | ||
/* eslint quotes: off */ | ||
module.exports = { | ||
"root": true, | ||
"parser": "babel-eslint", | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es6": true, | ||
"jest": true, | ||
"commonjs": true | ||
}, | ||
"plugins": [ | ||
"react", | ||
"import" | ||
], | ||
"settings": { | ||
"react": { | ||
"pragma": "createElement", // Pragma to use, default to "React" | ||
} | ||
}, | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaVersion": 6, | ||
"ecmaFeatures": { | ||
"jsx": true, | ||
"generators": true, | ||
"experimentalObjectRestSpread": true | ||
} | ||
}, | ||
"globals": { | ||
"__weex_data__": true, | ||
"__weex_options__": true, | ||
"__weex_downgrade__": true, | ||
"__weex_define__": true, | ||
"__weex_require__": true, | ||
"WXEnvironment": true, | ||
"webkitRequestAnimationFrame": true, | ||
"webkitCancelAnimationFrame": true, | ||
"jasmine": true | ||
}, | ||
"rules": { | ||
// ES6 | ||
"prefer-const": "off", | ||
"no-const-assign": "error", | ||
"no-class-assign": "error", | ||
"no-dupe-class-members": "error", | ||
"rest-spread-spacing": "error", | ||
"no-duplicate-imports": "error", | ||
"no-useless-rename": "error", | ||
"arrow-spacing": "error", | ||
"no-useless-computed-key": "error", | ||
"template-curly-spacing": "error", | ||
"generator-star-spacing": ["error", {"before": false, "after": true}], | ||
"yield-star-spacing": ["error", {"before": false, "after": true}], | ||
"strict": ["off", "global"], | ||
"global-strict": ["off", "always"], | ||
"no-extra-strict": "off", | ||
"no-shadow": "off", | ||
"no-unused-vars": ["off", { | ||
"vars": "local", | ||
"args": "after-used", | ||
"varsIgnorePattern": "createElement" | ||
}], | ||
"no-undef": "error", | ||
"no-unused-expressions": "off", | ||
"no-use-before-define": "off", | ||
"yoda": "off", | ||
"eqeqeq": "off", | ||
"no-new": "off", | ||
"consistent-return": "off", | ||
"dot-notation": ["error", { | ||
"allowKeywords": true | ||
}], | ||
"no-extend-native": "error", | ||
"no-native-reassign": "error", | ||
"no-return-assign": "off", | ||
"no-constant-condition": ["error", { | ||
"checkLoops": false | ||
}], | ||
"no-caller": "error", | ||
"no-loop-func": "off", | ||
// Node.js | ||
"no-console": "off", | ||
"no-catch-shadow": "error", | ||
"no-new-require": "off", | ||
"no-mixed-requires": ["off", false], | ||
"no-path-concat": "off", | ||
"handle-callback-err": "off", | ||
"no-empty": "off", | ||
"indent": ["error", 2, { | ||
"SwitchCase": 1 | ||
}], | ||
"camelcase": ["off", { | ||
"properties": "always" | ||
}], | ||
"quotes": ["error", "single", "avoid-escape"], | ||
"brace-style": ["error", "1tbs", { | ||
"allowSingleLine": false | ||
}], | ||
"comma-spacing": ["error", { | ||
"before": false, | ||
"after": true | ||
}], | ||
"comma-style": ["error", "last"], | ||
"eol-last": "off", | ||
"func-names": "off", | ||
"new-cap": ["error", { | ||
"newIsCap": true | ||
}], | ||
"key-spacing": ["error", { | ||
"beforeColon": false, | ||
"afterColon": true | ||
}], | ||
"no-mixed-spaces-and-tabs": "error", | ||
"no-multi-spaces": "error", | ||
"no-multiple-empty-lines": "error", | ||
"no-new-object": "error", | ||
"no-spaced-func": "error", | ||
"no-tabs": "error", | ||
"no-trailing-spaces": "error", | ||
"no-extra-parens": ["error", "all", { ignoreJSX: "all" }], | ||
"padded-blocks": ["error", "never"], | ||
"semi": "error", | ||
"semi-spacing": "error", | ||
"keyword-spacing": "error", | ||
"space-before-blocks": "error", | ||
"space-before-function-paren": ["error", "never"], | ||
"space-infix-ops": "error", | ||
"spaced-comment": ["error", "always", { | ||
"line": { | ||
"markers": ["/"], | ||
"exceptions": ["-", "+"] | ||
}, | ||
"block": { | ||
"markers": ["!"], | ||
"exceptions": ["*"], | ||
"balanced": true | ||
} | ||
}], | ||
/** | ||
* Import | ||
*/ | ||
"import/newline-after-import": "error", | ||
"import/no-duplicates": "error", | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
"peerDependencies": true, | ||
"devDependencies": [ | ||
"**/scripts/*.js", | ||
"**/__tests__/*.js", | ||
"**/__tests__/**/*.js", | ||
'**/*.config.js', | ||
"**/config/*.js", | ||
"**/*.conf.js", | ||
"**/tests/*.test.js" | ||
] | ||
} | ||
], | ||
/** | ||
* React & JSX | ||
*/ | ||
"jsx-quotes": ["error", "prefer-double"], | ||
"react/display-name": "off", | ||
"react/jsx-boolean-value": ["off", "always"], | ||
"react/jsx-no-bind": ["error", { | ||
"allowArrowFunctions": true | ||
}], | ||
"react/prefer-es6-class": "error", | ||
"react/jsx-curly-spacing": "error", | ||
"react/jsx-indent-props": ["error", 2], // 2 spaces indentation | ||
"react/jsx-no-duplicate-props": "error", | ||
"react/jsx-no-undef": "error", | ||
"react/jsx-tag-spacing": "error", | ||
"react/jsx-no-comment-textnodes": "error", | ||
"react/jsx-equals-spacing": "error", | ||
"react/jsx-handler-names": "off", | ||
"react/jsx-uses-react": "error", | ||
"react/jsx-uses-vars": "error", | ||
"react/no-is-mounted": "error", | ||
"react/no-children-prop": "error", | ||
"react/no-did-mount-set-state": "error", | ||
"react/no-did-update-set-state": "error", | ||
"react/no-unknown-property": "off", | ||
"react/style-prop-object": "error", | ||
"react/react-in-jsx-scope": "error", | ||
"react/self-closing-comp": "error", | ||
"react/sort-comp": ["off", { | ||
"order": [ | ||
"lifecycle", | ||
"/^on.+$/", | ||
"/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/", | ||
"everything-else", | ||
"/^render.+$/", | ||
"render" | ||
] | ||
}] | ||
} | ||
}; | ||
"extends": ["eslint-config-rax/react"], | ||
"globals": {}, | ||
"rules": {} | ||
}; |
/* eslint-disable import/no-extraneous-dependencies */ | ||
import {createElement, Component, render, findDOMNode} from 'rax'; | ||
import View from 'rax-view'; | ||
import transition from '../src/index'; | ||
@@ -5,0 +4,0 @@ |
@@ -75,4 +75,4 @@ import {default as React, ReactNode} from "react"; | ||
export function transition(el: ReactNode | Array<ReactNode>, style: React.CSSProperties, option: TransitionOptions, callback?: () => void): void; | ||
export default function transition(node: ReactNode | Array<ReactNode>, styles: React.CSSProperties, option: TransitionOptions, callback?: () => void): void; | ||
"use strict"; | ||
exports.__esModule = true; | ||
exports["default"] = transition; | ||
exports.default = transition; | ||
@@ -82,4 +82,4 @@ var _universalEnv = require("universal-env"); | ||
return { | ||
"export": function _export() { | ||
return _animation.step()["export"](); | ||
export: function _export() { | ||
return _animation.step().export(); | ||
} | ||
@@ -86,0 +86,0 @@ }; |
{ | ||
"name": "universal-transition", | ||
"version": "1.0.0-beta.1", | ||
"version": "1.0.0-beta.3", | ||
"description": "A universal transition API.", | ||
@@ -10,3 +10,3 @@ "license": "BSD-3-Clause", | ||
"build": "rax-scripts build --type 'component'", | ||
"test": "jest", | ||
"test": "rax-scripts test", | ||
"lint": "eslint --ext .js --ext .jsx ./src", | ||
@@ -29,17 +29,14 @@ "prebuild": "npm run lint && npm run test", | ||
"style-unit": "^0.6.5", | ||
"universal-env": "1.0.0-beta.2" | ||
"universal-env": "^1.0.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.4.3", | ||
"@babel/preset-env": "^7.4.3", | ||
"babel-eslint": "10.0.1", | ||
"babel-jest": "^24.7.1", | ||
"eslint": "^5.16.0", | ||
"eslint-plugin-import": "^2.17.2", | ||
"babel-eslint": "^10.0.2", | ||
"debug": "^4.1.1", | ||
"eslint": "^6.1.0", | ||
"eslint-config-rax": "^0.0.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"eslint-plugin-react": "^7.12.4", | ||
"jest": "^24.7.1", | ||
"jest-localstorage-mock": "^2.3.0", | ||
"pre-commit": "^1.2.2", | ||
"rax": "0.6.7", | ||
"rax-scripts": "^1.2.1" | ||
"rax-scripts": "^1.3.10" | ||
}, | ||
@@ -46,0 +43,0 @@ "pre-commit": [ |
@@ -5,2 +5,6 @@ # universal-transition [![npm](https://img.shields.io/npm/v/universal-transition.svg)](https://www.npmjs.com/package/universal-transition) | ||
## 支持 | ||
<img alt="browser" src="https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg" width="25px" height="25px" /> <img alt="weex" src="https://gw.alicdn.com/tfs/TB1jM0ebMaH3KVjSZFjXXcFWpXa-200-200.svg" width="25px" height="25px" /> <img alt="miniApp" src="https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg" width="25px" height="25px" /> | ||
## 安装 | ||
@@ -7,0 +11,0 @@ |
@@ -5,2 +5,6 @@ # universal-transition [![npm](https://img.shields.io/npm/v/universal-transition.svg)](https://www.npmjs.com/package/universal-transition) | ||
## Supported | ||
<img alt="browser" src="https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg" width="25px" height="25px" /> <img alt="weex" src="https://gw.alicdn.com/tfs/TB1jM0ebMaH3KVjSZFjXXcFWpXa-200-200.svg" width="25px" height="25px" /> <img alt="miniApp" src="https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg" width="25px" height="25px" /> | ||
## Install | ||
@@ -7,0 +11,0 @@ |
@@ -75,4 +75,4 @@ import {default as React, ReactNode} from "react"; | ||
export function transition(el: ReactNode | Array<ReactNode>, style: React.CSSProperties, option: TransitionOptions, callback?: () => void): void; | ||
export default function transition(node: ReactNode | Array<ReactNode>, styles: React.CSSProperties, option: TransitionOptions, callback?: () => void): void; | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9
110
1
25156
13
418
+ Addeduniversal-env@1.0.7(transitive)
- Removeduniversal-env@1.0.0-beta.2(transitive)
Updateduniversal-env@^1.0.1