koel/eslint.config.js
2024-10-14 23:24:12 +07:00

33 lines
999 B
JavaScript

import config from '@antfu/eslint-config'
export default config(
{
formatters: true,
},
{
files: ['resources/**/*.{js,ts,css,pcss,vue}'],
rules: {
'antfu/top-level-function': 'off',
'curly': ['error', 'all'],
'no-case-declarations': 'off',
'no-multi-str': 'off',
'no-new': 'off',
'perfectionist/sort-imports': 'off',
'style/arrow-parens': ['error', 'as-needed'],
'style/brace-style': ['error', '1tbs'],
'style/new-parens': 'off',
'node/prefer-global/process': ['error', 'always'],
'style/space-before-function-paren': ['error', 'always'],
'ts/ban-ts-comment': 'off',
'vue/block-order': ['error', { 'order': ['template', 'script', 'style'] }],
'vue/no-lone-template': 'off',
'vue/singleline-html-element-content-newline': 'off',
},
},
).prepend({
ignores: [
'resources/assets/tsconfig.json',
'resources/assets/css/vendor/**',
'resources/assets/js/visualizers/**',
]
})