update eslint to disable export sorting,
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// src/cms_backend/eslint.config.mjs
|
||||
//
|
||||
import globals from 'globals';
|
||||
import eslintJs from '@eslint/js';
|
||||
import eslintTs from 'typescript-eslint';
|
||||
@@ -69,10 +71,7 @@ const importRules = () => ({
|
||||
*/
|
||||
const unusedImportsRules = () => ({
|
||||
'unused-imports/no-unused-imports': 1,
|
||||
'unused-imports/no-unused-vars': [
|
||||
0,
|
||||
{ vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' },
|
||||
],
|
||||
'unused-imports/no-unused-vars': [0, { vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' }],
|
||||
});
|
||||
|
||||
/**
|
||||
@@ -93,15 +92,17 @@ const sortImportsRules = () => {
|
||||
|
||||
return {
|
||||
'perfectionist/sort-named-imports': [1, { type: 'line-length', order: 'asc' }],
|
||||
'perfectionist/sort-named-exports': [1, { type: 'line-length', order: 'asc' }],
|
||||
'perfectionist/sort-exports': [
|
||||
1,
|
||||
{
|
||||
order: 'asc',
|
||||
type: 'line-length',
|
||||
groupKind: 'values-first',
|
||||
},
|
||||
],
|
||||
|
||||
// disable sorting of export, i manage the export ordering
|
||||
// 'perfectionist/sort-named-exports': [1, { type: 'line-length', order: 'asc' }],
|
||||
// 'perfectionist/sort-exports': [
|
||||
// 1,
|
||||
// {
|
||||
// order: 'asc',
|
||||
// type: 'line-length',
|
||||
// groupKind: 'values-first',
|
||||
// },
|
||||
// ],
|
||||
'perfectionist/sort-imports': [
|
||||
2,
|
||||
{
|
||||
|
Reference in New Issue
Block a user