Skip to content

Commit

Permalink
➕ add eslint and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
vinicius73 committed Aug 30, 2022
1 parent a0e0b77 commit b4810fe
Show file tree
Hide file tree
Showing 7 changed files with 1,758 additions and 94 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Expand Up @@ -2,4 +2,5 @@ dist/
covarage/
.yarn/
.vscode/
.git/
.git/
.github/
25 changes: 25 additions & 0 deletions .eslintrc.cjs
@@ -0,0 +1,25 @@
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
node: true
},
extends: [
'plugin:vue/vue3-essential',
'standard-with-typescript',
'prettier'
],
overrides: [
],
parserOptions: {
project: './tsconfig.json',
ecmaVersion: 'latest',
sourceType: 'module'
},
plugins: [
'vue'
],
rules: {
}
}
27 changes: 27 additions & 0 deletions .gitattributes
@@ -0,0 +1,27 @@
* text=auto

* vue eol=lf encoding=UTF-8
*.css eol=lf encoding=UTF-8
*.html eol=lf encoding=UTF-8
*.js eol=lf encoding=UTF-8
*.jsx eol=lf encoding=UTF-8
*.md eol=lf encoding=UTF-8
*.scss eol=lf encoding=UTF-8
*.ts eol=lf encoding=UTF-8
*.tsx eol=lf encoding=UTF-8
*.txt eol=lf encoding=UTF-8
*.xml eol=lf encoding=UTF-8

# Images
*.gif binary
*.ico binary
*.jpg binary
*.png binary
*.svg eol=lf encoding=UTF-8
*.webp binary

# Fonts
*.eot binary
*.otf binary
*.ttf binary
*.woff binary
6 changes: 6 additions & 0 deletions .prettierignore
@@ -0,0 +1,6 @@
index.html
.vscode/
.yarn/
dist/
coverage/
public/
10 changes: 10 additions & 0 deletions .prettierrc.yml
@@ -0,0 +1,10 @@
printWidth: 80
tabWidth: 2
useTabs: false
semi: true
singleQuote: true
bracketSpacing: true
bracketSameLine: false
arrowParens: avoid
htmlWhitespaceSensitivity: ignore
endOfLine: lf
20 changes: 15 additions & 5 deletions package.json
Expand Up @@ -29,7 +29,8 @@
"prepack": "yarn run build",
"dev": "vite dev -c vite.config.example.ts",
"test": "vitest run",
"test:watch": "vitest"
"test:watch": "vitest",
"lint": "eslint lib example"
},
"peerDependencies": {
"vue": "^3.2",
Expand All @@ -44,24 +45,33 @@
}
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.36.0",
"@vitejs/plugin-vue": "^3.0.3",
"@vitest/coverage-c8": "^0.22.1",
"@vue/test-utils": "^2.0.2",
"eslint": "^8.23.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard-with-typescript": "^22.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^15.2.5",
"eslint-plugin-promise": "^6.0.1",
"eslint-plugin-vue": "^9.4.0",
"jsdom": "^20.0.0",
"mini-svg-data-uri": "^1.4.4",
"radash": "^7.0.0",
"prettier": "^2.7.1",
"radash": "^7.0.1",
"reseter.css": "^2.0.0",
"typedoc": "^0.23.11",
"typescript": "^4.8.2",
"vite": "^3.0.9",
"vite-plugin-banner": "^0.4.0",
"vitest": "^0.22.1",
"vue": "^3.2.37",
"vue": "^3.2.38",
"vue-router": "^4.1.5",
"vue-tsc": "^0.40.2"
"vue-tsc": "^0.40.4"
},
"engines": {
"node": ">= 14",
"node": ">= 16",
"npm": ">= 8"
},
"packageManager": "yarn@3.2.3"
Expand Down

0 comments on commit b4810fe

Please sign in to comment.