Skip to content

Commit

Permalink
.eslintrc.js -> eslint.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
OlekMazur committed Jun 20, 2024
1 parent 0424415 commit 4859407
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 36 deletions.
36 changes: 0 additions & 36 deletions .eslintrc.js

This file was deleted.

33 changes: 33 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// @ts-check

import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'
//import vue from 'eslint-plugin-vue'
// TODO: reenable vue
// https://github.com/vuejs/eslint-plugin-vue/issues/1291

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
//vue.configs.recommended,
{
rules: {
'indent': ['error', 'tab', {
'MemberExpression': 0,
'SwitchCase': 1,
'flatTernaryExpressions': true,
}],
'linebreak-style': ['error', 'unix'],
'quotes': ['error', 'single'],
'semi': ['error', 'never'],
'no-empty': ['error', { "allowEmptyCatch": true }],
/*
'vue/return-in-computed-property': ['error', {
'treatUndefinedAsUnspecified': false,
}],
'vue/no-mutating-props': ['warn'], // TODO
'vue/no-reserved-component-names': ['warn'], // TODO
*/
},
},
)

0 comments on commit 4859407

Please sign in to comment.