Skip to content

Commit

Permalink
fix(prettier-plugin-sh): support .env.* files
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Oct 21, 2019
1 parent c20882f commit 2573431
Show file tree
Hide file tree
Showing 4 changed files with 708 additions and 635 deletions.
37 changes: 19 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,40 +21,41 @@
"type-coverage": "type-coverage --cache --detail --ignore-files *.d.ts --strict"
},
"devDependencies": {
"@1stg/babel-preset": "^0.7.4",
"@1stg/commitlint-config": "^0.1.0",
"@1stg/eslint-config": "^0.12.20",
"@1stg/husky-config": "^0.3.1",
"@1stg/lint-staged": "^0.8.6",
"@1stg/prettier-config": "^0.4.2",
"@1stg/babel-preset": "^0.7.9",
"@1stg/commitlint-config": "^0.1.2",
"@1stg/eslint-config": "^0.12.21",
"@1stg/husky-config": "^0.3.2",
"@1stg/lint-staged": "^0.8.11",
"@1stg/prettier-config": "^0.4.3",
"@1stg/remark-config": "^0.2.2",
"@1stg/tsconfig": "^0.6.0",
"@1stg/tsconfig": "^0.6.1",
"@1stg/tslint-config": "^0.4.3",
"@babel/core": "^7.6.2",
"@babel/types": "^7.6.1",
"@babel/core": "^7.6.4",
"@babel/types": "^7.6.3",
"@commitlint/cli": "^8.2.0",
"@pkgr/imagemin": "^0.1.2",
"@pkgr/rollup": "^0.2.4",
"@types/jest": "^24.0.18",
"@pkgr/imagemin": "^0.1.3",
"@pkgr/rollup": "^0.3.0",
"@types/jest": "^24.0.19",
"@types/js-yaml": "^3.12.1",
"@types/lodash": "^4.14.141",
"@types/lodash": "^4.14.144",
"@types/prettier": "^1.18.3",
"eslint": "^6.5.1",
"husky": "^3.0.8",
"husky": "^3.0.9",
"jest": "^24.9.0",
"js-yaml": "^3.13.1",
"lerna": "^3.16.4",
"lerna": "^3.18.1",
"lerna-changelog": "^0.8.2",
"lint-staged": "^9.4.1",
"lint-staged": "^9.4.2",
"lodash": "^4.17.15",
"npm-run-all": "^4.1.5",
"prettier": "^1.18.2",
"react": "^16.10.2",
"rollup": "^1.23.1",
"rollup": "^1.25.1",
"ts-jest": "^24.1.0",
"ts-node": "^8.4.1",
"tslint": "^5.20.0",
"type-coverage": "^2.3.0"
"type-coverage": "^2.3.0",
"typescript": "^3.7.0-beta"
},
"resolutions": {
"babel-eslint": "^10.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/sh/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img src="https://raw.githubusercontent.com/rx-ts/prettier/master/assets/sh.png" height="50" />
<img src="https://raw.githubusercontent.com/rx-ts/prettier/master/assets/sh.png" height="100" />
</p>

# prettier-plugin-sh ![npm bundle size](https://img.shields.io/bundlephobia/min/prettier-plugin-sh) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/prettier-plugin-sh)
Expand Down
1 change: 1 addition & 0 deletions packages/sh/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const EXTRA_LANGUAGES: SupportLanguage[] = [
name: 'dotenv',
parsers: ['sh'],
extensions: ['.env'],
filenames: ['.env.*'],
vscodeLanguageIds: ['dotenv'],
},
]
Expand Down

0 comments on commit 2573431

Please sign in to comment.