Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ESLint errors and Prettify entire codebase #566

Merged
merged 21 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
5e11e80
chore(ESLint): disable `vue/multi-word-component-names` rule
bludnic Nov 27, 2023
82edf0c
chore(ESLint): allow ignore unused args rule with underscore
bludnic Nov 27, 2023
6410dec
chore(ESLint): enable es2020 globals (fixes "BigInt is not defined" e…
bludnic Nov 27, 2023
34bebf2
chore(ESLint): disable "vue/multi-word-component-names" rule
bludnic Nov 27, 2023
785288c
chore(ESLint): fix `v-text` and `v-html` errors
bludnic Nov 27, 2023
f36e59c
chore(ESLint): fix `no-unused-vars` errors
bludnic Nov 27, 2023
609eed0
chore(ESLint): fix `no-useless-catch` error
bludnic Nov 27, 2023
818123f
chore(ESLint): ignore "no-this-alias" error
bludnic Nov 27, 2023
344843e
chore(ESLint): fix 'TS' is not defined
bludnic Nov 27, 2023
7a3e495
chore(ESLint): ignore "no-dupe-else-if" rule
bludnic Nov 27, 2023
f3bc890
chore(ESLint): fix empty block statement
bludnic Nov 27, 2023
db3d8d1
chore(ESLint): update ES version (fixes parsing errors inside a "class")
bludnic Nov 27, 2023
8e73a9f
chore(ESLint): add docblock TS type to the ESLint config
bludnic Nov 27, 2023
3a63833
chore(ESLint, package.json): remove lint:fix command
bludnic Nov 27, 2023
c1fad31
refactor: run `prettify` on the entire codebase
bludnic Nov 27, 2023
854d200
chore(husky, lint-staged): run `eslint` and then `prettier` on pre-co…
bludnic Nov 27, 2023
b006d0d
fix(tsconfig): typecheck all Vite configs
bludnic Nov 27, 2023
b0617c1
chore(TS): add `typecheck` script
bludnic Nov 27, 2023
208cb91
chore(SCSS): enable absolute imports in SCSS
bludnic Nov 27, 2023
4285b14
chore: configure `commitlint`
bludnic Nov 27, 2023
c6c7345
chore: configure eslint import plugin
bludnic Nov 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

/** @type import('eslint').Linter.Config **/
module.exports = {
root: true,
env: {
browser: true,
node: true
node: true,
es2022: true
},
extends: [
'plugin:vue/vue3-essential',
Expand All @@ -16,6 +18,7 @@ module.exports = {
],
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 13,
parser: {
// Script parser for `<script>`
js: 'espree',
Expand All @@ -31,6 +34,8 @@ module.exports = {
},
plugins: ['vue', '@typescript-eslint'],
rules: {
'@typescript-eslint/no-explicit-any': 'off'
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '_' }],
'vue/multi-word-component-names': 'off'
}
}
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
}
Loading