Skip to content
Snippets Groups Projects
Commit 44c83e8d authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Add prettier support

parent 3603ea17
No related branches found
No related tags found
1 merge request!124Add prettier
Showing
with 140 additions and 0 deletions
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
], ],
"scripts": { "scripts": {
"test": "lerna run test", "test": "lerna run test",
"format": "lerna run format",
"build": "lerna run build", "build": "lerna run build",
"i18next": "lerna run i18next", "i18next": "lerna run i18next",
"version-patch": "lerna version patch", "version-patch": "lerna version patch",
......
node_modules/
/dist
\ No newline at end of file
{
"bracketSpacing": false,
"singleQuote": true,
"tabWidth": 4,
"printWidth": 100,
"bracketSameLine": true,
"htmlWhitespaceSensitivity": "ignore",
"overrides": [
{
"files": "*.js",
"options": {
"semi": true
}
}
]
}
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
"karma-firefox-launcher": "^2.1.0", "karma-firefox-launcher": "^2.1.0",
"karma-mocha": "^2.0.1", "karma-mocha": "^2.0.1",
"mocha": "^9.0.0", "mocha": "^9.0.0",
"prettier": "^2.5.1",
"rollup": "^2.33.3", "rollup": "^2.33.3",
"rollup-plugin-copy": "^3.1.0", "rollup-plugin-copy": "^3.1.0",
"rollup-plugin-delete": "^2.0.0", "rollup-plugin-delete": "^2.0.0",
...@@ -47,6 +48,9 @@ ...@@ -47,6 +48,9 @@
}, },
"scripts": { "scripts": {
"i18next": "i18next-scanner", "i18next": "i18next-scanner",
"format": "yarn run format:eslint && yarn run format:prettier",
"format:eslint": "eslint \"**/*.{js,ts}\" --fix",
"format:prettier": "prettier \"**/*.{js,json,ts}\" --write",
"build": "npm run build-local", "build": "npm run build-local",
"build-local": "rollup -c", "build-local": "rollup -c",
"build-test": "rollup -c --environment BUILD:test", "build-test": "rollup -c --environment BUILD:test",
......
node_modules/
/dist
\ No newline at end of file
{
"bracketSpacing": false,
"singleQuote": true,
"tabWidth": 4,
"printWidth": 100,
"bracketSameLine": true,
"htmlWhitespaceSensitivity": "ignore",
"overrides": [
{
"files": "*.js",
"options": {
"semi": true
}
}
]
}
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
"karma-firefox-launcher": "^2.1.0", "karma-firefox-launcher": "^2.1.0",
"karma-mocha": "^2.0.1", "karma-mocha": "^2.0.1",
"mocha": "^9.0.0", "mocha": "^9.0.0",
"prettier": "^2.5.1",
"rollup": "^2.33.3", "rollup": "^2.33.3",
"rollup-plugin-copy": "^3.1.0", "rollup-plugin-copy": "^3.1.0",
"rollup-plugin-delete": "^2.0.0", "rollup-plugin-delete": "^2.0.0",
...@@ -43,6 +44,9 @@ ...@@ -43,6 +44,9 @@
}, },
"scripts": { "scripts": {
"clean": "rm dist/*", "clean": "rm dist/*",
"format": "yarn run format:eslint && yarn run format:prettier",
"format:eslint": "eslint \"**/*.{js,ts}\" --fix",
"format:prettier": "prettier \"**/*.{js,json,ts}\" --write",
"build": "yarn run build-local", "build": "yarn run build-local",
"build-local": "rollup -c", "build-local": "rollup -c",
"build-dev": "rollup -c --environment BUILD:development", "build-dev": "rollup -c --environment BUILD:development",
......
node_modules/
/dist
/vendor
{
"bracketSpacing": false,
"singleQuote": true,
"tabWidth": 4,
"printWidth": 100,
"bracketSameLine": true,
"htmlWhitespaceSensitivity": "ignore",
"overrides": [
{
"files": "*.js",
"options": {
"semi": true
}
}
]
}
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
"karma-firefox-launcher": "^2.1.0", "karma-firefox-launcher": "^2.1.0",
"karma-mocha": "^2.0.1", "karma-mocha": "^2.0.1",
"mocha": "^9.0.0", "mocha": "^9.0.0",
"prettier": "^2.5.1",
"rollup": "^2.33.3", "rollup": "^2.33.3",
"rollup-plugin-copy": "^3.1.0", "rollup-plugin-copy": "^3.1.0",
"rollup-plugin-delete": "^2.0.0", "rollup-plugin-delete": "^2.0.0",
...@@ -44,6 +45,9 @@ ...@@ -44,6 +45,9 @@
}, },
"scripts": { "scripts": {
"clean": "rm dist/*", "clean": "rm dist/*",
"format": "yarn run format:eslint && yarn run format:prettier",
"format:eslint": "eslint \"**/*.{js,ts}\" --fix",
"format:prettier": "prettier \"**/*.{js,json,ts}\" --write",
"build": "npm run build-local", "build": "npm run build-local",
"build-local": "rollup -c", "build-local": "rollup -c",
"build-dev": "rollup -c --environment BUILD:development", "build-dev": "rollup -c --environment BUILD:development",
......
node_modules/
/dist
/vendor
{
"bracketSpacing": false,
"singleQuote": true,
"tabWidth": 4,
"printWidth": 100,
"bracketSameLine": true,
"htmlWhitespaceSensitivity": "ignore",
"overrides": [
{
"files": "*.js",
"options": {
"semi": true
}
}
]
}
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
"karma-firefox-launcher": "^2.1.0", "karma-firefox-launcher": "^2.1.0",
"karma-mocha": "^2.0.1", "karma-mocha": "^2.0.1",
"mocha": "^9.0.0", "mocha": "^9.0.0",
"prettier": "^2.5.1",
"rollup": "^2.33.3", "rollup": "^2.33.3",
"rollup-plugin-copy": "^3.1.0", "rollup-plugin-copy": "^3.1.0",
"rollup-plugin-delete": "^2.0.0", "rollup-plugin-delete": "^2.0.0",
...@@ -29,6 +30,9 @@ ...@@ -29,6 +30,9 @@
}, },
"scripts": { "scripts": {
"i18next": "i18next-scanner", "i18next": "i18next-scanner",
"format": "yarn run format:eslint && yarn run format:prettier",
"format:eslint": "eslint \"**/*.{js,ts}\" --fix",
"format:prettier": "prettier \"**/*.{js,json,ts}\" --write",
"clean": "rm dist/*", "clean": "rm dist/*",
"build": "rollup -c", "build": "rollup -c",
"build-test": "rollup -c --environment BUILD:test", "build-test": "rollup -c --environment BUILD:test",
......
node_modules/
/dist
/vendor
{
"bracketSpacing": false,
"singleQuote": true,
"tabWidth": 4,
"printWidth": 100,
"bracketSameLine": true,
"htmlWhitespaceSensitivity": "ignore",
"overrides": [
{
"files": "*.js",
"options": {
"semi": true
}
}
]
}
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
"karma-chrome-launcher": "^3.0.0", "karma-chrome-launcher": "^3.0.0",
"karma-mocha": "^2.0.1", "karma-mocha": "^2.0.1",
"mocha": "^9.0.0", "mocha": "^9.0.0",
"prettier": "^2.5.1",
"rollup": "^2.33.3", "rollup": "^2.33.3",
"rollup-plugin-copy": "^3.1.0", "rollup-plugin-copy": "^3.1.0",
"rollup-plugin-delete": "^2.0.0", "rollup-plugin-delete": "^2.0.0",
...@@ -49,6 +50,9 @@ ...@@ -49,6 +50,9 @@
}, },
"scripts": { "scripts": {
"clean": "rm -r dist/*", "clean": "rm -r dist/*",
"format": "yarn run format:eslint && yarn run format:prettier",
"format:eslint": "eslint \"**/*.{js,ts}\" --fix",
"format:prettier": "prettier \"**/*.{js,json,ts}\" --write",
"build": "npm run build-local", "build": "npm run build-local",
"build-local": "rollup -c", "build-local": "rollup -c",
"build-dev": "rollup -c --environment BUILD:development", "build-dev": "rollup -c --environment BUILD:development",
......
node_modules/
/dist
/vendor
{
"bracketSpacing": false,
"singleQuote": true,
"tabWidth": 4,
"printWidth": 100,
"bracketSameLine": true,
"htmlWhitespaceSensitivity": "ignore",
"overrides": [
{
"files": "*.js",
"options": {
"semi": true
}
}
]
}
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
"karma-firefox-launcher": "^2.1.0", "karma-firefox-launcher": "^2.1.0",
"karma-mocha": "^2.0.0", "karma-mocha": "^2.0.0",
"mocha": "^9.0.0", "mocha": "^9.0.0",
"prettier": "^2.5.1",
"rollup": "^2.33.3", "rollup": "^2.33.3",
"rollup-plugin-copy": "^3.1.0", "rollup-plugin-copy": "^3.1.0",
"rollup-plugin-delete": "^2.0.0", "rollup-plugin-delete": "^2.0.0",
...@@ -46,6 +47,9 @@ ...@@ -46,6 +47,9 @@
}, },
"scripts": { "scripts": {
"clean": "rm dist/*", "clean": "rm dist/*",
"format": "yarn run format:eslint && yarn run format:prettier",
"format:eslint": "eslint \"**/*.{js,ts}\" --fix",
"format:prettier": "prettier \"**/*.{js,json,ts}\" --write",
"build": "npm run build-local", "build": "npm run build-local",
"build-local": "rollup -c", "build-local": "rollup -c",
"build-dev": "rollup -c --environment BUILD:development", "build-dev": "rollup -c --environment BUILD:development",
......
node_modules/
/dist
/vendor
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment