Skip to content

Commit

Permalink
Add linting to dev environment
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Hinchey <[email protected]>
  • Loading branch information
ChrisHinchey committed Dec 5, 2022
1 parent 3413765 commit 6cba8d1
Show file tree
Hide file tree
Showing 4 changed files with 408 additions and 10 deletions.
11 changes: 11 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
env: {
node: true
},
extends: ['eslint:recommended', 'plugin:vue/vue3-recommended', 'prettier'],
rules: {
// Override or add rules settings here
// Example: 'vue/no-unused-vars': 'error'
// "no-console": ["error", { allow: ["warn", "error"] }]
}
};
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"trailingComma": "none",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"bracketSpacing": false,
"endOfLine": "auto"
}
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview"
"preview": "nuxt preview",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore --fix ./",
"format": "prettier . --ignore-path .gitignore --write "
},
"dependencies": {
"axios": "^0.27.2",
Expand All @@ -23,7 +25,11 @@
"@types/tailwindcss": "^3.0.10",
"@vitejs/plugin-vue": "^2.3.3",
"autoprefixer": "^10.4.7",
"eslint": "^8.29.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-vue": "^9.8.0",
"nuxt": "3.0.0-rc.6",
"prettier": "^2.8.0",
"prettier-plugin-tailwindcss": "^0.1.11",
"tailwindcss": "^3.1.6"
}
Expand Down
Loading

0 comments on commit 6cba8d1

Please sign in to comment.