@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.
- package/eslint.config.mjs +29 -25
- 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', //
|
|
93
|
-
'@stylistic/brace-style':
|
|
94
|
-
'@stylistic/block-spacing':
|
|
95
|
-
indent: 'off', //
|
|
96
|
-
'@stylistic/indent':
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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', //
|
|
109
|
-
'@stylistic/no-trailing-spaces': '
|
|
110
|
-
'eol-last': 'off', //
|
|
111
|
-
'@stylistic/eol-last':
|
|
112
|
-
'comma-dangle': 'off', //
|
|
113
|
-
'@stylistic/comma-dangle':
|
|
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.
|
|
4
|
+
"version": "1.4.7",
|
|
5
5
|
"main": "eslint.config.mjs",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./eslint.config.mjs"
|