-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(format): updates Prettier config
- Loading branch information
Showing
34 changed files
with
719 additions
and
973 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,83 @@ | ||
{ | ||
"name": "scroll-behavior-polyfill", | ||
"version": "2.0.5", | ||
"description": "A polyfill for the 'scroll-behavior' CSS-property", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/wessberg/scroll-behavior-polyfill.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/wessberg/scroll-behavior-polyfill/issues" | ||
}, | ||
"scripts": { | ||
"generate:readme": "scaffold readme --yes", | ||
"generate:license": "scaffold license --yes", | ||
"generate:contributing": "scaffold contributing --yes", | ||
"generate:coc": "scaffold coc --yes", | ||
"generate:changelog": "standard-changelog --first-release", | ||
"generate:all": "npm run generate:license & npm run generate:contributing & npm run generate:coc & npm run generate:readme && npm run generate:changelog", | ||
"clean:dist": "rm -rf dist", | ||
"clean:compiled": "rm -rf compiled", | ||
"clean": "npm run clean:dist && npm run clean:compiled", | ||
"lint": "tsc --noEmit && tslint -c tslint.json --project tsconfig.json", | ||
"prettier": "prettier --write '{src,documentation}/**/*.{js,ts,json,html,xml,css,md}'", | ||
"prebuild": "npm run clean:dist", | ||
"build": "npm run rollup", | ||
"rollup": "rollup -c rollup.config.js", | ||
"preversion": "npm run lint && NODE_ENV=production npm run build", | ||
"version": "npm run generate:all && git add .", | ||
"release": "np --no-cleanup --no-yarn" | ||
}, | ||
"files": [ | ||
"dist/**/*.*" | ||
], | ||
"keywords": [ | ||
"scroll-behavior", | ||
"smooth-scrolling", | ||
"polyfill", | ||
"css", | ||
"smooth", | ||
"scroll behavior" | ||
], | ||
"contributors": [ | ||
{ | ||
"name": "Frederik Wessberg", | ||
"email": "frederikwessberg@hotmail.com", | ||
"url": "https://github.com/wessberg", | ||
"imageUrl": "https://avatars2.githubusercontent.com/u/20454213?s=460&v=4", | ||
"role": "Lead Developer", | ||
"twitter": "FredWessberg" | ||
} | ||
], | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@wessberg/rollup-plugin-ts": "1.1.28", | ||
"@wessberg/scaffold": "1.0.16", | ||
"@wessberg/ts-config": "^0.0.39", | ||
"rollup": "^1.1.2", | ||
"rollup-plugin-node-resolve": "^4.0.0", | ||
"tslib": "^1.9.3", | ||
"tslint": "^5.12.1", | ||
"typescript": "^3.3.3", | ||
"standard-changelog": "^2.0.6", | ||
"prettier": "^1.16.4", | ||
"pretty-quick": "^1.10.0", | ||
"husky": "^1.3.1", | ||
"np": "^4.0.2" | ||
}, | ||
"dependencies": {}, | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.js", | ||
"browser": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"typings": "./dist/index.d.ts", | ||
"es2015": "./dist/index.js", | ||
"engines": { | ||
"node": ">=4.0.0" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "pretty-quick --staged" | ||
} | ||
} | ||
"name": "scroll-behavior-polyfill", | ||
"version": "2.0.5", | ||
"description": "A polyfill for the 'scroll-behavior' CSS-property", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/wessberg/scroll-behavior-polyfill.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/wessberg/scroll-behavior-polyfill/issues" | ||
}, | ||
"scripts": { | ||
"generate:readme": "scaffold readme --yes", | ||
"generate:license": "scaffold license --yes", | ||
"generate:contributing": "scaffold contributing --yes", | ||
"generate:coc": "scaffold coc --yes", | ||
"generate:changelog": "standard-changelog --first-release", | ||
"generate:all": "npm run generate:license & npm run generate:contributing & npm run generate:coc & npm run generate:readme && npm run generate:changelog", | ||
"clean:dist": "rm -rf dist", | ||
"clean:compiled": "rm -rf compiled", | ||
"clean": "npm run clean:dist && npm run clean:compiled", | ||
"lint": "tsc --noEmit && tslint -c tslint.json --project tsconfig.json", | ||
"prettier": "prettier --write '{src,documentation}/**/*.{js,ts,json,html,xml,css,md}'", | ||
"prebuild": "npm run clean:dist", | ||
"build": "npm run rollup", | ||
"rollup": "rollup -c rollup.config.js", | ||
"preversion": "npm run lint && NODE_ENV=production npm run build", | ||
"version": "npm run generate:all && git add .", | ||
"release": "np --no-cleanup --no-yarn" | ||
}, | ||
"files": [ | ||
"dist/**/*.*" | ||
], | ||
"keywords": [ | ||
"scroll-behavior", | ||
"smooth-scrolling", | ||
"polyfill", | ||
"css", | ||
"smooth", | ||
"scroll behavior" | ||
], | ||
"contributors": [ | ||
{ | ||
"name": "Frederik Wessberg", | ||
"email": "frederikwessberg@hotmail.com", | ||
"url": "https://github.com/wessberg", | ||
"imageUrl": "https://avatars2.githubusercontent.com/u/20454213?s=460&v=4", | ||
"role": "Lead Developer", | ||
"twitter": "FredWessberg" | ||
} | ||
], | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@wessberg/rollup-plugin-ts": "1.1.28", | ||
"@wessberg/scaffold": "1.0.17", | ||
"@wessberg/ts-config": "^0.0.39", | ||
"rollup": "^1.1.2", | ||
"rollup-plugin-node-resolve": "^4.0.0", | ||
"tslib": "^1.9.3", | ||
"tslint": "^5.12.1", | ||
"typescript": "^3.3.3", | ||
"standard-changelog": "^2.0.6", | ||
"prettier": "^1.16.4", | ||
"pretty-quick": "^1.10.0", | ||
"husky": "^1.3.1", | ||
"np": "^4.0.2" | ||
}, | ||
"dependencies": {}, | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.js", | ||
"browser": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"typings": "./dist/index.d.ts", | ||
"es2015": "./dist/index.js", | ||
"engines": { | ||
"node": ">=4.0.0" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "pretty-quick --staged" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("@wessberg/ts-config/prettier.config"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export interface IAdjustableElement extends Element { | ||
__adjustingScrollPosition?: boolean; | ||
__adjustingScrollPosition?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { SUPPORTS_SCROLL_BEHAVIOR } from "./support/supports-scroll-behavior"; | ||
import { patch } from "./patch/patch"; | ||
import { SUPPORTS_ELEMENT_PROTOTYPE_SCROLL_METHODS } from "./support/supports-element-prototype-scroll-methods"; | ||
import {SUPPORTS_SCROLL_BEHAVIOR} from "./support/supports-scroll-behavior"; | ||
import {patch} from "./patch/patch"; | ||
import {SUPPORTS_ELEMENT_PROTOTYPE_SCROLL_METHODS} from "./support/supports-element-prototype-scroll-methods"; | ||
|
||
if (!SUPPORTS_SCROLL_BEHAVIOR || !SUPPORTS_ELEMENT_PROTOTYPE_SCROLL_METHODS) { | ||
patch(); | ||
patch(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export const ELEMENT_ORIGINAL_SCROLL_INTO_VIEW = | ||
Element.prototype.scrollIntoView; | ||
export const ELEMENT_ORIGINAL_SCROLL_INTO_VIEW = Element.prototype.scrollIntoView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
export const ELEMENT_ORIGINAL_SCROLL_LEFT_SET_DESCRIPTOR = Object.getOwnPropertyDescriptor( | ||
Element.prototype, | ||
"scrollLeft" | ||
)!.set!; | ||
export const ELEMENT_ORIGINAL_SCROLL_LEFT_SET_DESCRIPTOR = Object.getOwnPropertyDescriptor(Element.prototype, "scrollLeft")!.set!; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
export const ELEMENT_ORIGINAL_SCROLL_TOP_SET_DESCRIPTOR = Object.getOwnPropertyDescriptor( | ||
Element.prototype, | ||
"scrollTop" | ||
)!.set!; | ||
export const ELEMENT_ORIGINAL_SCROLL_TOP_SET_DESCRIPTOR = Object.getOwnPropertyDescriptor(Element.prototype, "scrollTop")!.set!; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.