Skip to content

Commit

Permalink
Improve eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
misenhower committed Mar 17, 2024
1 parent 24be6a4 commit 3a9b84d
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,38 @@ module.exports = {
"extends": [
"plugin:vue/vue3-recommended",
"eslint:recommended",
"plugin:jsdoc/recommended",
],
"rules": {
// ESLint
"indent": ["warn", 2, { "SwitchCase": 1 }],
"comma-dangle": ["warn", "always-multiline"],
"no-unused-vars": ["warn", { "args": "none" }],

// Vue
"vue/multi-word-component-names": "off",
"vue/require-default-prop": "off",
"vue/max-attributes-per-line": ["warn", { singleline: { max: 4 } }],
"vue/html-self-closing": ["warn", { html: { void: "always" } }],

// JSDoc
"jsdoc/require-jsdoc": "off",
"jsdoc/require-returns": "off",
"jsdoc/require-param-description": "off",
},
"globals": {
"__dirname": "readonly",
"process": "readonly",
"require": "readonly",
"module": "readonly",
"Buffer": "readonly",
},
"env": {
"vue/setup-compiler-macros": true,
},
"ignorePatterns": [
"src/assets/i18n/index.mjs", // "assert" syntax is currently unrecognized
],
"parserOptions": {
"ecmaVersion": 13,
},
Expand Down
114 changes: 114 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"@vitejs/plugin-vue": "^3.1.0",
"autoprefixer": "^10.4.12",
"eslint": "^8.23.1",
"eslint-plugin-jsdoc": "^48.2.1",
"eslint-plugin-vue": "^9.5.1",
"postcss": "^8.4.16",
"tailwindcss": "^3.1.8",
Expand Down

0 comments on commit 3a9b84d

Please sign in to comment.