Skip to content

Commit

Permalink
Add ESLint, Prettier & fix issue with CommenJS get loaded as ES Module (
Browse files Browse the repository at this point in the history
#14)

* Add ESLint, fix issue with load the lib.common.js as ES Module, just change the filetype to cjs
* Add .yarn to be ignored from lint
* Address ES module error issue

* Bump up Bootstrap Icons to v1.11.3
  • Loading branch information
tobiasquadflieg authored Jan 26, 2024
1 parent 83afe84 commit a69b87f
Show file tree
Hide file tree
Showing 27 changed files with 355,505 additions and 261,530 deletions.
24 changes: 12 additions & 12 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
root = true

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

[*.md]
trim_trailing_whitespace = false
root = true

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

[*.md]
trim_trailing_whitespace = false
20 changes: 20 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
env: {
browser: true,
node: true,
es6: true,
amd: true,
},
extends: [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:vue/vue3-recommended",
],
parser: "vue-eslint-parser",
plugins: ["@typescript-eslint"],
parserOptions: {
parser: "@typescript-eslint/parser",
},
ignorePatterns: ["node_modules/", "dist/", ".yarn/"],
root: true,
};
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
*.log*
.env
dist
.DS_Store
.idea
.yarn
Loading

0 comments on commit a69b87f

Please sign in to comment.