Skip to content

Commit

Permalink
chore: format JSON files with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya committed Jun 11, 2020
1 parent 34e4f27 commit b30a7cb
Show file tree
Hide file tree
Showing 42 changed files with 4,978 additions and 5,752 deletions.
19 changes: 3 additions & 16 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
# Unix-style newlines with a newline ending every file
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# 2 spaces for indentation
indent_size = 2
indent_size = 4
indent_style = space
# 120 characters max per line
max_line_length = 120

# some files use 4 spaces for indentation
[*.{js,jsx,ts,tsx,java,xml,md}]
indent_size = 4

[*.java]
continuation_indent_size = 8

[tsconfig.json]
indent_size = 4
[*.{scss,css}]
indent_size = 2
8 changes: 4 additions & 4 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"printWidth": 120,
"tabWidth": 4,
"trailingComma": "all",
"arrowParens": "avoid"
"printWidth": 120,
"tabWidth": 4,
"trailingComma": "all",
"arrowParens": "avoid"
}
20 changes: 10 additions & 10 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
// for a beautiful editing experience:
"giladgray.theme-blueprint",
// for consistent editor settings:
"EditorConfig.EditorConfig",
// for TS and JS:
"dbaeumer.vscode-eslint"
]
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
// for a beautiful editing experience:
"giladgray.theme-blueprint",
// for consistent editor settings:
"EditorConfig.EditorConfig",
// for TS and JS:
"dbaeumer.vscode-eslint"
]
}
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"editor.tabSize": 2
},
"eslint.workingDirectories": [
{ "pattern": "./packages/*" }
{
"pattern": "./packages/*"
}
]
}
8 changes: 1 addition & 7 deletions config/tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@
"experimentalDecorators": true,
"importHelpers": true,
"jsx": "react",
"lib": [
"dom",
"dom.iterable",
"es5",
"es2015.collection",
"es2015.iterable"
],
"lib": ["dom", "dom.iterable", "es5", "es2015.collection", "es2015.iterable"],
"module": "es2015",
"moduleResolution": "node",
"noFallthroughCasesInSwitch": true,
Expand Down
8 changes: 4 additions & 4 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lerna": "3.22.0",
"npmClient": "yarn",
"useWorkspaces": true,
"version": "independent"
"lerna": "3.22.0",
"npmClient": "yarn",
"useWorkspaces": true,
"version": "independent"
}
150 changes: 75 additions & 75 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,77 +1,77 @@
{
"name": "blueprintjs-monorepo",
"version": "3.25.0",
"private": true,
"description": "A React UI toolkit for the web.",
"workspaces": [
"packages/*"
],
"scripts": {
"bundle": "lerna run --parallel bundle",
"compile": "lerna run compile",
"clean": "lerna run --parallel clean",
"copy:ci-config": "mkdir -p site/.circleci && cp .circleci/config-master.yml site/.circleci/config.yml",
"copy:docs-app": "cp -rf packages/docs-app/dist/ site/docs",
"copy:landing-app": "cp -rf packages/landing-app/dist/ site",
"deploy": "gh-pages -d site -b master",
"dev": "lerna run dev --parallel --scope \"!@blueprintjs/{landing-app,table-dev-app}\"",
"dev:core": "lerna run dev --parallel --scope \"@blueprintjs/{core,icons,docs-app}\"",
"dev:docs": "lerna run dev --parallel --scope \"@blueprintjs/{core,docs-app,docs-theme}\"",
"dev:datetime": "lerna run dev --parallel --scope \"@blueprintjs/{core,datetime,timezone,docs-app}\"",
"dev:landing": "lerna run dev --parallel --scope \"@blueprintjs/{core,landing-app}\"",
"dev:select": "lerna run dev --parallel --scope \"@blueprintjs/{core,select,docs-app}\"",
"dev:table": "lerna run dev --parallel --scope \"@blueprintjs/table-dev-app\"",
"dist": "run-s dist:libs dist:apps",
"dist:libs": "lerna run dist --parallel --scope \"@blueprintjs/{core,datetime,docs-theme,icons,select,table,timezone}\"",
"dist:apps": "lerna run dist --parallel --scope \"@blueprintjs/{docs-app,landing-app,table-dev-app}\"",
"docs-data": "lerna run compile --scope \"@blueprintjs/docs-data\"",
"format": "prettier --write \"./**/*.{ts,tsx}\"",
"format-check": "prettier --check \"./**/*.{ts,tsx}\"",
"lint": "lerna run --parallel lint",
"lint-fix": "lerna run --parallel lint-fix",
"serve": "http-server site",
"site": "npm-run-all site:clean -p copy:* -s serve",
"site:clean": "git clean -xdfq site/",
"test": "lerna run --parallel test",
"verify": "npm-run-all -s compile dist:libs dist:apps -p test lint format-check"
},
"dependencies": {
"@types/chai": "4.2.11",
"@types/classnames": "2.2.10",
"@types/enzyme": "3.10.5",
"@types/enzyme-adapter-react-16": "1.0.6",
"@types/mocha": "7.0.2",
"@types/prop-types": "15.7.3",
"@types/react": "16.9.35",
"@types/react-dom": "16.9.8",
"@types/react-lifecycles-compat": "^3.0.1",
"@types/react-transition-group": "4.4.0",
"@types/sinon": "9.0.4",
"@types/webpack": "4.41.13",
"chai": "^4.2.0",
"circle-github-bot": "^2.1.0",
"cross-env": "^7.0.2",
"eslint": "^7.1.0",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-prettier": "^3.1.3",
"gh-pages": "^2.2.0",
"http-server": "^0.12.3",
"lerna": "^3.22.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.5",
"sinon": "^9.0.2",
"stylelint-config-palantir": "^5.0.0",
"stylelint-scss": "^3.17.2",
"typescript": "~3.9.3",
"yarn-deduplicate": "^2.0.0"
},
"engines": {
"node": ">=10"
},
"repository": {
"type": "git",
"url": "git@github.com:palantir/blueprint.git"
},
"author": "Palantir Technologies",
"license": "Apache-2.0"
"name": "blueprintjs-monorepo",
"version": "3.25.0",
"private": true,
"description": "A React UI toolkit for the web.",
"workspaces": [
"packages/*"
],
"scripts": {
"bundle": "lerna run --parallel bundle",
"compile": "lerna run compile",
"clean": "lerna run --parallel clean",
"copy:ci-config": "mkdir -p site/.circleci && cp .circleci/config-master.yml site/.circleci/config.yml",
"copy:docs-app": "cp -rf packages/docs-app/dist/ site/docs",
"copy:landing-app": "cp -rf packages/landing-app/dist/ site",
"deploy": "gh-pages -d site -b master",
"dev": "lerna run dev --parallel --scope \"!@blueprintjs/{landing-app,table-dev-app}\"",
"dev:core": "lerna run dev --parallel --scope \"@blueprintjs/{core,icons,docs-app}\"",
"dev:docs": "lerna run dev --parallel --scope \"@blueprintjs/{core,docs-app,docs-theme}\"",
"dev:datetime": "lerna run dev --parallel --scope \"@blueprintjs/{core,datetime,timezone,docs-app}\"",
"dev:landing": "lerna run dev --parallel --scope \"@blueprintjs/{core,landing-app}\"",
"dev:select": "lerna run dev --parallel --scope \"@blueprintjs/{core,select,docs-app}\"",
"dev:table": "lerna run dev --parallel --scope \"@blueprintjs/table-dev-app\"",
"dist": "run-s dist:libs dist:apps",
"dist:libs": "lerna run dist --parallel --scope \"@blueprintjs/{core,datetime,docs-theme,icons,select,table,timezone}\"",
"dist:apps": "lerna run dist --parallel --scope \"@blueprintjs/{docs-app,landing-app,table-dev-app}\"",
"docs-data": "lerna run compile --scope \"@blueprintjs/docs-data\"",
"format": "prettier --write \"./**/*.{ts,tsx,json}\"",
"format-check": "prettier --check \"./**/*.{ts,tsx,json}\"",
"lint": "lerna run --parallel lint",
"lint-fix": "lerna run --parallel lint-fix",
"serve": "http-server site",
"site": "npm-run-all site:clean -p copy:* -s serve",
"site:clean": "git clean -xdfq site/",
"test": "lerna run --parallel test",
"verify": "npm-run-all -s compile dist:libs dist:apps -p test lint format-check"
},
"dependencies": {
"@types/chai": "4.2.11",
"@types/classnames": "2.2.10",
"@types/enzyme": "3.10.5",
"@types/enzyme-adapter-react-16": "1.0.6",
"@types/mocha": "7.0.2",
"@types/prop-types": "15.7.3",
"@types/react": "16.9.35",
"@types/react-dom": "16.9.8",
"@types/react-lifecycles-compat": "^3.0.1",
"@types/react-transition-group": "4.4.0",
"@types/sinon": "9.0.4",
"@types/webpack": "4.41.13",
"chai": "^4.2.0",
"circle-github-bot": "^2.1.0",
"cross-env": "^7.0.2",
"eslint": "^7.1.0",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-prettier": "^3.1.3",
"gh-pages": "^2.2.0",
"http-server": "^0.12.3",
"lerna": "^3.22.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.5",
"sinon": "^9.0.2",
"stylelint-config-palantir": "^5.0.0",
"stylelint-scss": "^3.17.2",
"typescript": "~3.9.3",
"yarn-deduplicate": "^2.0.0"
},
"engines": {
"node": ">=10"
},
"repository": {
"type": "git",
"url": "git@github.com:palantir/blueprint.git"
},
"author": "Palantir Technologies",
"license": "Apache-2.0"
}
Loading

0 comments on commit b30a7cb

Please sign in to comment.