Skip to content

Commit

Permalink
style: Apply prettier config consistently (#2063)
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal authored Dec 5, 2020
1 parent 41b51b4 commit f836802
Show file tree
Hide file tree
Showing 39 changed files with 349 additions and 153 deletions.
4 changes: 0 additions & 4 deletions packages/SwingSet/.prettierrc.json

This file was deleted.

10 changes: 7 additions & 3 deletions packages/SwingSet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@
"@agoric"
]
},
"publishConfig": {
"access": "public"
},
"ava": {
"files": [
"test/**/test-*.js"
Expand All @@ -91,5 +88,12 @@
"esm"
],
"timeout": "2m"
},
"prettier": {
"trailingComma": "all",
"singleQuote": true
},
"publishConfig": {
"access": "public"
}
}
4 changes: 0 additions & 4 deletions packages/acorn-eventual-send/.prettierrc.json

This file was deleted.

4 changes: 4 additions & 0 deletions packages/acorn-eventual-send/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,9 @@
"extends": [
"@agoric"
]
},
"prettier": {
"trailingComma": "all",
"singleQuote": true
}
}
4 changes: 0 additions & 4 deletions packages/agoric-cli/.prettierrc.json

This file was deleted.

4 changes: 4 additions & 0 deletions packages/agoric-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,9 @@
"extends": [
"@agoric"
]
},
"prettier": {
"trailingComma": "all",
"singleQuote": true
}
}
4 changes: 0 additions & 4 deletions packages/bundle-source/.prettierrc.json

This file was deleted.

4 changes: 4 additions & 0 deletions packages/bundle-source/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,9 @@
"extends": [
"@agoric"
]
},
"prettier": {
"trailingComma": "all",
"singleQuote": true
}
}
4 changes: 0 additions & 4 deletions packages/captp/.prettierrc.json

This file was deleted.

4 changes: 4 additions & 0 deletions packages/captp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,9 @@
"extends": [
"@agoric"
]
},
"prettier": {
"trailingComma": "all",
"singleQuote": true
}
}
4 changes: 0 additions & 4 deletions packages/cosmic-swingset/.prettierrc.json

This file was deleted.

4 changes: 4 additions & 0 deletions packages/cosmic-swingset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@
"@agoric"
]
},
"prettier": {
"trailingComma": "all",
"singleQuote": true
},
"publishConfig": {
"access": "public"
},
Expand Down
9 changes: 0 additions & 9 deletions packages/dapp-svelte-wallet/.prettierrc.json

This file was deleted.

67 changes: 15 additions & 52 deletions packages/dapp-svelte-wallet/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,69 +15,32 @@
"lint-check-jessie": "eslint -c '.eslintrc-jessie.js' '**/*.{js,jsx}'"
},
"devDependencies": {
"ava": "^3.12.1",
"eslint": "^6.1.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-jessie": "0.0.3",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-prettier": "^3.1.0",
"prettier": "^1.18.2"
"@agoric/bundle-source": "^1.1.10",
"@agoric/cosmic-swingset": "^0.23.0",
"@agoric/eslint-config": "^0.1.0",
"@agoric/install-ses": "^0.4.0",
"@agoric/registrar": "^0.1.7",
"ava": "^3.12.1"
},
"dependencies": {
"@agoric/assert": "^0.1.0",
"@agoric/eventual-send": "^0.12.0",
"@agoric/ertp": "^0.8.0",
"@agoric/marshal": "^0.2.7",
"@agoric/notifier": "^0.2.3",
"@agoric/promise-kit": "^0.1.7",
"@agoric/store": "^0.3.1",
"@agoric/zoe": "^0.10.0",
"esm": "^3.2.5"
},
"eslintConfig": {
"extends": [
"airbnb-base",
"plugin:prettier/recommended",
"plugin:jsdoc/recommended"
],
"parser": "@typescript-eslint/parser",
"env": {
"es6": true
},
"globals": {
"harden": "readonly"
},
"rules": {
"implicit-arrow-linebreak": "off",
"function-paren-newline": "off",
"arrow-parens": "off",
"strict": "off",
"prefer-destructuring": "off",
"no-else-return": "off",
"no-console": "off",
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"no-return-assign": "off",
"no-param-reassign": "off",
"no-restricted-syntax": [
"off",
"ForOfStatement"
],
"no-unused-expressions": "off",
"no-loop-func": "off",
"no-inner-declarations": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"jsdoc/no-undefined-types": "off",
"jsdoc/require-jsdoc": "off",
"jsdoc/require-property-description": "off",
"jsdoc/require-param-description": "off",
"jsdoc/require-returns": "off",
"jsdoc/require-returns-description": "off"
}
"@agoric"
]
},
"prettier": {
"trailingComma": "all",
"singleQuote": true
},
"keywords": [],
"repository": {
Expand Down
14 changes: 5 additions & 9 deletions packages/dapp-svelte-wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,7 @@
]
},
"devDependencies": {
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-jessie": "^0.0.6",
"eslint-config-prettier": "^6.9.0",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.2",
"prettier": "^1.18.2"
"@agoric/eslint-config": "^0.1.0"
},
"scripts": {
"lint-fix": "exit 0",
Expand All @@ -43,5 +35,9 @@
"extends": [
"@agoric"
]
},
"prettier": {
"trailingComma": "all",
"singleQuote": true
}
}
4 changes: 0 additions & 4 deletions packages/deployment/.prettierrc.json

This file was deleted.

7 changes: 7 additions & 0 deletions packages/deployment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,19 @@
"node-fetch": "^2.6.0",
"temp": "^0.9.0"
},
"devDependencies": {
"@agoric/eslint-config": "^0.1.0"
},
"publishConfig": {
"access": "public"
},
"eslintConfig": {
"extends": [
"@agoric"
]
},
"prettier": {
"trailingComma": "all",
"singleQuote": true
}
}
20 changes: 17 additions & 3 deletions packages/eslint-config/eslint-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
"StaticModuleRecord": "readonly"
},
"rules": {
"quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"comma-dangle": ["error", "always-multiline"],
"implicit-arrow-linebreak": "off",
"function-paren-newline": "off",
"arrow-parens": "off",
Expand Down Expand Up @@ -46,7 +55,8 @@
"error",
{
"devDependencies": [
"rollup.config.js",
"**/*.config.js",
"**/*.config.*.js",
"*test*/**/*.js",
"scripts/**/*.js"
]
Expand All @@ -58,9 +68,13 @@
"jsdoc/require-property-description": "off",
"jsdoc/require-param-description": "off",
"jsdoc/require-returns": "off",
"jsdoc/require-returns-description": "off"
"jsdoc/require-returns-description": "off",
"jsdoc/valid-types": "off"
},
"ignorePatterns": [
"**/dist/**"
"**/output/**",
"bundles/**",
"dist/**",
"test262/**"
]
}
18 changes: 16 additions & 2 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "@agoric/eslint-config",
"version": "0.1.0",
"version": "0.1.0+1-dev",
"description": "Agoric style rules",
"private": true,
"main": "./eslint-config.json",
"repository": {
"type": "git",
Expand All @@ -27,5 +26,20 @@
"prettier": {
"trailingComma": "all",
"singleQuote": true
},
"devDependencies": {
"@typescript-eslint/parser": "^4.1.0",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-jessie": "^0.0.4",
"eslint-config-prettier": "^6.9.0",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-jsdoc": "^30.4.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^4",
"prettier": "^1.13.0"
}
}
4 changes: 0 additions & 4 deletions packages/eventual-send/.prettierrc.json

This file was deleted.

4 changes: 0 additions & 4 deletions packages/marshal/.prettierrc.json

This file was deleted.

4 changes: 4 additions & 0 deletions packages/marshal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
"@agoric"
]
},
"prettier": {
"trailingComma": "all",
"singleQuote": true
},
"publishConfig": {
"access": "public"
},
Expand Down
4 changes: 0 additions & 4 deletions packages/stat-logger/.prettierrc.json

This file was deleted.

4 changes: 4 additions & 0 deletions packages/stat-logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,9 @@
"extends": [
"@agoric"
]
},
"prettier": {
"trailingComma": "all",
"singleQuote": true
}
}
4 changes: 0 additions & 4 deletions packages/swing-store-lmdb/.prettierrc.json

This file was deleted.

4 changes: 4 additions & 0 deletions packages/swing-store-lmdb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,9 @@
"extends": [
"@agoric"
]
},
"prettier": {
"trailingComma": "all",
"singleQuote": true
}
}
4 changes: 0 additions & 4 deletions packages/swing-store-simple/.prettierrc.json

This file was deleted.

4 changes: 4 additions & 0 deletions packages/swing-store-simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,9 @@
"extends": [
"@agoric"
]
},
"prettier": {
"trailingComma": "all",
"singleQuote": true
}
}
4 changes: 0 additions & 4 deletions packages/swingset-runner/.prettierrc.json

This file was deleted.

Loading

0 comments on commit f836802

Please sign in to comment.