Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sort typescript imports with "import-sort" module
- Loading branch information
Showing
108 changed files
with
5,283 additions
and
366 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
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,6 @@ | ||
{ | ||
".ts": { | ||
"parser": "typescript", | ||
"style": "@email-securely-app/import-sort-style" | ||
} | ||
} |
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,16 @@ | ||
{ | ||
"linters": { | ||
"*.ts": [ | ||
"import-sort --write", | ||
"yarn run lint:ts:base --fix", | ||
"git add" | ||
], | ||
"*.js": [ | ||
"yarn run lint:js:base --fix", | ||
"git add" | ||
] | ||
}, | ||
"ignore": [ | ||
"./packages" | ||
] | ||
} |
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 @@ | ||
/* |
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
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,19 @@ | ||
# Editor configuration, see http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
max_line_length=140 | ||
|
||
[{*.json,*.yml}] | ||
indent_size = 2 | ||
|
||
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false |
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,11 @@ | ||
# IDE Idea | ||
.idea | ||
*.iml | ||
|
||
# Node.js | ||
node_modules | ||
npm-debug.log | ||
yarn-error.log | ||
|
||
/dist/ | ||
/output/ |
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,6 @@ | ||
{ | ||
".ts": { | ||
"parser": "typescript", | ||
"style": "@email-securely-app/import-sort-style" | ||
} | ||
} |
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,15 @@ | ||
{ | ||
"linters": { | ||
"*.ts": [ | ||
"import-sort --write" | ||
], | ||
"src/**/*.ts": [ | ||
"yarn run lint:src:base --fix", | ||
"git add" | ||
], | ||
"test/**/*.ts": [ | ||
"yarn run lint:test:base --fix", | ||
"git add" | ||
] | ||
} | ||
} |
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,6 @@ | ||
/* | ||
|
||
!/dist/ | ||
!/LICENSE | ||
!/package.json | ||
!/README.md |
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,18 @@ | ||
# https://docs.travis-ci.com/user/customizing-the-build/ | ||
|
||
if: tag IS blank | ||
os: | ||
- linux | ||
- osx | ||
sudo: false | ||
language: node_js | ||
node_js: | ||
- "8" | ||
- "10" | ||
install: | ||
- yarn install | ||
script: | ||
- node --version | ||
- npm --version | ||
- yarn --version | ||
- yarn run dist |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2018 Vladimir Yakovlev | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 @@ | ||
Custom [import-sort](https://github.com/renke/import-sort) style rule built for use by [email-securely-app](https://github.com/vladimiry/email-securely-app). |
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,13 @@ | ||
environment: | ||
matrix: | ||
- nodejs_version: "8" | ||
- nodejs_version: "10" | ||
install: | ||
- ps: Install-Product node $env:nodejs_version | ||
- yarn install | ||
build: off | ||
test_script: | ||
- node --version | ||
- npm --version | ||
- yarn --version | ||
- yarn run dist |
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,55 @@ | ||
{ | ||
"name": "@email-securely-app/import-sort-style", | ||
"version": "0.1.0", | ||
"description": "Custom \"import-sort\" style rule built for use by \"email-securely-app\"", | ||
"author": "Vladimir Yakovlev <dev.vladimir.y@gmail.com> (https://github.com/vladimiry)", | ||
"license": "MIT", | ||
"homepage": "https://github.com/vladimiry/email-securely-app", | ||
"repository": "git@github.com:vladimiry/email-securely-app.git", | ||
"keywords": [ | ||
"import-sort", | ||
"typescript", | ||
"import-formatter", | ||
"formatter", | ||
"formatting" | ||
], | ||
"main": "./dist/index.js", | ||
"scripts": { | ||
"precommit": "lint-staged", | ||
"src:compile": "tsc --listEmittedFiles -p ./src/tsconfig.json", | ||
"src:compile:watch": "tsc -w -p ./src/tsconfig.json", | ||
"dist:clean": "rimraf ./dist", | ||
"dist": "npm-run-all dist:clean lint src:compile test", | ||
"lint:src:base": "tslint -p ./src/tsconfig.json -c ./tslint.json", | ||
"lint:src": "yarn run lint:src:base \"./src/lib/**/*.ts\"", | ||
"lint:test:base": "tslint -p ./test/tsconfig.json -c ./test/tslint.json", | ||
"lint:test": "yarn run lint:test:base \"./test/**/*.ts\"", | ||
"lint": "npm-run-all lint:src lint:test", | ||
"test": "cross-env TS_NODE_PROJECT=./test/tsconfig.json ava --verbose \"./test/**/*.spec.ts\"" | ||
}, | ||
"ava": { | ||
"compileEnhancements": false, | ||
"extensions": [ | ||
"ts" | ||
], | ||
"require": [ | ||
"ts-node/register" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@email-securely-app/import-sort-style": "0.1.0", | ||
"@types/node": "^10.5.3", | ||
"ava": "^1.0.0-beta.7", | ||
"cross-env": "^5.2.0", | ||
"husky": "^0.14.3", | ||
"import-sort-parser": "^5.0.0", | ||
"import-sort-style": "^5.0.0", | ||
"lint-staged": "^7.2.2", | ||
"npm-run-all": "^4.1.3", | ||
"rimraf": "^2.6.2", | ||
"ts-node": "^7.0.1", | ||
"tslint": "^5.11.0", | ||
"tslint-rules-bunch": "^0.0.5", | ||
"typescript": "^3.0.1" | ||
} | ||
} |
Oops, something went wrong.