@dmitryrechkin/eslint-standard 1.4.5 → 1.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/eslint.config.mjs +29 -25
  2. package/package.json +1 -1
package/eslint.config.mjs CHANGED
@@ -88,29 +88,23 @@ export default function ({
88
88
  '@typescript-eslint/explicit-function-return-type': 'error',
89
89
  '@typescript-eslint/no-explicit-any': 'error', // Ban 'any' type for type safety
90
90
 
91
- // Original coding guidelines
92
- 'brace-style': 'off', // Disabled in favor of @stylistic/brace-style
93
- '@stylistic/brace-style': ['error', 'allman', { allowSingleLine: false }],
94
- '@stylistic/block-spacing': ['error', 'never'], // Enforce consistent spacing inside blocks
95
- indent: 'off', // Disabled to avoid conflicts with @stylistic/indent and our JSDoc plugin
96
- '@stylistic/indent': ['error', 'tab', {
97
- SwitchCase: 1,
98
- ignoredNodes: [
99
- 'ImportDeclaration', // Fix for maximum call stack issue with complex imports
100
- 'TSTypeReference' // Fix for TypeScript type references causing recursion
101
- ]
102
- }],
103
- quotes: 'off', // Disabled in favor of @stylistic/quotes
104
- '@stylistic/quotes': ['error', 'single'],
105
- semi: 'off', // Disabled in favor of @stylistic/semi
106
- '@stylistic/semi': ['error', 'always'],
91
+ // Original coding guidelines - formatting rules disabled in favor of prettier
92
+ 'brace-style': 'off', // Handled by prettier-plugin-brace-style
93
+ '@stylistic/brace-style': 'off', // Handled by prettier-plugin-brace-style
94
+ '@stylistic/block-spacing': 'off', // Handled by prettier
95
+ indent: 'off', // Handled by prettier (useTabs: true, tabWidth: 4)
96
+ '@stylistic/indent': 'off', // Handled by prettier (useTabs: true, tabWidth: 4)
97
+ quotes: 'off', // Handled by prettier (singleQuote: true)
98
+ '@stylistic/quotes': 'off', // Handled by prettier (singleQuote: true)
99
+ semi: 'off', // Handled by prettier (semi: true)
100
+ '@stylistic/semi': 'off', // Handled by prettier (semi: true)
107
101
  '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
108
- 'no-trailing-spaces': 'off', // Disabled in favor of @stylistic/no-trailing-spaces
109
- '@stylistic/no-trailing-spaces': 'error',
110
- 'eol-last': 'off', // Disabled in favor of @stylistic/eol-last
111
- '@stylistic/eol-last': ['error', 'always'],
112
- 'comma-dangle': 'off', // Disabled in favor of @stylistic/comma-dangle
113
- '@stylistic/comma-dangle': ['error', 'never'],
102
+ 'no-trailing-spaces': 'off', // Handled by prettier
103
+ '@stylistic/no-trailing-spaces': 'off', // Handled by prettier
104
+ 'eol-last': 'off', // Handled by prettier
105
+ '@stylistic/eol-last': 'off', // Handled by prettier
106
+ 'comma-dangle': 'off', // Handled by prettier (trailingComma: 'none')
107
+ '@stylistic/comma-dangle': 'off', // Handled by prettier (trailingComma: 'none')
114
108
 
115
109
  // Comprehensive naming conventions based on coding standards
116
110
 
@@ -802,8 +796,13 @@ export default function ({
802
796
  'error',
803
797
  {
804
798
  parser: 'typescript',
805
- plugins: ['prettier-plugin-brace-style'],
806
- braceStyle: 'allman'
799
+ plugins: [import.meta.resolve('prettier-plugin-brace-style')],
800
+ braceStyle: 'allman',
801
+ singleQuote: true,
802
+ useTabs: true,
803
+ tabWidth: 4,
804
+ semi: true,
805
+ trailingComma: 'none'
807
806
  }
808
807
  ]
809
808
  }
@@ -816,7 +815,12 @@ export default function ({
816
815
  'error',
817
816
  {
818
817
  parser: 'astro',
819
- plugins: ['prettier-plugin-astro']
818
+ plugins: [import.meta.resolve('prettier-plugin-astro')],
819
+ singleQuote: true,
820
+ useTabs: true,
821
+ tabWidth: 4,
822
+ semi: true,
823
+ trailingComma: 'none'
820
824
  }
821
825
  ]
822
826
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dmitryrechkin/eslint-standard",
3
3
  "description": "This package provides a shared ESLint configuration which includes TypeScript support and a set of specific linting rules designed to ensure high-quality and consistent code style across projects.",
4
- "version": "1.4.5",
4
+ "version": "1.4.7",
5
5
  "main": "eslint.config.mjs",
6
6
  "exports": {
7
7
  ".": "./eslint.config.mjs"