@alexlit/lint-kit 149.1.1 → 149.2.0
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/package.json +1 -1
- package/packages/config-eslint/node_modules/.bin/eslint +2 -2
- package/packages/config-eslint/node_modules/.bin/eslint-config-prettier +2 -2
- package/packages/config-eslint/package.json +3 -3
- package/packages/config-eslint/plugins/javascript.js +3 -9
- package/packages/config-eslint/plugins/jsdoc.js +2 -5
- package/packages/config-eslint/plugins/perfectionist.js +1 -1
- package/packages/config-eslint/plugins/prettier.js +4 -14
- package/packages/config-eslint/plugins/regexp.js +1 -1
- package/packages/config-eslint/plugins/sonar.js +3 -8
- package/packages/config-eslint/plugins/stylistic.js +2 -4
- package/packages/config-eslint/plugins/tailwindcss.js +1 -1
- package/packages/config-eslint/plugins/typescript.js +1 -1
- package/packages/config-eslint/plugins/unicorn.js +1 -1
- package/packages/config-eslint/plugins/unocss.js +3 -11
- package/packages/config-eslint/presets/{_base.js → base.js} +1 -1
- package/packages/config-eslint/presets/default.js +2 -2
- package/packages/config-markdownlint/node_modules/.bin/markdownlint +2 -2
- package/packages/config-markdownlint/package.json +2 -2
- package/packages/config-stylelint/package.json +1 -1
package/package.json
CHANGED
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint@9.
|
|
13
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint@9.27.0_jiti@2.4.2/node_modules/eslint/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint@9.27.0_jiti@2.4.2/node_modules/eslint/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint@9.27.0_jiti@2.4.2/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint@9.
|
|
15
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint@9.27.0_jiti@2.4.2/node_modules/eslint/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint@9.27.0_jiti@2.4.2/node_modules/eslint/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint@9.27.0_jiti@2.4.2/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../eslint/bin/eslint.js" "$@"
|
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint-config-prettier@10.1.5_eslint@9.
|
|
13
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint-config-prettier@10.1.5_eslint@9.27.0_jiti@2.4.2_/node_modules/eslint-config-prettier/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint-config-prettier@10.1.5_eslint@9.27.0_jiti@2.4.2_/node_modules/eslint-config-prettier/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint-config-prettier@10.1.5_eslint@9.27.0_jiti@2.4.2_/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint-config-prettier@10.1.5_eslint@9.
|
|
15
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint-config-prettier@10.1.5_eslint@9.27.0_jiti@2.4.2_/node_modules/eslint-config-prettier/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint-config-prettier@10.1.5_eslint@9.27.0_jiti@2.4.2_/node_modules/eslint-config-prettier/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint-config-prettier@10.1.5_eslint@9.27.0_jiti@2.4.2_/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../eslint-config-prettier/bin/cli.js" "$@"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-eslint",
|
|
3
|
-
"version": "109.
|
|
3
|
+
"version": "109.6.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Sharable ESLint configuration",
|
|
6
6
|
"keywords": [
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"up": "sh ../../scripts/up.sh --local"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@eslint/js": "^9.
|
|
42
|
+
"@eslint/js": "^9.27.0",
|
|
43
43
|
"@eslint/json": "^0.12.0",
|
|
44
44
|
"@intlify/eslint-plugin-vue-i18n": "^4.0.1",
|
|
45
45
|
"@stylistic/eslint-plugin": "^4.2.0",
|
|
46
46
|
"@tanstack/eslint-plugin-query": "^5.74.7",
|
|
47
47
|
"@unocss/eslint-config": "^66.1.2",
|
|
48
|
-
"eslint": "9.
|
|
48
|
+
"eslint": "9.27.0",
|
|
49
49
|
"eslint-config-prettier": "^10.1.5",
|
|
50
50
|
"eslint-plugin-jsdoc": "^50.6.17",
|
|
51
51
|
"eslint-plugin-perfectionist": "^4.13.0",
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import plugin from '@eslint/js';
|
|
2
2
|
|
|
3
|
-
import { FILES } from '../presets/
|
|
3
|
+
import { FILES } from '../presets/base.js';
|
|
4
4
|
|
|
5
5
|
/** @see [eslint](https://eslint.org) */
|
|
6
6
|
export const javascript = [
|
|
7
|
-
{
|
|
8
|
-
files: FILES,
|
|
9
|
-
...plugin.configs.recommended,
|
|
10
|
-
},
|
|
7
|
+
{ files: FILES, ...plugin.configs.recommended },
|
|
11
8
|
{
|
|
12
9
|
files: FILES,
|
|
13
10
|
rules: {
|
|
@@ -33,10 +30,7 @@ export const javascript = [
|
|
|
33
30
|
group: ['.', '..', '*/..'],
|
|
34
31
|
message: 'Use absolute path instead',
|
|
35
32
|
},
|
|
36
|
-
{
|
|
37
|
-
group: ['@/', '@@/'],
|
|
38
|
-
message: 'Use "~" instead of "@"',
|
|
39
|
-
},
|
|
33
|
+
{ group: ['@/', '@@/'], message: 'Use "~" instead of "@"' },
|
|
40
34
|
],
|
|
41
35
|
},
|
|
42
36
|
],
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import plugin from 'eslint-plugin-jsdoc';
|
|
2
2
|
|
|
3
|
-
import { FILES } from '../presets/
|
|
3
|
+
import { FILES } from '../presets/base.js';
|
|
4
4
|
|
|
5
5
|
/** @see [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) */
|
|
6
6
|
export const jsdoc = [
|
|
7
|
-
{
|
|
8
|
-
files: FILES,
|
|
9
|
-
...plugin.configs['flat/recommended'],
|
|
10
|
-
},
|
|
7
|
+
{ files: FILES, ...plugin.configs['flat/recommended'] },
|
|
11
8
|
{
|
|
12
9
|
files: FILES,
|
|
13
10
|
rules: {
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import config from 'eslint-config-prettier';
|
|
2
2
|
import plugin from 'eslint-plugin-prettier/recommended';
|
|
3
3
|
|
|
4
|
-
import { FILES } from '../presets/
|
|
4
|
+
import { FILES } from '../presets/base.js';
|
|
5
5
|
|
|
6
6
|
const fixes = {
|
|
7
7
|
// fix for prettier/vue
|
|
8
8
|
'vue/html-self-closing': [
|
|
9
9
|
'error',
|
|
10
10
|
{
|
|
11
|
-
html: {
|
|
12
|
-
component: 'always',
|
|
13
|
-
normal: 'never',
|
|
14
|
-
void: 'always',
|
|
15
|
-
},
|
|
11
|
+
html: { component: 'always', normal: 'never', void: 'always' },
|
|
16
12
|
math: 'always',
|
|
17
13
|
svg: 'always',
|
|
18
14
|
},
|
|
@@ -22,17 +18,11 @@ const fixes = {
|
|
|
22
18
|
/** @see [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) */
|
|
23
19
|
export const prettier = [
|
|
24
20
|
{ files: FILES, ...plugin },
|
|
25
|
-
{
|
|
26
|
-
files: ['**/*.vue'],
|
|
27
|
-
rules: { ...fixes },
|
|
28
|
-
},
|
|
21
|
+
{ files: ['**/*.vue'], rules: { ...fixes } },
|
|
29
22
|
];
|
|
30
23
|
|
|
31
24
|
/** @see [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) */
|
|
32
25
|
export const prettierConfig = [
|
|
33
26
|
{ files: FILES, ...config },
|
|
34
|
-
{
|
|
35
|
-
files: ['**/*.vue'],
|
|
36
|
-
rules: { ...fixes },
|
|
37
|
-
},
|
|
27
|
+
{ files: ['**/*.vue'], rules: { ...fixes } },
|
|
38
28
|
];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import plugin from 'eslint-plugin-regexp';
|
|
2
2
|
|
|
3
|
-
import { FILES } from '../presets/
|
|
3
|
+
import { FILES } from '../presets/base.js';
|
|
4
4
|
|
|
5
5
|
/** @see [eslint-plugin-regexp](https://github.com/ota-meshi/eslint-plugin-regexp) */
|
|
6
6
|
export const regexp = [{ files: FILES, ...plugin.configs['flat/recommended'] }];
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import plugin from 'eslint-plugin-sonarjs';
|
|
2
2
|
|
|
3
|
-
import { FILES } from '../presets/
|
|
3
|
+
import { FILES } from '../presets/base.js';
|
|
4
4
|
|
|
5
5
|
/** @see [eslint-plugin-sonarjs](https://github.com/SonarSource/eslint-plugin-sonarjs) */
|
|
6
6
|
export const sonar = [
|
|
7
|
+
{ files: FILES, ...plugin.configs.recommended },
|
|
7
8
|
{
|
|
8
9
|
files: FILES,
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
files: FILES,
|
|
13
|
-
plugins: {
|
|
14
|
-
sonar: plugin,
|
|
15
|
-
},
|
|
10
|
+
plugins: { sonar: plugin },
|
|
16
11
|
rules: {
|
|
17
12
|
'sonarjs/no-commented-code': 'warn',
|
|
18
13
|
'sonarjs/no-vue-bypass-sanitization': 'warn',
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import plugin from '@stylistic/eslint-plugin';
|
|
2
2
|
|
|
3
|
-
import { FILES } from '../presets/
|
|
3
|
+
import { FILES } from '../presets/base.js';
|
|
4
4
|
|
|
5
5
|
/** @see [@stylistic/eslint-plugin](https://eslint.style/) */
|
|
6
6
|
export const stylistic = [
|
|
7
7
|
{
|
|
8
8
|
files: FILES,
|
|
9
|
-
plugins: {
|
|
10
|
-
'@stylistic': plugin,
|
|
11
|
-
},
|
|
9
|
+
plugins: { '@stylistic': plugin },
|
|
12
10
|
rules: {
|
|
13
11
|
'@stylistic/lines-around-comment': [
|
|
14
12
|
'warn',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// import tailwind from 'eslint-plugin-tailwindcss';
|
|
2
|
-
import { FILES } from '../presets/
|
|
2
|
+
import { FILES } from '../presets/base.js';
|
|
3
3
|
|
|
4
4
|
/** @see [eslint-plugin-tailwindcss](https://github.com/francoismassart/eslint-plugin-tailwindcss) */
|
|
5
5
|
export const tailwindcss = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable unicorn/no-null */
|
|
2
2
|
import plugin from 'typescript-eslint';
|
|
3
3
|
|
|
4
|
-
import { FILES } from '../presets/
|
|
4
|
+
import { FILES } from '../presets/base.js';
|
|
5
5
|
|
|
6
6
|
/** @see [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint) */
|
|
7
7
|
export const typescript = [
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
import plugin from '@unocss/eslint-config/flat';
|
|
2
2
|
|
|
3
|
-
import { FILES } from '../presets/
|
|
3
|
+
import { FILES } from '../presets/base.js';
|
|
4
4
|
|
|
5
5
|
/** @see [@unocss/eslint-config](https://unocss.dev/integrations/eslint) */
|
|
6
6
|
export const unocss = [
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
...plugin,
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
files: FILES,
|
|
13
|
-
rules: {
|
|
14
|
-
'unocss/order-attributify': 'off',
|
|
15
|
-
},
|
|
16
|
-
},
|
|
7
|
+
{ files: FILES, ...plugin },
|
|
8
|
+
{ files: FILES, rules: { 'unocss/order-attributify': 'off' } },
|
|
17
9
|
];
|
|
@@ -13,10 +13,10 @@ import { vitest } from '../plugins/vitest.js';
|
|
|
13
13
|
import { vueAccessibility } from '../plugins/vue-accessibility.js';
|
|
14
14
|
import { vueI18n } from '../plugins/vue-i18n.js';
|
|
15
15
|
import { vue } from '../plugins/vue.js';
|
|
16
|
-
import {
|
|
16
|
+
import { base } from './base.js';
|
|
17
17
|
|
|
18
18
|
export const defaultPreset = [
|
|
19
|
-
...
|
|
19
|
+
...base, // must be first
|
|
20
20
|
|
|
21
21
|
...javascript,
|
|
22
22
|
...jsdoc,
|
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/markdownlint-cli@0.
|
|
13
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/markdownlint-cli@0.45.0/node_modules/markdownlint-cli/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/markdownlint-cli@0.45.0/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/markdownlint-cli@0.
|
|
15
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/markdownlint-cli@0.45.0/node_modules/markdownlint-cli/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/markdownlint-cli@0.45.0/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../markdownlint-cli/markdownlint.js" "$@"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-markdownlint",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.17.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "markdownlint config",
|
|
6
6
|
"keywords": [
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"markdownlint": "^0.38.0",
|
|
38
|
-
"markdownlint-cli": "^0.
|
|
38
|
+
"markdownlint-cli": "^0.45.0"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=18.18"
|