Skip to content

Commit a69b87f

Browse files
Add ESLint, Prettier & fix issue with CommenJS get loaded as ES Module (#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
1 parent 83afe84 commit a69b87f

27 files changed

+355505
-261530
lines changed

.editorconfig

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
root = true
2-
3-
[*]
4-
charset = utf-8
5-
indent_style = space
6-
indent_size = 2
7-
end_of_line = lf
8-
insert_final_newline = true
9-
trim_trailing_whitespace = true
10-
11-
[*.md]
12-
trim_trailing_whitespace = false
1+
root = true
2+
3+
[*]
4+
indent_size = 2
5+
indent_style = space
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.eslintrc.cjs

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
node: true,
5+
es6: true,
6+
amd: true,
7+
},
8+
extends: [
9+
"eslint:recommended",
10+
"plugin:prettier/recommended",
11+
"plugin:vue/vue3-recommended",
12+
],
13+
parser: "vue-eslint-parser",
14+
plugins: ["@typescript-eslint"],
15+
parserOptions: {
16+
parser: "@typescript-eslint/parser",
17+
},
18+
ignorePatterns: ["node_modules/", "dist/", ".yarn/"],
19+
root: true,
20+
};

.prettierignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
*.log*
3+
.env
4+
dist
5+
.DS_Store
6+
.idea
7+
.yarn

0 commit comments

Comments
 (0)