Skip to content

Instantly share code, notes, and snippets.

@tomdavidson
Last active March 20, 2021 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomdavidson/0b24e571a412e8cfd29ab556d21ebe21 to your computer and use it in GitHub Desktop.
Save tomdavidson/0b24e571a412e8cfd29ab556d21ebe21 to your computer and use it in GitHub Desktop.
coordinated code configs
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false
[*.md]
trim_trailing_whitespace = false
[*.t]
insert_final_newline = false
# Define text file attributes.
# - Treat them as text.
# - Ensure no CRLF line-endings, neither on checkout nor on checkin.
# - Detect whitespace errors.
# - Exposed by default in `git diff --color` on the CLI.
# - Validate with `git diff --check`.
# - Deny applying with `git apply --whitespace=error-all`.
# - Fix automatically with `git apply --whitespace=fix`.
* text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
# Define binary file attributes.
# - Do not treat them as text, exclude from diffs
*.gif -text -diff linguist-generated=true
*.ico -text -diff linguist-generated=true
*.jpeg -text -diff linguist-generated=true
*.jpg -text -diff linguist-generated=true
*.otf -text -diff linguist-generated=true
*.png -text -diff linguist-generated=true
*.svgz -text -diff linguist-generated=true
*.ttf -text -diff linguist-generated=true
*.zip -text -diff linguist-generated=true
*.gz -text -diff linguist-generated=true
*.tar.gz -text -diff linguist-generated=true
dist/** -text -diff linguist-generated=true
yarn.lock -text -diff linguist-generated=true
*.tfstate -text -diff linguist-generated=true
*.ejs.t -linguist-detectable
module.exports = {
singleQuote: true,
// default
trailingComma: 'es5',
// .editorconfig overrides, but max_line_length deprecated is being debated, so keep it here:
// https://github.com/editorconfig/editorconfig/issues/387
printWidth: 100,
// .editorconfig overrides
tabWidth: 2,
useTabs: false,
// defined in .editorconfig and .gitattrs
endOfLine: 'lf',
};
// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
// "folke.vscode-monorepo-workspace"
]
}
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false
[*.md]
trim_trailing_whitespace = false
[*.t]
insert_final_newline = false
{
"name": "root",
"private": true,
"workspaces": [
"packages/*",
"apps/*"
],
"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@commitlint/cli": "^8.1.0",
"@commitlint/config-conventional": "^8.1.0",
"@commitlint/config-lerna-scopes": "^8.1.0",
"@rollup/plugin-commonjs": "^11.0.2",
"@rollup/plugin-json": "^4.0.2",
"@typescript-eslint/eslint-plugin": "^2.0.0",
"@typescript-eslint/parser": "^2.19.2",
"awesome-typescript-loader": "^5.2.1",
"commitizen": "^4.0.3",
"cross-env": "^7.0.0",
"eslint": "^6.2.2",
"eslint-config-prettier": "^6.1.0",
"eslint-import-resolver-lerna": "^1.1.0",
"eslint-import-resolver-typescript": "^2.0.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^23.6.0",
"eslint-plugin-json": "^2.0.1",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.1.0","express": "^4.17.1",
"fnlint": "^1.5.1",
"globby": "^11",
"husky": "^4.2.1",
"hygen": "^5.0.3",
"jest": "^25.1.0",
"lint-staged": "^10.0.7",
"prettier": "^1.18.2",
"pretty-quick": "^2.0.1",
"rollup": "^1.31.1",
"rollup-plugin-copy": "^3.3.0",
"rollup-plugin-generate-package-json": "^3.2.0",
"rollup-plugin-typescript2": "^0.26.0",
"semantic-release": "^17.0.8",
"semantic-release-monorepo": "^7.0.2",
"shellcheck": "^0.4.1",
"stdout-stderr": "^0.1.13",
"trash-cli": "^3.0.0",
"ts-jest": "^25.2.1",
"ts-node": "^8",
"tslib": "^1.11.0",
"typescript": "^3.8.3",
},
"scripts": {
"clean": "find . -type d -name dist -not -path './node_modules/*' -exec rm -rf {} +",
"new-package": "hygen package new --name ",
"new-app": "hygen app new --name ",
"new-adr": "hygen adr new --name",
"build": "ultra -r build",
"commit": "git-cz",
"dev": "ultra -r watch",
"lint:files": "./towel.sh lint:antifiles",
"lint:sh": "shellcheck *.sh",
"lint": "eslint --fix --ext .js,.ts,.md --ignore-path ./.eslintignore --no-error-on-unmatched
pattern apps/** packages/**",
"prettier:write": "prettier --write \"./**/*.{js,ts,md,html,css,json,yaml,toml}\"",
"release": "ultra -r semantic-release --debug",
"test:unit": "ultra -r test:unit:nodeps",
"test:integration": "ultra -r test:integration"},
"husky": {
"hooks": {
"pre-commit": "cross-env NODE_ENV=production lint-staged"
}
},
"lint-staged": {
"*.{js,ts,md,html,css,json,yaml,toml}": "prettier --write",
"{packages,apps}/**/*.{js,ts}": "yarn lint",
"*": "yarn lint:files",
"*.{sh}": "yarn lint:sh"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional",
"@commitlint/config-lerna-scopes"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment