2024-07-04 21:46:29 -07:00
|
|
|
const { resolve } = require("node:path");
|
|
|
|
|
|
|
|
|
|
const project = resolve(process.cwd(), "tsconfig.json");
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
|
extends: [
|
2024-07-09 15:17:38 -07:00
|
|
|
'eslint:recommended',
|
|
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
|
'plugin:vue/vue3-recommended',
|
|
|
|
|
'@nuxtjs/eslint-config-typescript',
|
|
|
|
|
'plugin:prettier/recommended',
|
|
|
|
|
'prettier',
|
|
|
|
|
'plugin:import/recommended',
|
|
|
|
|
'plugin:import/typescript',
|
|
|
|
|
'turbo',
|
|
|
|
|
],
|
2024-07-04 21:46:29 -07:00
|
|
|
parserOptions: {
|
|
|
|
|
sourceType: "module",
|
|
|
|
|
},
|
|
|
|
|
settings: {
|
|
|
|
|
"import/resolver": {
|
|
|
|
|
typescript: {
|
|
|
|
|
project,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2024-07-09 15:17:38 -07:00
|
|
|
"ignorePatterns": [".nuxt/**", ".output/**", "node_modules", "dist/**"],
|
2024-07-04 21:46:29 -07:00
|
|
|
rules: {
|
2024-07-09 15:17:38 -07:00
|
|
|
'no-console': 'off',
|
|
|
|
|
'vue/no-v-html': 'off',
|
|
|
|
|
'vue/multi-word-component-names': 'off',
|
|
|
|
|
'import/extensions': ['error', 'always', { ignorePackages: true }],
|
2024-07-04 21:46:29 -07:00
|
|
|
},
|
|
|
|
|
};
|