2024-10-13 17:37:01 +00:00
|
|
|
import config from '@antfu/eslint-config'
|
|
|
|
|
|
|
|
export default config(
|
|
|
|
{
|
|
|
|
formatters: true,
|
|
|
|
},
|
|
|
|
{
|
2024-10-14 16:24:12 +00:00
|
|
|
files: ['resources/**/*.{js,ts,css,pcss,vue}'],
|
2024-10-13 17:37:01 +00:00
|
|
|
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: [
|
2024-10-14 16:24:12 +00:00
|
|
|
'resources/assets/tsconfig.json',
|
|
|
|
'resources/assets/css/vendor/**',
|
2024-10-13 17:37:01 +00:00
|
|
|
'resources/assets/js/visualizers/**',
|
|
|
|
]
|
|
|
|
})
|