Skip to content

Commit

Permalink
code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Rohrmeier committed Mar 19, 2022
1 parent e04050c commit 93b0ebc
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/node_modules
**/storybook-static
**/build
**/dist
**/public
34 changes: 34 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"ignorePatterns": [
],
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint"],
"rules": {
"indent": ["warn", 2],
"linebreak-style": ["warn", "unix"],
"quotes": ["warn", "single"],
"semi": ["warn", "never"],
"react/react-in-jsx-scope": "off"
},
"settings": {
"react": {
"version": "detect"
}
}
}
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.role-chip-wrapper{
background-color: #F2F3FB;
.role-chip-wrapper {
background-color: #f2f3fb;
padding: 8px 12px;
border-radius: 8px;
width: 60%;
text-align: center;
color:#676BC6;
color: #676bc6;
font-family: LibreFranklin-Medium, sans-serif;
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export class UserAdministrationApi extends HttpClient {
JSON.stringify(invite),
{
headers: {
'content-type': 'application/json'
}
'content-type': 'application/json',
},
}
)
}
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{
"version": "0.0.0",
"private": "true",
"workspaces": [
"cx-portal",
"cx-portal-shared-components"
],
"scripts": {
"release": "yarn version --patch && git tag \"$npm_package_version\" && git push && git push --tags",
"lint": "eslint cx-portal cx-portal-shared-components",
"lint:fix": "eslint cx-portal cx-portal-shared-components --fix",
"pretty": "prettier --write \"./cx-portal*/src/**/*.{ts,tsx,js,jsx,json,css,sass,scss,xml,md}\"",
"licenses": "find node_modules -name package.json -exec jq -r '.|\"\\(.name),\\(.version),\\(.license)\"' {} \\; | sort | uniq > cx-portal/public/third-party-licenses.txt"
}
}

0 comments on commit 93b0ebc

Please sign in to comment.