53 lines
1.4 KiB
JavaScript
53 lines
1.4 KiB
JavaScript
import vue from 'eslint-plugin-vue';
|
|
import nx from '@nx/eslint-plugin';
|
|
|
|
export default [
|
|
...vue.configs['flat/recommended'],
|
|
...nx.configs['flat/base'],
|
|
...nx.configs['flat/typescript'],
|
|
...nx.configs['flat/javascript'],
|
|
{
|
|
ignores: [
|
|
'**/dist',
|
|
'**/vite.config.*.timestamp*',
|
|
'**/vitest.config.*.timestamp*'
|
|
]
|
|
},
|
|
{
|
|
files: ['**/*.vue'],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
parser: await import('@typescript-eslint/parser'),
|
|
}
|
|
}
|
|
},
|
|
{
|
|
files: [
|
|
'**/*.ts',
|
|
'**/*.tsx',
|
|
'**/*.cts',
|
|
'**/*.mts',
|
|
'**/*.js',
|
|
'**/*.jsx',
|
|
'**/*.cjs',
|
|
'**/*.mjs',
|
|
'**/*.vue'
|
|
],
|
|
rules: {
|
|
'vue/multi-word-component-names': 'off',
|
|
'@nx/enforce-module-boundaries': [
|
|
'error',
|
|
{
|
|
enforceBuildableLibDependency: true,
|
|
allow: ['^.*/eslint(\\.base)?\\.config\\.[cm]?[jt]s$'],
|
|
depConstraints: [
|
|
{
|
|
sourceTag: '*',
|
|
onlyDependOnLibsWithTags: ['*']
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
];
|