@kouts/eslint-config 3.1.2 → 3.1.4
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/dist/index.cjs +7 -36
- package/dist/index.js +7 -36
- package/package.json +30 -40
package/dist/index.cjs
CHANGED
|
@@ -6,7 +6,6 @@ var pluginPrettier = require('eslint-plugin-prettier/recommended');
|
|
|
6
6
|
var pluginSimpleImportSort = require('eslint-plugin-simple-import-sort');
|
|
7
7
|
var node_fs = require('node:fs');
|
|
8
8
|
var node_path = require('node:path');
|
|
9
|
-
var compat = require('@eslint/compat');
|
|
10
9
|
var gitignoreToMinimatch = require('@humanwhocodes/gitignore-to-minimatch');
|
|
11
10
|
var stylistic = require('@stylistic/eslint-plugin');
|
|
12
11
|
var importX = require('eslint-plugin-import-x');
|
|
@@ -194,8 +193,7 @@ const modernization = {
|
|
|
194
193
|
"n/no-deprecated-api": "warn"
|
|
195
194
|
}
|
|
196
195
|
};
|
|
197
|
-
const
|
|
198
|
-
const promiseConfigs = Array.isArray(promise) ? promise : [promise];
|
|
196
|
+
const promiseConfigs = [pluginPromise.configs["flat/recommended"]];
|
|
199
197
|
const modernizationStyles = {
|
|
200
198
|
name: "neostandard/style/modernization-since-standard-17",
|
|
201
199
|
rules: {
|
|
@@ -237,7 +235,7 @@ const style = {
|
|
|
237
235
|
"@stylistic/computed-property-spacing": ["error", "never", { enforceForClassMembers: true }],
|
|
238
236
|
"@stylistic/dot-location": ["error", "property"],
|
|
239
237
|
"@stylistic/eol-last": "error",
|
|
240
|
-
"@stylistic/
|
|
238
|
+
"@stylistic/function-call-spacing": ["error", "never"],
|
|
241
239
|
"@stylistic/generator-star-spacing": ["error", { before: true, after: true }],
|
|
242
240
|
"@stylistic/indent": [
|
|
243
241
|
"error",
|
|
@@ -255,26 +253,8 @@ const style = {
|
|
|
255
253
|
ImportDeclaration: 1,
|
|
256
254
|
flatTernaryExpressions: false,
|
|
257
255
|
ignoreComments: false,
|
|
258
|
-
ignoredNodes: [
|
|
259
|
-
|
|
260
|
-
"JSXElement",
|
|
261
|
-
"JSXElement > *",
|
|
262
|
-
"JSXAttribute",
|
|
263
|
-
"JSXIdentifier",
|
|
264
|
-
"JSXNamespacedName",
|
|
265
|
-
"JSXMemberExpression",
|
|
266
|
-
"JSXSpreadAttribute",
|
|
267
|
-
"JSXExpressionContainer",
|
|
268
|
-
"JSXOpeningElement",
|
|
269
|
-
"JSXClosingElement",
|
|
270
|
-
"JSXFragment",
|
|
271
|
-
"JSXOpeningFragment",
|
|
272
|
-
"JSXClosingFragment",
|
|
273
|
-
"JSXText",
|
|
274
|
-
"JSXEmptyExpression",
|
|
275
|
-
"JSXSpreadChild"
|
|
276
|
-
],
|
|
277
|
-
offsetTernaryExpressions: true
|
|
256
|
+
ignoredNodes: ["TemplateLiteral *"],
|
|
257
|
+
offsetTernaryExpressions: { CallExpression: false, AwaitExpression: false, NewExpression: false }
|
|
278
258
|
}
|
|
279
259
|
],
|
|
280
260
|
"@stylistic/key-spacing": ["error", { beforeColon: false, afterColon: true }],
|
|
@@ -303,11 +283,11 @@ const style = {
|
|
|
303
283
|
"@stylistic/no-whitespace-before-property": "error",
|
|
304
284
|
"@stylistic/object-curly-newline": ["error", { multiline: true, consistent: true }],
|
|
305
285
|
"@stylistic/object-curly-spacing": ["error", "always"],
|
|
306
|
-
"@stylistic/object-property-newline": ["error", {
|
|
286
|
+
"@stylistic/object-property-newline": ["error", { allowAllPropertiesOnSameLine: true }],
|
|
307
287
|
"@stylistic/operator-linebreak": ["error", "after", { overrides: { "?": "before", ":": "before", "|>": "before" } }],
|
|
308
288
|
"@stylistic/padded-blocks": ["error", { blocks: "never", switches: "never", classes: "never" }],
|
|
309
289
|
"@stylistic/quote-props": ["error", "as-needed"],
|
|
310
|
-
"@stylistic/quotes": ["error", "single", { avoidEscape: true, allowTemplateLiterals:
|
|
290
|
+
"@stylistic/quotes": ["error", "single", { avoidEscape: true, allowTemplateLiterals: "never" }],
|
|
311
291
|
"@stylistic/rest-spread-spacing": ["error", "never"],
|
|
312
292
|
"@stylistic/semi": ["error", "never"],
|
|
313
293
|
"@stylistic/semi-spacing": ["error", { before: false, after: true }],
|
|
@@ -422,15 +402,6 @@ const jsxStyles = {
|
|
|
422
402
|
],
|
|
423
403
|
"@stylistic/jsx-equals-spacing": ["error", "never"],
|
|
424
404
|
"@stylistic/jsx-first-prop-new-line": ["error", "multiline-multiprop"],
|
|
425
|
-
"@stylistic/jsx-indent": [
|
|
426
|
-
"error",
|
|
427
|
-
2,
|
|
428
|
-
{
|
|
429
|
-
checkAttributes: false,
|
|
430
|
-
indentLogicalExpressions: true
|
|
431
|
-
}
|
|
432
|
-
],
|
|
433
|
-
"@stylistic/jsx-indent-props": ["error", 2],
|
|
434
405
|
"@stylistic/jsx-pascal-case": ["error", { allowAllCaps: false }],
|
|
435
406
|
"@stylistic/jsx-props-no-multi-spaces": "error",
|
|
436
407
|
"@stylistic/jsx-tag-spacing": [
|
|
@@ -631,7 +602,7 @@ const neostandard = (options) => {
|
|
|
631
602
|
...ts ? [
|
|
632
603
|
typescriptify(jsConfigs, {
|
|
633
604
|
files: ["**/*.ts", ...noJsx ? [] : ["**/*.tsx"], ...filesTs || []],
|
|
634
|
-
ignores,
|
|
605
|
+
ignores: [...ignores || [], "**/*.md/**"],
|
|
635
606
|
name: "neostandard/ts"
|
|
636
607
|
})
|
|
637
608
|
] : []
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,6 @@ import pluginPrettier from 'eslint-plugin-prettier/recommended';
|
|
|
4
4
|
import pluginSimpleImportSort from 'eslint-plugin-simple-import-sort';
|
|
5
5
|
import { readFileSync } from 'node:fs';
|
|
6
6
|
import { join, dirname } from 'node:path';
|
|
7
|
-
import { fixupConfigRules } from '@eslint/compat';
|
|
8
7
|
import { gitignoreToMinimatch } from '@humanwhocodes/gitignore-to-minimatch';
|
|
9
8
|
import stylistic from '@stylistic/eslint-plugin';
|
|
10
9
|
import importX from 'eslint-plugin-import-x';
|
|
@@ -192,8 +191,7 @@ const modernization = {
|
|
|
192
191
|
"n/no-deprecated-api": "warn"
|
|
193
192
|
}
|
|
194
193
|
};
|
|
195
|
-
const
|
|
196
|
-
const promiseConfigs = Array.isArray(promise) ? promise : [promise];
|
|
194
|
+
const promiseConfigs = [pluginPromise.configs["flat/recommended"]];
|
|
197
195
|
const modernizationStyles = {
|
|
198
196
|
name: "neostandard/style/modernization-since-standard-17",
|
|
199
197
|
rules: {
|
|
@@ -235,7 +233,7 @@ const style = {
|
|
|
235
233
|
"@stylistic/computed-property-spacing": ["error", "never", { enforceForClassMembers: true }],
|
|
236
234
|
"@stylistic/dot-location": ["error", "property"],
|
|
237
235
|
"@stylistic/eol-last": "error",
|
|
238
|
-
"@stylistic/
|
|
236
|
+
"@stylistic/function-call-spacing": ["error", "never"],
|
|
239
237
|
"@stylistic/generator-star-spacing": ["error", { before: true, after: true }],
|
|
240
238
|
"@stylistic/indent": [
|
|
241
239
|
"error",
|
|
@@ -253,26 +251,8 @@ const style = {
|
|
|
253
251
|
ImportDeclaration: 1,
|
|
254
252
|
flatTernaryExpressions: false,
|
|
255
253
|
ignoreComments: false,
|
|
256
|
-
ignoredNodes: [
|
|
257
|
-
|
|
258
|
-
"JSXElement",
|
|
259
|
-
"JSXElement > *",
|
|
260
|
-
"JSXAttribute",
|
|
261
|
-
"JSXIdentifier",
|
|
262
|
-
"JSXNamespacedName",
|
|
263
|
-
"JSXMemberExpression",
|
|
264
|
-
"JSXSpreadAttribute",
|
|
265
|
-
"JSXExpressionContainer",
|
|
266
|
-
"JSXOpeningElement",
|
|
267
|
-
"JSXClosingElement",
|
|
268
|
-
"JSXFragment",
|
|
269
|
-
"JSXOpeningFragment",
|
|
270
|
-
"JSXClosingFragment",
|
|
271
|
-
"JSXText",
|
|
272
|
-
"JSXEmptyExpression",
|
|
273
|
-
"JSXSpreadChild"
|
|
274
|
-
],
|
|
275
|
-
offsetTernaryExpressions: true
|
|
254
|
+
ignoredNodes: ["TemplateLiteral *"],
|
|
255
|
+
offsetTernaryExpressions: { CallExpression: false, AwaitExpression: false, NewExpression: false }
|
|
276
256
|
}
|
|
277
257
|
],
|
|
278
258
|
"@stylistic/key-spacing": ["error", { beforeColon: false, afterColon: true }],
|
|
@@ -301,11 +281,11 @@ const style = {
|
|
|
301
281
|
"@stylistic/no-whitespace-before-property": "error",
|
|
302
282
|
"@stylistic/object-curly-newline": ["error", { multiline: true, consistent: true }],
|
|
303
283
|
"@stylistic/object-curly-spacing": ["error", "always"],
|
|
304
|
-
"@stylistic/object-property-newline": ["error", {
|
|
284
|
+
"@stylistic/object-property-newline": ["error", { allowAllPropertiesOnSameLine: true }],
|
|
305
285
|
"@stylistic/operator-linebreak": ["error", "after", { overrides: { "?": "before", ":": "before", "|>": "before" } }],
|
|
306
286
|
"@stylistic/padded-blocks": ["error", { blocks: "never", switches: "never", classes: "never" }],
|
|
307
287
|
"@stylistic/quote-props": ["error", "as-needed"],
|
|
308
|
-
"@stylistic/quotes": ["error", "single", { avoidEscape: true, allowTemplateLiterals:
|
|
288
|
+
"@stylistic/quotes": ["error", "single", { avoidEscape: true, allowTemplateLiterals: "never" }],
|
|
309
289
|
"@stylistic/rest-spread-spacing": ["error", "never"],
|
|
310
290
|
"@stylistic/semi": ["error", "never"],
|
|
311
291
|
"@stylistic/semi-spacing": ["error", { before: false, after: true }],
|
|
@@ -420,15 +400,6 @@ const jsxStyles = {
|
|
|
420
400
|
],
|
|
421
401
|
"@stylistic/jsx-equals-spacing": ["error", "never"],
|
|
422
402
|
"@stylistic/jsx-first-prop-new-line": ["error", "multiline-multiprop"],
|
|
423
|
-
"@stylistic/jsx-indent": [
|
|
424
|
-
"error",
|
|
425
|
-
2,
|
|
426
|
-
{
|
|
427
|
-
checkAttributes: false,
|
|
428
|
-
indentLogicalExpressions: true
|
|
429
|
-
}
|
|
430
|
-
],
|
|
431
|
-
"@stylistic/jsx-indent-props": ["error", 2],
|
|
432
403
|
"@stylistic/jsx-pascal-case": ["error", { allowAllCaps: false }],
|
|
433
404
|
"@stylistic/jsx-props-no-multi-spaces": "error",
|
|
434
405
|
"@stylistic/jsx-tag-spacing": [
|
|
@@ -629,7 +600,7 @@ const neostandard = (options) => {
|
|
|
629
600
|
...ts ? [
|
|
630
601
|
typescriptify(jsConfigs, {
|
|
631
602
|
files: ["**/*.ts", ...noJsx ? [] : ["**/*.tsx"], ...filesTs || []],
|
|
632
|
-
ignores,
|
|
603
|
+
ignores: [...ignores || [], "**/*.md/**"],
|
|
633
604
|
name: "neostandard/ts"
|
|
634
605
|
})
|
|
635
606
|
] : []
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kouts/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.1.
|
|
5
|
-
"packageManager": "pnpm@10.
|
|
4
|
+
"version": "3.1.4",
|
|
5
|
+
"packageManager": "pnpm@10.34.1",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
8
8
|
},
|
|
@@ -76,50 +76,40 @@
|
|
|
76
76
|
"url": "git+https://github.com/kouts/eslint-config.git"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@eslint/
|
|
80
|
-
"@
|
|
81
|
-
"@
|
|
82
|
-
"@
|
|
83
|
-
"
|
|
84
|
-
"eslint-
|
|
85
|
-
"eslint-plugin-
|
|
86
|
-
"eslint-plugin-
|
|
87
|
-
"eslint-plugin-
|
|
88
|
-
"eslint-plugin-
|
|
89
|
-
"eslint-plugin-
|
|
90
|
-
"eslint-plugin-
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"typescript-eslint": "^8.58.1"
|
|
79
|
+
"@eslint/js": "10.0.1",
|
|
80
|
+
"@humanwhocodes/gitignore-to-minimatch": "1.0.2",
|
|
81
|
+
"@stylistic/eslint-plugin": "5.10.0",
|
|
82
|
+
"@vitest/eslint-plugin": "1.6.19",
|
|
83
|
+
"eslint-config-prettier": "10.1.8",
|
|
84
|
+
"eslint-plugin-html": "8.1.4",
|
|
85
|
+
"eslint-plugin-import-x": "4.16.2",
|
|
86
|
+
"eslint-plugin-n": "18.0.1",
|
|
87
|
+
"eslint-plugin-prettier": "5.5.6",
|
|
88
|
+
"eslint-plugin-promise": "7.3.0",
|
|
89
|
+
"eslint-plugin-simple-import-sort": "13.0.0",
|
|
90
|
+
"eslint-plugin-vue": "10.9.2",
|
|
91
|
+
"find-up": "8.0.0",
|
|
92
|
+
"globals": "17.6.0",
|
|
93
|
+
"prettier": "3.8.3",
|
|
94
|
+
"typescript-eslint": "8.60.1"
|
|
96
95
|
},
|
|
97
96
|
"devDependencies": {
|
|
98
|
-
"@commitlint/cli": "
|
|
99
|
-
"@commitlint/config-conventional": "
|
|
97
|
+
"@commitlint/cli": "21.0.2",
|
|
98
|
+
"@commitlint/config-conventional": "21.0.2",
|
|
100
99
|
"@semantic-release/changelog": "^6.0.3",
|
|
101
100
|
"@semantic-release/git": "^10.0.1",
|
|
102
|
-
"@types/estree": "
|
|
103
|
-
"@types/node": "
|
|
104
|
-
"eslint": "
|
|
105
|
-
"husky": "
|
|
106
|
-
"lint-staged": "
|
|
107
|
-
"pkgroll": "
|
|
101
|
+
"@types/estree": "1.0.9",
|
|
102
|
+
"@types/node": "25.9.2",
|
|
103
|
+
"eslint": "10.4.1",
|
|
104
|
+
"husky": "9.1.7",
|
|
105
|
+
"lint-staged": "17.0.7",
|
|
106
|
+
"pkgroll": "2.27.1",
|
|
108
107
|
"semantic-release": "^25.0.3",
|
|
109
|
-
"typescript": "6.0.
|
|
110
|
-
"vitest": "
|
|
111
|
-
"vue-eslint-parser": "
|
|
108
|
+
"typescript": "6.0.3",
|
|
109
|
+
"vitest": "4.1.8",
|
|
110
|
+
"vue-eslint-parser": "10.4.1"
|
|
112
111
|
},
|
|
113
112
|
"peerDependencies": {
|
|
114
|
-
"eslint": "
|
|
115
|
-
},
|
|
116
|
-
"pnpm": {
|
|
117
|
-
"packageExtensions": {
|
|
118
|
-
"eslint-plugin-promise@7.2.1": {
|
|
119
|
-
"peerDependencies": {
|
|
120
|
-
"eslint": "^7 || ^8 || ^9 || ^10"
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
113
|
+
"eslint": "10.0.2"
|
|
124
114
|
}
|
|
125
115
|
}
|