Skip to content

Commit

Permalink
Merge pull request #17 from gabcvit/adding-eslint
Browse files Browse the repository at this point in the history
#13  Introducting eslint to codebase
  • Loading branch information
gabcvit authored Oct 24, 2024
2 parents e80fb91 + c2529f0 commit 686e2c7
Show file tree
Hide file tree
Showing 17 changed files with 3,897 additions and 1,033 deletions.
42 changes: 42 additions & 0 deletions dist/assets/index-BNr9YWQT.js

Large diffs are not rendered by default.

File renamed without changes.
5 changes: 0 additions & 5 deletions dist/assets/index.36a25750.js

This file was deleted.

5 changes: 2 additions & 3 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
<link rel="icon" type="image/svg+xml" href="/terminal.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CV_gabcvit</title>
<script type="module" crossorigin src="/assets/index.36a25750.js"></script>
<link rel="stylesheet" href="/assets/index.ef8eccb5.css">
<script type="module" crossorigin src="/assets/index-BNr9YWQT.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BUE7Yrqt.css">
</head>
<body>
<div id="app"></div>

</body>
</html>
40 changes: 40 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import parser from 'vue-eslint-parser';
import pluginVue from 'eslint-plugin-vue';
import vueTsEslintConfig from '@vue/eslint-config-typescript';
import stylistic from '@stylistic/eslint-plugin'
import tsPlugin from '@typescript-eslint/eslint-plugin';

export default [
...pluginVue.configs['flat/essential'],
...pluginVue.configs['flat/strongly-recommended'],
...vueTsEslintConfig({
extends: [
'recommended',
'stylistic',
]
}),
{
files: ['**/*.ts', '**/*.vue'],
},
{
ignores: ['dist/**'],
},
{
languageOptions: {
parser,
ecmaVersion: 'latest',

parserOptions: {
parser: '@typescript-eslint/parser',
},
},
plugins: {
'@typescript-eslint': tsPlugin,
'@stylistic': stylistic,
},
rules: {
'@stylistic/max-len': ['warn', { code: 120 }],
'vue/attribute-hyphenation': ['warn', 'never'],
},
},
];
Loading

0 comments on commit 686e2c7

Please sign in to comment.