Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deps #247

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

37 changes: 0 additions & 37 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
'*.{js,ts,vue}': ['eslint', 'prettier --write'],
'*.{ts,vue}': [() => 'tsc --noEmit'],
'*.{css,scss,vue}': 'stylelint',
Expand Down
77 changes: 77 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
import js from '@eslint/js';
import tsPlugin from '@typescript-eslint/eslint-plugin';
import tsParser from '@typescript-eslint/parser';
import vuePlugin from 'eslint-plugin-vue';
import unusedImportsPlugin from 'eslint-plugin-unused-imports';
import prettierConfig from 'eslint-config-prettier';

export default [
js.configs.recommended,
prettierConfig,
{
files: ['**/*.{js,ts,vue}'],
languageOptions: {
ecmaVersion: 2021,
sourceType: 'module',
parser: tsParser,
parserOptions: {
ecmaVersion: 2021,
},
globals: {
browser: 'readonly',
es2021: 'readonly',
node: 'readonly',
process: 'readonly',
console: 'readonly',
describe: 'readonly',
it: 'readonly',
expect: 'readonly',
beforeEach: 'readonly',
afterEach: 'readonly',
jest: 'readonly',
},
},
plugins: {
'@typescript-eslint': tsPlugin,
vue: vuePlugin,
'unused-imports': unusedImportsPlugin,
},
rules: {
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
quotes: ['error', 'single', { allowTemplateLiterals: true }],
semi: ['error', 'always'],
'unused-imports/no-unused-imports': 'error',
'vue/attribute-hyphenation': 'off',
'vue/html-self-closing': 'off',
'vue/multi-word-component-names': 'off',
'vue/script-setup-uses-vars': 'error',
'vue/first-attribute-linebreak': [
'error',
{
singleline: 'ignore',
multiline: 'ignore',
},
],
},
},
{
files: ['**/*.vue'],
plugins: {
vue: vuePlugin,
},
rules: {
...vuePlugin.configs['vue3-recommended'].rules,
...tsPlugin.configs.recommended.rules,
},
languageOptions: {
parser: vuePlugin.parserESLintParser,
globals: {
'vue/setup-compiler-macros': 'readonly',
},
},
},
{
ignores: ['node_modules/**', 'dist/**'],
},
];
3 changes: 1 addition & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
export default {
preset: 'ts-jest',
testEnvironment: 'jsdom',
testEnvironmentOptions: {
Expand Down
Loading
Loading