Skip to content

Commit 1ede128

Browse files
authored
Merge pull request #166 from retejs/update-eslint
Update eslint
2 parents 27a26ad + 027ee20 commit 1ede128

File tree

402 files changed

+15040
-11645
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

402 files changed

+15040
-11645
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 38 deletions
This file was deleted.

components/FetchNav.vue

Lines changed: 0 additions & 20 deletions
This file was deleted.

components/Intro.vue

Lines changed: 0 additions & 24 deletions
This file was deleted.

components/content/ExamplesOverview.vue

Lines changed: 0 additions & 94 deletions
This file was deleted.

components/content/FrameExample.vue

Lines changed: 0 additions & 53 deletions
This file was deleted.

error.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
NotFound
33
</template>
44

5-
<script>
5+
<script lang="ts">
66
import NotFound from '@/components/shared/NotFound.vue';
77
88
export default {

eslint.config.mjs

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import tseslint from 'typescript-eslint';
2+
import configs from 'rete-cli/configs/eslint.mjs';
3+
import pluginVue from "eslint-plugin-vue";
4+
import vueTsEslintConfig from "@vue/eslint-config-typescript";
5+
import tsParser from '@typescript-eslint/parser';
6+
7+
export default tseslint.config(
8+
...configs,
9+
...pluginVue.configs["flat/essential"],
10+
...vueTsEslintConfig(),
11+
{
12+
...configs[configs.length - 2],
13+
files: [ 'src/**/*.{ts,tsx,vue,mjs}', 'test/**/*.{ts,tsx}' ],
14+
},
15+
{
16+
files: ['**/*.{js,mjs}'],
17+
rules: {
18+
'@stylistic/indent': ['error', 2],
19+
}
20+
},
21+
{
22+
files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.vue'],
23+
languageOptions: {
24+
parserOptions: {
25+
parser: tsParser,
26+
project: 'tsconfig.json',
27+
extraFileExtensions: ['.vue']
28+
}
29+
},
30+
rules: {
31+
'vue/multi-word-component-names': 'off',
32+
33+
}
34+
},
35+
{
36+
files: ['**/*.js', '**/*.vue'],
37+
rules: {
38+
'vue/multi-word-component-names': 'off',
39+
'vue/no-reserved-component-names': 'off',
40+
'@typescript-eslint/naming-convention': 'off',
41+
'@typescript-eslint/unbound-method': 'off',
42+
'@typescript-eslint/restrict-template-expressions': 'off',
43+
'@typescript-eslint/restrict-plus-operands': 'off',
44+
}
45+
}
46+
)

nuxt.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import TypeDoc from './typedoc/index.mjs';
77
// https://v3.nuxtjs.org/api/configuration/nuxt.config
88
export default defineNuxtConfig({
99
ssr: true,
10+
srcDir: 'src',
1011
modules: [
1112
TypeDoc,
1213
'@nuxt/content',

0 commit comments

Comments
 (0)