Skip to content

Commit 491b134

Browse files
committed
add prettier plugin config
1 parent 0b53488 commit 491b134

File tree

4 files changed

+64
-6
lines changed

4 files changed

+64
-6
lines changed

.eslintrc.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module.exports = {
55
},
66
plugins: [
77
'@typescript-eslint',
8+
'prettier',
89
'import',
910
'prefer-arrow',
1011
],
@@ -17,6 +18,7 @@ module.exports = {
1718
extends: [
1819
'plugin:import/typescript',
1920
'plugin:@typescript-eslint/recommended',
21+
'plugin:prettier/recommended',
2022
],
2123
settings: {
2224
'import/parsers': {
@@ -33,13 +35,7 @@ module.exports = {
3335
rules: {
3436
// Require use of the `import { foo } from 'bar';` form instead of `import foo = require('bar');`
3537
'@typescript-eslint/no-require-imports': ['error'],
36-
'@typescript-eslint/indent': ['error', 4],
3738

38-
// Style
39-
'quotes': ['error', 'single', { avoidEscape: true }],
40-
// ensures clean diffs,
41-
// see https://medium.com/@nikgraf/why-you-should-enforce-dangling-commas-for-multiline-statements-d034c98e36f8
42-
'comma-dangle': ['error', 'always-multiline'],
4339
// Require all imported dependencies are actually declared in package.json
4440
'import/no-extraneous-dependencies': ['error'],
4541
'import/no-unresolved': ['error'],

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
We're excited to share our progress with adding new languages to the CloudFormation CLI!
44
> This plugin is an early preview prepared by the community, and not ready for production use.
55
6+
7+
[![License MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/eduardomourar/cloudformation-cli-typescript-plugin/issues) [![Project Status: WIP – Initial development](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
8+
9+
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/eduardomourar/cloudformation-cli-typescript-plugin/Continuous%20Integration) ![GitHub release](https://img.shields.io/github/v/release/eduardomourar/cloudformation-cli-typescript-plugin?include_prereleases)
10+
[![nodejs version](https://img.shields.io/badge/dynamic/json?color=brightgreen&url=https://raw.githubusercontent.com/eduardomourar/cloudformation-cli-typescript-plugin/master/package.json&query=$.engines.node&label=nodejs)](https://nodejs.org/)
11+
612
## AWS CloudFormation Resource Provider TypeScript Plugin
713

814
The CloudFormation CLI (cfn) allows you to author your own resource providers that can be used by CloudFormation.

package-lock.json

Lines changed: 45 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,27 @@
4848
"@typescript-eslint/eslint-plugin": "^2.29.0",
4949
"@typescript-eslint/parser": "^2.19.2",
5050
"eslint": "^6.8.0",
51+
"eslint-config-prettier": "^6.11.0",
5152
"eslint-import-resolver-node": "^0.3.3",
5253
"eslint-import-resolver-typescript": "^2.0.0",
5354
"eslint-plugin-import": "^2.20.2",
5455
"eslint-plugin-prefer-arrow": "^1.1.7",
56+
"eslint-plugin-prettier": "^3.1.3",
5557
"jest": "^25.3.0",
5658
"minimist": ">=1.2.5",
59+
"prettier": "2.0.5",
5760
"ts-jest": "^25.4.0",
5861
"typescript": "^3.7.0"
5962
},
6063
"optionalDependencies": {
6164
"aws-sdk": "^2.656.0"
65+
},
66+
"prettier": {
67+
"parser": "typescript",
68+
"singleQuote": true,
69+
"tabWidth": 4,
70+
"printWidth": 88,
71+
"trailingComma": "es5",
72+
"endOfLine": "lf"
6273
}
6374
}

0 commit comments

Comments
 (0)