@alexlit/lint-kit 133.6.0 → 134.0.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/eslint.config.js +8 -1
- package/package.json +1 -1
- package/packages/config-eslint/index.js +1 -0
- package/packages/config-eslint/node_modules/.bin/esbuild +3 -3
- 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/node_modules/.bin/tsc +2 -2
- package/packages/config-eslint/node_modules/.bin/tsserver +2 -2
- package/packages/config-eslint/package.json +3 -2
- package/packages/config-eslint/plugins/tailwindcss.js +14 -0
- package/packages/config-eslint/plugins/vue.js +4 -1
- package/packages/config-eslint/presets/default.js +0 -2
- package/packages/config-stylelint/index.js +0 -29
- package/packages/config-stylelint/package.json +1 -1
- package/packages/config-stylelint/plugins/a11y.js +1 -0
- package/packages/config-stylelint/plugins/color-format.js +1 -0
- package/packages/config-stylelint/plugins/declaration-block-no-ignored-properties.js +1 -0
- package/packages/config-stylelint/plugins/gamut.js +1 -0
- package/packages/config-stylelint/plugins/high-performance-animation.js +1 -0
- package/packages/config-stylelint/plugins/logical-css.js +1 -0
- package/packages/config-stylelint/plugins/no-indistinguishable-colors.js +1 -0
- package/packages/config-stylelint/plugins/no-nested-media.js +1 -0
- package/packages/config-stylelint/plugins/no-unresolved-module.js +1 -0
- package/packages/config-stylelint/plugins/no-unsupported-browser-features.js +1 -0
- package/packages/config-stylelint/plugins/order.js +1 -0
- package/packages/config-stylelint/plugins/prettier.js +1 -0
- package/packages/config-stylelint/plugins/scss.js +2 -0
- package/packages/config-stylelint/plugins/selector-no-empty.js +1 -0
- package/packages/config-stylelint/plugins/use-nesting.js +1 -0
- package/packages/config-stylelint/plugins/vue.js +1 -0
package/eslint.config.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
defaultPreset,
|
|
3
|
+
prettierConfig,
|
|
4
|
+
tailwindcss,
|
|
5
|
+
} from '@alexlit/config-eslint';
|
|
2
6
|
|
|
3
7
|
export default [
|
|
4
8
|
...defaultPreset,
|
|
@@ -13,4 +17,7 @@ export default [
|
|
|
13
17
|
'no-restricted-imports': 'off',
|
|
14
18
|
},
|
|
15
19
|
},
|
|
20
|
+
|
|
21
|
+
...tailwindcss,
|
|
22
|
+
...prettierConfig,
|
|
16
23
|
];
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ export { prettier, prettierConfig } from './plugins/prettier.js';
|
|
|
5
5
|
export { regexp } from './plugins/regexp.js';
|
|
6
6
|
export { sonar } from './plugins/sonar.js';
|
|
7
7
|
export { stylistic } from './plugins/stylistic.js';
|
|
8
|
+
export { tailwindcss } from './plugins/tailwindcss.js';
|
|
8
9
|
export { tanstackQuery } from './plugins/tanstack-query.js';
|
|
9
10
|
export { typescript } from './plugins/typescript.js';
|
|
10
11
|
export { unicorn } from './plugins/unicorn.js';
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/esbuild@0.24.
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/esbuild@0.24.2/node_modules/esbuild/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/esbuild@0.24.2/node_modules/esbuild/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/esbuild@0.24.2/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/esbuild@0.24.
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/esbuild@0.24.2/node_modules/esbuild/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/esbuild@0.24.2/node_modules/esbuild/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/esbuild@0.24.2/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
|
-
"$basedir/../../../../node_modules/.pnpm/esbuild@0.24.
|
|
13
|
+
"$basedir/../../../../node_modules/.pnpm/esbuild@0.24.2/node_modules/esbuild/bin/esbuild" "$@"
|
|
14
14
|
exit $?
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint@9.17.0_jiti@2.4.2/node_modules/eslint/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint@9.17.0_jiti@2.4.2/node_modules/eslint/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint@9.17.0_jiti@2.4.2/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir
|
|
14
|
+
exec "$basedir/node" "$basedir/../eslint/bin/eslint.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir
|
|
16
|
+
exec node "$basedir/../eslint/bin/eslint.js" "$@"
|
|
17
17
|
fi
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint-config-prettier@9.1.0_eslint@9.17.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@9.1.0_eslint@9.17.0_jiti@2.4.2_/node_modules/eslint-config-prettier/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint-config-prettier@9.1.0_eslint@9.17.0_jiti@2.4.2_/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir
|
|
14
|
+
exec "$basedir/node" "$basedir/../eslint-config-prettier/bin/cli.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir
|
|
16
|
+
exec node "$basedir/../eslint-config-prettier/bin/cli.js" "$@"
|
|
17
17
|
fi
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.7.2/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir
|
|
14
|
+
exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir
|
|
16
|
+
exec node "$basedir/../typescript/bin/tsc" "$@"
|
|
17
17
|
fi
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.7.2/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir
|
|
14
|
+
exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir
|
|
16
|
+
exec node "$basedir/../typescript/bin/tsserver" "$@"
|
|
17
17
|
fi
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-eslint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "100.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Eslint config",
|
|
6
6
|
"keywords": [
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@intlify/eslint-plugin-vue-i18n": "^3.2.0",
|
|
42
42
|
"@stylistic/eslint-plugin": "^2.12.1",
|
|
43
43
|
"@tanstack/eslint-plugin-query": "^5.62.9",
|
|
44
|
-
"@unocss/eslint-config": "^0.65.
|
|
44
|
+
"@unocss/eslint-config": "^0.65.3",
|
|
45
45
|
"eslint": "9.17.0",
|
|
46
46
|
"eslint-config-prettier": "^9.1.0",
|
|
47
47
|
"eslint-plugin-jsdoc": "^50.6.1",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"eslint-plugin-prettier": "^5.2.1",
|
|
50
50
|
"eslint-plugin-regexp": "^2.7.0",
|
|
51
51
|
"eslint-plugin-sonarjs": "^3.0.1",
|
|
52
|
+
"eslint-plugin-tailwindcss": "^3.17.5",
|
|
52
53
|
"eslint-plugin-unicorn": "^56.0.1",
|
|
53
54
|
"eslint-plugin-vitest": "^0.5.4",
|
|
54
55
|
"eslint-plugin-vue": "^9.32.0",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import tailwind from 'eslint-plugin-tailwindcss';
|
|
2
|
+
|
|
3
|
+
/** @see [eslint-plugin-tailwindcss](https://github.com/francoismassart/eslint-plugin-tailwindcss) */
|
|
4
|
+
export const tailwindcss = [
|
|
5
|
+
...tailwind.configs['flat/recommended'],
|
|
6
|
+
|
|
7
|
+
{
|
|
8
|
+
rules: {
|
|
9
|
+
'tailwindcss/no-custom-classname': 'off',
|
|
10
|
+
|
|
11
|
+
'vue/static-class-names-order': 'off',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
];
|
|
@@ -19,7 +19,10 @@ export const vue = [
|
|
|
19
19
|
'vue/component-name-in-template-casing': [
|
|
20
20
|
'error',
|
|
21
21
|
'PascalCase',
|
|
22
|
-
{
|
|
22
|
+
{
|
|
23
|
+
ignores: [String.raw`/^[A-Z][a-zA-Z]*\.[A-Z][a-zA-Z]*$/`],
|
|
24
|
+
registeredComponentsOnly: false,
|
|
25
|
+
},
|
|
23
26
|
],
|
|
24
27
|
'vue/component-options-name-casing': ['error', 'PascalCase'],
|
|
25
28
|
'vue/define-emits-declaration': ['error'],
|
|
@@ -8,7 +8,6 @@ import { stylistic } from '../plugins/stylistic.js';
|
|
|
8
8
|
import { tanstackQuery } from '../plugins/tanstack-query.js';
|
|
9
9
|
import { typescript } from '../plugins/typescript.js';
|
|
10
10
|
import { unicorn } from '../plugins/unicorn.js';
|
|
11
|
-
import { unocss } from '../plugins/unocss.js';
|
|
12
11
|
import { vitest } from '../plugins/vitest.js';
|
|
13
12
|
import { vueAccessibility } from '../plugins/vue-accessibility.js';
|
|
14
13
|
import { vueI18n } from '../plugins/vue-i18n.js';
|
|
@@ -27,7 +26,6 @@ export const defaultPreset = [
|
|
|
27
26
|
...tanstackQuery,
|
|
28
27
|
...typescript,
|
|
29
28
|
...unicorn,
|
|
30
|
-
...unocss,
|
|
31
29
|
...vitest,
|
|
32
30
|
...vue,
|
|
33
31
|
...vueAccessibility,
|
|
@@ -1,56 +1,27 @@
|
|
|
1
1
|
/* eslint-disable unicorn/no-null */
|
|
2
2
|
|
|
3
3
|
const ADDITIONAL_PLUGINS = {
|
|
4
|
-
/** @see [stylelint-a11y](https://github.com/double-great/stylelint-a11y) */
|
|
5
4
|
a11y: true,
|
|
6
|
-
|
|
7
|
-
/** @see [stylelint-color-format](https://github.com/filipekiss/stylelint-color-format) */
|
|
8
5
|
'color-format': true,
|
|
9
|
-
|
|
10
|
-
/** @see [stylelint-declaration-block-no-ignored-properties](https://github.com/kristerkari/stylelint-declaration-block-no-ignored-properties) */
|
|
11
6
|
'declaration-block-no-ignored-properties': true,
|
|
12
|
-
|
|
13
|
-
/** @see [stylelint-high-performance-animation](https://github.com/kristerkari/stylelint-high-performance-animation) */
|
|
14
7
|
'high-performance-animation': true,
|
|
15
|
-
|
|
16
|
-
/** @see [stylelint-no-nested-media](https://github.com/dkrnl/stylelint-no-nested-media) */
|
|
17
8
|
'no-nested-media': true,
|
|
18
|
-
|
|
19
|
-
/** @see [stylelint-no-unresolved-module](https://github.com/niksy/stylelint-no-unresolved-module) */
|
|
20
9
|
'no-unresolved-module': true,
|
|
21
|
-
|
|
22
|
-
/** @see [stylelint-order](https://github.com/hudochenkov/stylelint-order) */
|
|
23
10
|
order: true,
|
|
24
|
-
|
|
25
|
-
/** @see [stylelint-scss](https://github.com/kristerkari/stylelint-scss) */
|
|
26
11
|
scss: true,
|
|
27
|
-
|
|
28
|
-
/** @see [stylelint-selector-no-empty](https://github.com/ssivanatarajan/stylelint-selector-no-empty) */
|
|
29
12
|
'selector-no-empty': true,
|
|
30
|
-
|
|
31
|
-
/** @see [stylelint-use-nesting](https://github.com/csstools/stylelint-use-nesting) */
|
|
32
13
|
'use-nesting': true,
|
|
33
|
-
|
|
34
|
-
/** @see [stylelint-config-recommended-vue](https://github.com/ota-meshi/stylelint-config-recommended-vue) */
|
|
35
14
|
vue: true,
|
|
36
15
|
};
|
|
37
16
|
|
|
38
17
|
const OPTIONAL_PLUGINS = {
|
|
39
|
-
/** @see [stylelint-gamut](https://github.com/fpetrakov/stylelint-gamut) */
|
|
40
18
|
gamut: false,
|
|
41
|
-
|
|
42
|
-
/** @see [stylelint-plugin-logical-css](https://github.com/yuschick/stylelint-plugin-logical-css) */
|
|
43
19
|
'logical-css': false,
|
|
44
|
-
|
|
45
|
-
/** @see [stylelint-no-indistinguishable-colors](https://github.com/ierhyna/stylelint-no-indistinguishable-colors) */
|
|
46
20
|
'no-indistinguishable-colors': false,
|
|
47
|
-
|
|
48
|
-
/** @see [stylelint-no-unsupported-browser-features](https://github.com/ismay/stylelint-no-unsupported-browser-features) */
|
|
49
21
|
'no-unsupported-browser-features': false,
|
|
50
22
|
};
|
|
51
23
|
|
|
52
24
|
const CODESTYLE_PLUGINS = {
|
|
53
|
-
/** @see [stylelint-prettier](https://github.com/prettier/stylelint-prettier) */
|
|
54
25
|
prettier: true,
|
|
55
26
|
};
|
|
56
27
|
|