feat: defineConfig helper function

This commit is contained in:
Guz013
2023-09-02 20:25:32 -03:00
parent ac7c70e81c
commit f874ed622e
4 changed files with 61 additions and 5 deletions

View File

@@ -1,5 +1,16 @@
import { presets } from '@eslegant/js';
import { configs, defineConfig, presets } from '@eslegant/js';
export default [
export default defineConfig([
...presets.strict,
];
configs.environments.node.strict.error,
{
...configs.documentation.strict.error,
files: ['configs/**/*.js', 'configs/**/*.ts'],
},
{
files: ['**/*.{js,ts,cjs,tjs,mjs,mts,jsx,tsx}'],
rules: {
'jsdoc/check-values': ['error', { allowedLicenses: ['MIT'] }],
},
},
]);