chore: add eslint

This commit is contained in:
OCDkirby
2024-09-06 16:56:13 +10:00
parent f1d2f0284a
commit d9cb39d108
4 changed files with 1489 additions and 10 deletions

13
.eslintrc Normal file
View File

@@ -0,0 +1,13 @@
{
"root": true,
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/vue3-recommended"
],
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser"
}
}

17
eslint.config.js Normal file
View File

@@ -0,0 +1,17 @@
import js from '@eslint/js'
import eslintPluginVue from 'eslint-plugin-vue'
import ts from 'typescript-eslint'
export default ts.config(
js.configs.recommended,
...ts.configs.recommended,
...eslintPluginVue.configs['flat/recommended'],
{
files: ['*.vue', '**/*.vue'],
languageOptions: {
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
}
)

1465
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -2,6 +2,7 @@
"name": "rpcsx-site",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
@@ -13,8 +14,11 @@
"vue": "^3.3.4"
},
"devDependencies": {
"typescript-eslint": "^8.4.0",
"@vicons/carbon": "^0.12.0",
"@vitejs/plugin-vue": "^4.2.3",
"eslint": "^9.9.1",
"eslint-plugin-vue": "^9.28.0",
"naive-ui": "^2.34.4",
"unplugin-auto-import": "^0.16.6",
"unplugin-vue-components": "^0.25.1",