Skip to content

Commit

Permalink
Formatting update
Browse files Browse the repository at this point in the history
  • Loading branch information
aminomancer committed Nov 6, 2022
1 parent d8fa786 commit 1d4efe3
Show file tree
Hide file tree
Showing 128 changed files with 11,584 additions and 11,948 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_style = space
indent_size = 2
36 changes: 17 additions & 19 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,33 +33,31 @@ module.exports = {
"import/extensions": [".mjs"],
},
rules: {
"arrow-body-style": "off",
complexity: ["warn", { max: 50 }],
"consistent-return": "off",
curly: ["error", "multi-line", "consistent"],
"linebreak-style": ["error", "unix"],
"mozilla/valid-lazy": "off",
"no-console": "warn",
"no-empty": "off",
"no-eval": "off",
"no-implied-eval": "error",
"no-unused-vars": "off",
"mozilla/valid-lazy": "off",
"consistent-return": "off",
"no-empty": "off",
complexity: ["warn", { max: 50 }],
curly: ["error", "multi-line"],
"no-console": "warn",
"prettier/prettier": [
"error",
{
endOfLine: "auto",
arrowParens: "avoid",
printWidth: 80,
tabWidth: 2,
trailingComma: "es5",
quoteProps: "preserve",
},
],
"prefer-arrow-callback": "off",
"prettier/prettier": ["error", {}, { usePrettierrc: true }],
},
ignorePatterns: ["node_modules", "utils/boot.jsm"],
// Ignore eslint configurations in parent directories.
root: true,
// allow external repositories that use the plugin to pick them up as well.
extends: ["plugin:mozilla/recommended"],
plugins: ["mozilla", "import"],
extends: [
"eslint:recommended",
"prettier/prettier",
"plugin:prettier/recommended",
"plugin:mozilla/recommended",
],
plugins: ["prettier", "mozilla", "import"],
overrides: [
{
files: ["*@aminomancer/**", "extensions/**"],
Expand Down
Empty file added .git-blame-ignore-revs
Empty file.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto eol=lf
18 changes: 18 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"arrowParens": "avoid",
"bracketSameLine": true,
"bracketSpacing": true,
"embeddedLanguageFormatting": "auto",
"endOfLine": "lf",
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"overrides": [
{ "files": ["*.css", "*.scss", "*.md"], "options": { "printWidth": 1000 } }
]
}
21 changes: 21 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"editor.formatOnPaste": false,
"editor.formatOnType": false,
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"[javascript][javascriptreact][typescript][typescriptreact]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint",
"editor.codeActionsOnSave": {}
},
"[json][jsonc]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
},
"[html]": { "editor.defaultFormatter": "rvest.vs-code-prettier-eslint" },
"[yaml]": { "editor.defaultFormatter": "rvest.vs-code-prettier-eslint" },
"[markdown]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
},
"[css][sass][scss][less]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
}
}
Loading

0 comments on commit 1d4efe3

Please sign in to comment.