Skip to content

Commit

Permalink
Add prettier config
Browse files Browse the repository at this point in the history
  • Loading branch information
Yevhenii Hyzyla committed Oct 14, 2023
1 parent 1a488e0 commit be7b290
Show file tree
Hide file tree
Showing 7 changed files with 1,880 additions and 2,119 deletions.
47 changes: 15 additions & 32 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,19 @@
module.exports = {
"env": {
"browser": true,
"es2021": true
env: {
browser: true,
es2021: true,
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
},
plugins: ["@typescript-eslint"],
rules: {
indent: ["error", 4],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"],
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
]
}
};
2 changes: 1 addition & 1 deletion .parcelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@parcel/config-webextension"
"extends": "@parcel/config-webextension"
}
9 changes: 9 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/** @type {import("prettier").Config} */
const config = {
trailingComma: "es5",
tabWidth: 4,
semi: true,
singleQuote: false,
};

module.exports = config;
Loading

0 comments on commit be7b290

Please sign in to comment.