Skip to content

Commit

Permalink
Merge pull request #166 from retejs/update-eslint
Browse files Browse the repository at this point in the history
Update eslint
  • Loading branch information
Ni55aN authored Nov 9, 2024
2 parents 27a26ad + 027ee20 commit 1ede128
Show file tree
Hide file tree
Showing 402 changed files with 15,040 additions and 11,645 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

38 changes: 0 additions & 38 deletions .eslintrc.js

This file was deleted.

20 changes: 0 additions & 20 deletions components/FetchNav.vue

This file was deleted.

24 changes: 0 additions & 24 deletions components/Intro.vue

This file was deleted.

94 changes: 0 additions & 94 deletions components/content/ExamplesOverview.vue

This file was deleted.

53 changes: 0 additions & 53 deletions components/content/FrameExample.vue

This file was deleted.

2 changes: 1 addition & 1 deletion error.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
NotFound
</template>

<script>
<script lang="ts">
import NotFound from '@/components/shared/NotFound.vue';
export default {
Expand Down
46 changes: 46 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import tseslint from 'typescript-eslint';
import configs from 'rete-cli/configs/eslint.mjs';
import pluginVue from "eslint-plugin-vue";
import vueTsEslintConfig from "@vue/eslint-config-typescript";
import tsParser from '@typescript-eslint/parser';

export default tseslint.config(
...configs,
...pluginVue.configs["flat/essential"],
...vueTsEslintConfig(),
{
...configs[configs.length - 2],
files: [ 'src/**/*.{ts,tsx,vue,mjs}', 'test/**/*.{ts,tsx}' ],
},
{
files: ['**/*.{js,mjs}'],
rules: {
'@stylistic/indent': ['error', 2],
}
},
{
files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.vue'],
languageOptions: {
parserOptions: {
parser: tsParser,
project: 'tsconfig.json',
extraFileExtensions: ['.vue']
}
},
rules: {
'vue/multi-word-component-names': 'off',

}
},
{
files: ['**/*.js', '**/*.vue'],
rules: {
'vue/multi-word-component-names': 'off',
'vue/no-reserved-component-names': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
}
}
)
1 change: 1 addition & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import TypeDoc from './typedoc/index.mjs';
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
ssr: true,
srcDir: 'src',
modules: [
TypeDoc,
'@nuxt/content',
Expand Down
Loading

0 comments on commit 1ede128

Please sign in to comment.