Skip to content

Commit

Permalink
chore(style): added prettier to fxa-content-server
Browse files Browse the repository at this point in the history
  • Loading branch information
dannycoates committed Jun 25, 2019
1 parent b22d8cd commit 8701348
Show file tree
Hide file tree
Showing 830 changed files with 59,278 additions and 50,438 deletions.
27 changes: 12 additions & 15 deletions packages/fxa-content-server/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
plugins:
- fxa
- sorting
extends: plugin:fxa/client
extends:
- plugin:fxa/client
- prettier

# Required for `import( )` webpack feature
parser: babel-eslint

rules:
brace-style: 2
handle-callback-err: 0
key-spacing: [2, {"beforeColon": false, "afterColon": true}]
keyword-spacing: 2
linebreak-style: [2, "unix"]
max-len: [2, 160]
new-cap: [2, {"newIsCap": true, "capIsNew": false, "newIsCapExceptionPattern": "^FxaClient" }]
no-console: 0
no-multi-str: 2
no-useless-escape: 0
sorting/sort-object-props: [ 2, { "ignoreCase": true, "ignoreMethods": true, "ignoreMethodSiblings": true, "ignorePrivate": true } ]
space-infix-ops: 2
space-unary-ops: [2, {"nonwords": false, "overrides": {"~": true, "!": true}}]
strict: 0
no-console: off
camelcase: off
strict: off
no-useless-escape: off
handle-callback-err: off

parserOptions:
ecmaVersion: 2018
sourceType: module
1 change: 1 addition & 0 deletions packages/fxa-content-server/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ browser_modules
!.npmignore
!.travis.yml
!.sass-lint.yml
!.prettier*
*~

### SASS ###
Expand Down
20 changes: 20 additions & 0 deletions packages/fxa-content-server/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
LICENSE
.*
*.sh
*.txt
*.mustache
*.ico
*.png
*.docker
*.json-dist
Dockerfile*
app/fonts/*
app/l10n/*
app/images/*
locale/*
fxa-content-server-l10n/*
dist/*
app/scripts/vendor/*
tests/teamcity/*
tests/tools/certs/*
server/templates/pages/dist/*
4 changes: 4 additions & 0 deletions packages/fxa-content-server/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "es5"
}

0 comments on commit 8701348

Please sign in to comment.