@alexlit/lint-kit 145.2.1 → 145.3.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-branchnamelint/node_modules/.bin/branch-name-lint +17 -0
- package/packages/config-branchnamelint/node_modules/.bin/lockfile-lint +17 -0
- package/packages/config-branchnamelint/node_modules/.bin/npmPkgJsonLint +17 -0
- package/packages/config-commitlint/node_modules/.bin/tsc +4 -4
- package/packages/config-commitlint/node_modules/.bin/tsserver +4 -4
- package/packages/config-eslint/node_modules/.bin/acorn +4 -4
- package/packages/config-eslint/node_modules/.bin/browserslist +4 -4
- package/packages/config-eslint/node_modules/.bin/esbuild +3 -3
- package/packages/config-eslint/node_modules/.bin/eslint-config-prettier +2 -2
- package/packages/config-eslint/node_modules/.bin/jiti +4 -4
- package/packages/config-eslint/node_modules/.bin/prettier +4 -4
- package/packages/config-eslint/node_modules/.bin/tailwind +17 -0
- package/packages/config-eslint/node_modules/.bin/tailwindcss +17 -0
- package/packages/config-eslint/package.json +2 -2
- package/packages/config-hooks/node_modules/.bin/lint-staged +2 -2
- package/packages/config-hooks/package.json +2 -2
- package/packages/config-htmllint/node_modules/.bin/tsc +4 -4
- package/packages/config-htmllint/node_modules/.bin/tsserver +4 -4
- package/packages/config-npmlint/node_modules/.bin/tsc +4 -4
- package/packages/config-npmlint/node_modules/.bin/tsserver +4 -4
- package/packages/config-prettier/package.json +2 -2
- package/packages/config-stylelint/index.js +10 -19
- package/packages/config-stylelint/node_modules/.bin/browserslist +4 -4
- package/packages/config-stylelint/node_modules/.bin/prettier +2 -2
- package/packages/config-stylelint/node_modules/.bin/stylelint +2 -2
- package/packages/config-stylelint/node_modules/.bin/tsc +4 -4
- package/packages/config-stylelint/node_modules/.bin/tsserver +4 -4
- package/packages/config-stylelint/package.json +1 -2
- package/packages/config-eslint/node_modules/eslint-plugin-no-use-extend-native/index.js +0 -17
- package/packages/config-eslint/node_modules/eslint-plugin-no-use-extend-native/license.md +0 -21
- package/packages/config-eslint/node_modules/eslint-plugin-no-use-extend-native/package.json +0 -57
- package/packages/config-eslint/node_modules/eslint-plugin-no-use-extend-native/readme.md +0 -91
- package/packages/config-eslint/node_modules/eslint-plugin-no-use-extend-native/rules/no-use-extend-native.js +0 -150
- package/packages/config-stylelint/plugins/no-browser-hacks.js +0 -7
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/@b12k+branch-name-lint@1.1.0/node_modules/@b12k/branch-name-lint/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/@b12k+branch-name-lint@1.1.0/node_modules/@b12k/branch-name-lint/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/@b12k+branch-name-lint@1.1.0/node_modules/@b12k/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/@b12k+branch-name-lint@1.1.0/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/@b12k+branch-name-lint@1.1.0/node_modules/@b12k/branch-name-lint/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/@b12k+branch-name-lint@1.1.0/node_modules/@b12k/branch-name-lint/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/@b12k+branch-name-lint@1.1.0/node_modules/@b12k/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/@b12k+branch-name-lint@1.1.0/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../@b12k/branch-name-lint/bin/index.js" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../@b12k/branch-name-lint/bin/index.js" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/lockfile-lint@4.14.0_typescript@5.8.3/node_modules/lockfile-lint/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/lockfile-lint@4.14.0_typescript@5.8.3/node_modules/lockfile-lint/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/lockfile-lint@4.14.0_typescript@5.8.3/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/lockfile-lint@4.14.0_typescript@5.8.3/node_modules/lockfile-lint/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/lockfile-lint@4.14.0_typescript@5.8.3/node_modules/lockfile-lint/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/lockfile-lint@4.14.0_typescript@5.8.3/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../lockfile-lint/bin/lockfile-lint.js" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../lockfile-lint/bin/lockfile-lint.js" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/npm-package-json-lint@8.0.0_typescript@5.8.3/node_modules/npm-package-json-lint/dist/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/npm-package-json-lint@8.0.0_typescript@5.8.3/node_modules/npm-package-json-lint/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/npm-package-json-lint@8.0.0_typescript@5.8.3/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/npm-package-json-lint@8.0.0_typescript@5.8.3/node_modules/npm-package-json-lint/dist/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/npm-package-json-lint@8.0.0_typescript@5.8.3/node_modules/npm-package-json-lint/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/npm-package-json-lint@8.0.0_typescript@5.8.3/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../npm-package-json-lint/dist/cli.js" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../npm-package-json-lint/dist/cli.js" "$@"
|
|
17
|
+
fi
|
|
@@ -6,12 +6,12 @@ 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/typescript@5.
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/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/typescript@5.
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/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/../../../../node_modules/.pnpm/typescript@5.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
16
|
+
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" "$@"
|
|
17
17
|
fi
|
|
@@ -6,12 +6,12 @@ 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/typescript@5.
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/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/typescript@5.
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/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/../../../../node_modules/.pnpm/typescript@5.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
16
|
+
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" "$@"
|
|
17
17
|
fi
|
|
@@ -6,12 +6,12 @@ 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/acorn@8.
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/acorn@8.14.1/node_modules/acorn/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/acorn@8.14.1/node_modules/acorn/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/acorn@8.14.1/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/acorn@8.
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/acorn@8.14.1/node_modules/acorn/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/acorn@8.14.1/node_modules/acorn/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/acorn@8.14.1/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/../../../../node_modules/.pnpm/acorn@8.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/acorn@8.14.1/node_modules/acorn/bin/acorn" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/acorn@8.
|
|
16
|
+
exec node "$basedir/../../../../node_modules/.pnpm/acorn@8.14.1/node_modules/acorn/bin/acorn" "$@"
|
|
17
17
|
fi
|
|
@@ -6,12 +6,12 @@ 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/browserslist@4.24.
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/browserslist@4.24.4/node_modules/browserslist/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/browserslist@4.24.4/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/browserslist@4.24.
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/browserslist@4.24.4/node_modules/browserslist/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/browserslist@4.24.4/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/../../../../node_modules/.pnpm/browserslist@4.24.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/browserslist@4.24.4/node_modules/browserslist/cli.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/browserslist@4.24.
|
|
16
|
+
exec node "$basedir/../../../../node_modules/.pnpm/browserslist@4.24.4/node_modules/browserslist/cli.js" "$@"
|
|
17
17
|
fi
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
13
|
+
"$basedir/../../../../node_modules/.pnpm/esbuild@0.24.2/node_modules/esbuild/bin/esbuild" "$@"
|
|
14
14
|
exit $?
|
|
@@ -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/eslint-config-prettier@10.1.
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint-config-prettier@10.1.2_eslint@9.24.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.2_eslint@9.24.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.2_eslint@9.24.0_jiti@2.4.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/eslint-config-prettier@10.1.
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/eslint-config-prettier@10.1.2_eslint@9.24.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.2_eslint@9.24.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.2_eslint@9.24.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
14
|
exec "$basedir/node" "$basedir/../eslint-config-prettier/bin/cli.js" "$@"
|
|
@@ -6,12 +6,12 @@ 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/jiti@2.4.
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/lib/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/jiti@2.4.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/jiti@2.4.
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/lib/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/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/../../../../node_modules/.pnpm/jiti@2.4.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/lib/jiti-cli.mjs" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/jiti@2.4.
|
|
16
|
+
exec node "$basedir/../../../../node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/lib/jiti-cli.mjs" "$@"
|
|
17
17
|
fi
|
|
@@ -6,12 +6,12 @@ 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/prettier@3.
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/prettier@3.5.3/node_modules/prettier/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/prettier@3.5.3/node_modules/prettier/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/prettier@3.5.3/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/prettier@3.
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/prettier@3.5.3/node_modules/prettier/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/prettier@3.5.3/node_modules/prettier/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/prettier@3.5.3/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/../../../../node_modules/.pnpm/prettier@3.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/prettier@3.5.3/node_modules/prettier/bin/prettier.cjs" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/prettier@3.
|
|
16
|
+
exec node "$basedir/../../../../node_modules/.pnpm/prettier@3.5.3/node_modules/prettier/bin/prettier.cjs" "$@"
|
|
17
17
|
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.17/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.17/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/cli.js" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/cli.js" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.17/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.17/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/cli.js" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/cli.js" "$@"
|
|
17
|
+
fi
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-eslint",
|
|
3
|
-
"version": "108.5.
|
|
3
|
+
"version": "108.5.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Sharable ESLint configuration",
|
|
6
6
|
"keywords": [
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@tanstack/eslint-plugin-query": "^5.72.2",
|
|
47
47
|
"@unocss/eslint-config": "^66.0.0",
|
|
48
48
|
"eslint": "9.24.0",
|
|
49
|
-
"eslint-config-prettier": "^10.1.
|
|
49
|
+
"eslint-config-prettier": "^10.1.2",
|
|
50
50
|
"eslint-plugin-jsdoc": "^50.6.9",
|
|
51
51
|
"eslint-plugin-perfectionist": "^4.11.0",
|
|
52
52
|
"eslint-plugin-prettier": "^5.2.6",
|
|
@@ -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/lint-staged@15.5.
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/lint-staged@15.5.1/node_modules/lint-staged/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/lint-staged@15.5.1/node_modules/lint-staged/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/lint-staged@15.5.1/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/lint-staged@15.5.
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/lint-staged@15.5.1/node_modules/lint-staged/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/lint-staged@15.5.1/node_modules/lint-staged/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/lint-staged@15.5.1/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
14
|
exec "$basedir/node" "$basedir/../lint-staged/bin/lint-staged.js" "$@"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-hooks",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Hooks config",
|
|
6
6
|
"keywords": [
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"husky": "^9.1.7",
|
|
39
|
-
"lint-staged": "^15.5.
|
|
39
|
+
"lint-staged": "^15.5.1"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=18.18"
|
|
@@ -6,12 +6,12 @@ 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/typescript@5.
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/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/typescript@5.
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/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/../../../../node_modules/.pnpm/typescript@5.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
16
|
+
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" "$@"
|
|
17
17
|
fi
|
|
@@ -6,12 +6,12 @@ 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/typescript@5.
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/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/typescript@5.
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/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/../../../../node_modules/.pnpm/typescript@5.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
16
|
+
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" "$@"
|
|
17
17
|
fi
|
|
@@ -6,12 +6,12 @@ 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/typescript@5.
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/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/typescript@5.
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/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/../../../../node_modules/.pnpm/typescript@5.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
16
|
+
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" "$@"
|
|
17
17
|
fi
|
|
@@ -6,12 +6,12 @@ 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/typescript@5.
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/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/typescript@5.
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/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/../../../../node_modules/.pnpm/typescript@5.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
16
|
+
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" "$@"
|
|
17
17
|
fi
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-prettier",
|
|
3
|
-
"version": "20.8.
|
|
3
|
+
"version": "20.8.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "prettier config",
|
|
6
6
|
"keywords": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"prettier-plugin-eruby": "^0.0.3",
|
|
44
44
|
"prettier-plugin-jsdoc": "^1.3.2",
|
|
45
45
|
"prettier-plugin-packagejson": "^2.5.10",
|
|
46
|
-
"prettier-plugin-sh": "^0.17.
|
|
46
|
+
"prettier-plugin-sh": "^0.17.2",
|
|
47
47
|
"prettier-plugin-solidity": "^1.4.2",
|
|
48
48
|
"prettier-plugin-sort-json": "^4.1.1",
|
|
49
49
|
"prettier-plugin-sql": "^0.19.0",
|
|
@@ -5,27 +5,24 @@ const ADDITIONAL_PLUGINS = {
|
|
|
5
5
|
'declaration-block-no-ignored-properties': true,
|
|
6
6
|
'high-performance-animation': true,
|
|
7
7
|
'no-nested-media': true,
|
|
8
|
-
order: true,
|
|
9
|
-
scss: true,
|
|
8
|
+
'order': true,
|
|
9
|
+
'scss': true,
|
|
10
10
|
'selector-no-empty': true,
|
|
11
11
|
'use-nesting': true,
|
|
12
|
-
vue: true,
|
|
12
|
+
'vue': true,
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
const OPTIONAL_PLUGINS = {
|
|
16
|
-
a11y: false,
|
|
17
|
-
gamut: false,
|
|
16
|
+
'a11y': false,
|
|
17
|
+
'gamut': false,
|
|
18
18
|
'logical-css': false,
|
|
19
19
|
'media-use-custom-media': false,
|
|
20
|
-
'no-browser-hacks': false,
|
|
21
20
|
'no-indistinguishable-colors': false,
|
|
22
21
|
'no-unresolved-module': false,
|
|
23
22
|
'no-unsupported-browser-features': false,
|
|
24
23
|
};
|
|
25
24
|
|
|
26
|
-
const CODESTYLE_PLUGINS = {
|
|
27
|
-
prettier: true,
|
|
28
|
-
};
|
|
25
|
+
const CODESTYLE_PLUGINS = { prettier: true };
|
|
29
26
|
|
|
30
27
|
const PLUGINS = {
|
|
31
28
|
...ADDITIONAL_PLUGINS,
|
|
@@ -99,9 +96,7 @@ const createConfig = (plugins = {}, options = {}) => ({
|
|
|
99
96
|
'color-no-invalid-hex': true,
|
|
100
97
|
'custom-property-empty-line-before': [
|
|
101
98
|
'always',
|
|
102
|
-
{
|
|
103
|
-
except: ['after-comment', 'after-custom-property', 'first-nested'],
|
|
104
|
-
},
|
|
99
|
+
{ except: ['after-comment', 'after-custom-property', 'first-nested'] },
|
|
105
100
|
],
|
|
106
101
|
'custom-property-pattern': '^_?[a-z]+([a-z0-9-]+[a-z0-9]+)?$',
|
|
107
102
|
'declaration-block-no-redundant-longhand-properties': null,
|
|
@@ -121,9 +116,7 @@ const createConfig = (plugins = {}, options = {}) => ({
|
|
|
121
116
|
'keyframes-name-pattern': '^[a-z]+(-[a-z]+)*$',
|
|
122
117
|
'max-nesting-depth': [
|
|
123
118
|
6,
|
|
124
|
-
{
|
|
125
|
-
ignoreAtRules: ['each', 'media', 'supports', 'include'],
|
|
126
|
-
},
|
|
119
|
+
{ ignoreAtRules: ['each', 'media', 'supports', 'include'] },
|
|
127
120
|
],
|
|
128
121
|
'media-feature-name-no-unknown': [
|
|
129
122
|
true,
|
|
@@ -141,16 +134,14 @@ const createConfig = (plugins = {}, options = {}) => ({
|
|
|
141
134
|
'align-tracks',
|
|
142
135
|
'animation-timeline',
|
|
143
136
|
'interpolate-size',
|
|
137
|
+
'text-stroke',
|
|
144
138
|
],
|
|
145
139
|
},
|
|
146
140
|
],
|
|
147
141
|
'property-no-vendor-prefix': true,
|
|
148
142
|
'rule-empty-line-before': [
|
|
149
143
|
'always',
|
|
150
|
-
{
|
|
151
|
-
except: ['first-nested'],
|
|
152
|
-
ignore: [],
|
|
153
|
-
},
|
|
144
|
+
{ except: ['first-nested'], ignore: [] },
|
|
154
145
|
],
|
|
155
146
|
'selector-class-pattern': [
|
|
156
147
|
'^[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+){0,2}$',
|
|
@@ -6,12 +6,12 @@ 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/browserslist@4.24.
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/browserslist@4.24.4/node_modules/browserslist/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/browserslist@4.24.4/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/browserslist@4.24.
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/browserslist@4.24.4/node_modules/browserslist/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/browserslist@4.24.4/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/../../../../node_modules/.pnpm/browserslist@4.24.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/browserslist@4.24.4/node_modules/browserslist/cli.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/browserslist@4.24.
|
|
16
|
+
exec node "$basedir/../../../../node_modules/.pnpm/browserslist@4.24.4/node_modules/browserslist/cli.js" "$@"
|
|
17
17
|
fi
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/prettier@3.5.3/node_modules/prettier/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/prettier@3.5.3/node_modules/prettier/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/prettier@3.5.3/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/../../../../node_modules/.pnpm/prettier@3.5.3/node_modules/prettier/bin/prettier.cjs" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir
|
|
16
|
+
exec node "$basedir/../../../../node_modules/.pnpm/prettier@3.5.3/node_modules/prettier/bin/prettier.cjs" "$@"
|
|
17
17
|
fi
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/stylelint@16.18.0_typescript@5.8.3/node_modules/stylelint/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/stylelint@16.18.0_typescript@5.8.3/node_modules/stylelint/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/stylelint@16.18.0_typescript@5.8.3/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/../../../../node_modules/.pnpm/stylelint@16.18.0_typescript@5.8.3/node_modules/stylelint/bin/stylelint.mjs" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir
|
|
16
|
+
exec node "$basedir/../../../../node_modules/.pnpm/stylelint@16.18.0_typescript@5.8.3/node_modules/stylelint/bin/stylelint.mjs" "$@"
|
|
17
17
|
fi
|
|
@@ -6,12 +6,12 @@ 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/typescript@5.
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/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/typescript@5.
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/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/../../../../node_modules/.pnpm/typescript@5.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
16
|
+
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" "$@"
|
|
17
17
|
fi
|
|
@@ -6,12 +6,12 @@ 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/typescript@5.
|
|
9
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/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/typescript@5.
|
|
11
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.8.3/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/../../../../node_modules/.pnpm/typescript@5.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
16
|
+
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" "$@"
|
|
17
17
|
fi
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-stylelint",
|
|
3
|
-
"version": "51.0
|
|
3
|
+
"version": "51.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Stylelint config",
|
|
6
6
|
"keywords": [
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
"stylelint-gamut": "^1.3.4",
|
|
50
50
|
"stylelint-high-performance-animation": "^1.11.0",
|
|
51
51
|
"stylelint-media-use-custom-media": "^4.0.0",
|
|
52
|
-
"stylelint-no-browser-hacks": "^1.3.0",
|
|
53
52
|
"stylelint-no-indistinguishable-colors": "^2.3.1",
|
|
54
53
|
"stylelint-no-nested-media": "^0.1.0",
|
|
55
54
|
"stylelint-no-unresolved-module": "^2.3.0",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/* eslint no-var: 0 */
|
|
2
|
-
'use strict'
|
|
3
|
-
var rule = require('./rules/no-use-extend-native')
|
|
4
|
-
|
|
5
|
-
module.exports = {
|
|
6
|
-
rules: {
|
|
7
|
-
'no-use-extend-native': rule
|
|
8
|
-
},
|
|
9
|
-
configs: {
|
|
10
|
-
recommended: {
|
|
11
|
-
plugins: ['no-use-extend-native'],
|
|
12
|
-
rules: {
|
|
13
|
-
'no-use-extend-native/no-use-extend-native': 2
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2015 Dustin Specker
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "eslint-plugin-no-use-extend-native",
|
|
3
|
-
"version": "0.5.0",
|
|
4
|
-
"description": "ESLint plugin to prevent use of extended native objects",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"compile": "babel src --out-dir rules",
|
|
7
|
-
"coveralls": "nyc report --reporter=text-lcov | coveralls",
|
|
8
|
-
"lint": "eslint ./ --ignore-pattern node_modules/ --ignore-pattern rules/ --ignore-pattern ava/",
|
|
9
|
-
"test": "npm run compile && npm run lint && nyc ava"
|
|
10
|
-
},
|
|
11
|
-
"ava": {
|
|
12
|
-
"require": [
|
|
13
|
-
"esm"
|
|
14
|
-
]
|
|
15
|
-
},
|
|
16
|
-
"repository": "https://github.com/dustinspecker/eslint-plugin-no-use-extend-native",
|
|
17
|
-
"bugs": "https://github.com/dustinspecker/eslint-plugin-no-use-extend-native/issues",
|
|
18
|
-
"homepage": "https://github.com/dustinspecker/eslint-plugin-no-use-extend-native",
|
|
19
|
-
"engines": {
|
|
20
|
-
"node": ">=6.0.0"
|
|
21
|
-
},
|
|
22
|
-
"keywords": [
|
|
23
|
-
"eslint",
|
|
24
|
-
"eslintplugin",
|
|
25
|
-
"extend",
|
|
26
|
-
"native",
|
|
27
|
-
"prototype"
|
|
28
|
-
],
|
|
29
|
-
"author": "Dustin Specker",
|
|
30
|
-
"contributors": [
|
|
31
|
-
"Brett Zamir"
|
|
32
|
-
],
|
|
33
|
-
"license": "MIT",
|
|
34
|
-
"files": [
|
|
35
|
-
"index.js",
|
|
36
|
-
"rules"
|
|
37
|
-
],
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"is-get-set-prop": "^1.0.0",
|
|
40
|
-
"is-js-type": "^2.0.0",
|
|
41
|
-
"is-obj-prop": "^1.0.0",
|
|
42
|
-
"is-proto-prop": "^2.0.0"
|
|
43
|
-
},
|
|
44
|
-
"devDependencies": {
|
|
45
|
-
"@babel/cli": "^7.8.4",
|
|
46
|
-
"@babel/preset-env": "^7.9.5",
|
|
47
|
-
"ava": "^3.6.0",
|
|
48
|
-
"coveralls": "^3.0.11",
|
|
49
|
-
"eslint": "^6.8.0",
|
|
50
|
-
"eslint-ava-rule-tester": "^4.0.0",
|
|
51
|
-
"eslint-config-dustinspecker": "^5.0.0",
|
|
52
|
-
"eslint-path-formatter": "^0.1.1",
|
|
53
|
-
"eslint-plugin-new-with-error": "^2.0.0",
|
|
54
|
-
"esm": "^3.2.25",
|
|
55
|
-
"nyc": "^15.0.1"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
# eslint-plugin-no-use-extend-native
|
|
2
|
-
[](https://badge.fury.io/js/eslint-plugin-no-use-extend-native)
|
|
3
|
-
[](https://travis-ci.org/dustinspecker/eslint-plugin-no-use-extend-native)
|
|
4
|
-
[](https://coveralls.io/r/dustinspecker/eslint-plugin-no-use-extend-native?branch=master)
|
|
5
|
-
|
|
6
|
-
[](https://codeclimate.com/github/dustinspecker/eslint-plugin-no-use-extend-native)
|
|
7
|
-
[](https://david-dm.org/dustinspecker/eslint-plugin-no-use-extend-native/#info=dependencies&view=table)
|
|
8
|
-
[](https://david-dm.org/dustinspecker/eslint-plugin-no-use-extend-native/#info=devDependencies&view=table)
|
|
9
|
-
|
|
10
|
-
> ESLint plugin to prevent use of extended native objects
|
|
11
|
-
|
|
12
|
-
*Uses [Sindre Sorhus](https://github.com/sindresorhus)'s [proto-props](https://github.com/sindresorhus/proto-props)*
|
|
13
|
-
|
|
14
|
-
## Install
|
|
15
|
-
First, install ESLint via
|
|
16
|
-
```
|
|
17
|
-
npm install --save-dev eslint
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Then install eslint-plugin-no-use-extend-native
|
|
21
|
-
```
|
|
22
|
-
npm install --save-dev eslint-plugin-no-use-extend-native
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Usage
|
|
26
|
-
In your `.eslintrc` file add the plugin as such:
|
|
27
|
-
|
|
28
|
-
```javascript
|
|
29
|
-
{
|
|
30
|
-
plugins: [
|
|
31
|
-
'no-use-extend-native'
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
To modify the single rule, `no-use-extend-native`, add the rule to your `.eslintrc.*` as such:
|
|
37
|
-
```javascript
|
|
38
|
-
{
|
|
39
|
-
plugins: [
|
|
40
|
-
'no-use-extend-native'
|
|
41
|
-
],
|
|
42
|
-
rules: {
|
|
43
|
-
'no-use-extend-native/no-use-extend-native': 1
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
The default value is `2`.
|
|
49
|
-
|
|
50
|
-
If you want the default, you can also just use the following instead of
|
|
51
|
-
all of the above:
|
|
52
|
-
|
|
53
|
-
```javascript
|
|
54
|
-
{
|
|
55
|
-
extends: ['plugin:no-use-extend-native/recommended']
|
|
56
|
-
}
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
With this plugin enabled, ESLint will find issues with using extended native objects:
|
|
60
|
-
```javascript
|
|
61
|
-
const colors = require('colors');
|
|
62
|
-
console.log('unicorn'.green);
|
|
63
|
-
// => ESLint will give an error stating 'Avoid using extended native objects'
|
|
64
|
-
|
|
65
|
-
[].customFunction();
|
|
66
|
-
// => ESLint will give an error stating 'Avoid using extended native objects'
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
More examples can be seen in the [tests](https://github.com/dustinspecker/eslint-plugin-no-use-extend-native/blob/master/test/test.js).
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
## Usage with no-extend-native
|
|
73
|
-
|
|
74
|
-
ESLint's [`no-extend-native`][no-extend-native] rule verifies code is not **modifying** a native prototype. e.g., with the `no-extend-native` rule enabled, the following lines are each considered incorrect:
|
|
75
|
-
```javascript
|
|
76
|
-
String.prototype.shortHash = function() { return this.substring(0, 7); };
|
|
77
|
-
Object.defineProperty(Array.prototype, "times", { value: 999 });
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
`no-use-extend-native` verifies code is not **using** a non-native prototype. e.g., with the `no-use-extend-native` plugin enabled, the following line is considered incorrect:
|
|
81
|
-
```javascript
|
|
82
|
-
"50bda47b09923e045759db8e8dd01a0bacd97370".shortHash() === "50bda47";
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
The `no-use-extend-native` plugin is designed to work with ESLint's `no-extend-native` rule. `no-extend-native` ensures that native prototypes aren't extended, and should a third party library extend them, `no-use-extend-native` ensures those changes aren't depended upon.
|
|
86
|
-
|
|
87
|
-
[no-extend-native]: http://eslint.org/docs/rules/no-extend-native
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
## LICENSE
|
|
91
|
-
MIT © [Dustin Specker](https://github.com/dustinspecker)
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var _isGetSetProp = _interopRequireDefault(require("is-get-set-prop"));
|
|
4
|
-
|
|
5
|
-
var _isJsType = _interopRequireDefault(require("is-js-type"));
|
|
6
|
-
|
|
7
|
-
var _isObjProp = _interopRequireDefault(require("is-obj-prop"));
|
|
8
|
-
|
|
9
|
-
var _isProtoProp = _interopRequireDefault(require("is-proto-prop"));
|
|
10
|
-
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
-
|
|
13
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Return type of value of left or right
|
|
17
|
-
* @param {Object} o - left or right of node.object
|
|
18
|
-
* @return {String} - type of o
|
|
19
|
-
*/
|
|
20
|
-
var getType = function getType(o) {
|
|
21
|
-
var type = _typeof(o.value);
|
|
22
|
-
|
|
23
|
-
if (o.regex) {
|
|
24
|
-
return 'RegExp';
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
return type.charAt(0).toUpperCase() + type.slice(1);
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Returns type of binary expression result
|
|
31
|
-
* @param {Object} o - node's object with a BinaryExpression type
|
|
32
|
-
* @return {String} - type of value produced
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
var binaryExpressionProduces = function binaryExpressionProduces(o) {
|
|
37
|
-
var leftType = o.left.type === 'BinaryExpression' ? binaryExpressionProduces(o.left) : getType(o.left);
|
|
38
|
-
var rightType = o.right.type === 'BinaryExpression' ? binaryExpressionProduces(o.right) : getType(o.right);
|
|
39
|
-
var isRegExp = leftType === rightType && leftType === 'RegExp';
|
|
40
|
-
|
|
41
|
-
if (leftType === 'String' || rightType === 'String' || isRegExp) {
|
|
42
|
-
return 'String';
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (leftType === rightType) {
|
|
46
|
-
return leftType;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
return 'Unknown';
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* Returns the JS type and property name
|
|
53
|
-
* @param {Object} node - node to examine
|
|
54
|
-
* @return {Object} - jsType and propertyName
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
var getJsTypeAndPropertyName = function getJsTypeAndPropertyName(node) {
|
|
59
|
-
var propertyName, jsType;
|
|
60
|
-
|
|
61
|
-
switch (node.object.type) {
|
|
62
|
-
case 'NewExpression':
|
|
63
|
-
jsType = node.object.callee.name;
|
|
64
|
-
break;
|
|
65
|
-
|
|
66
|
-
case 'Literal':
|
|
67
|
-
jsType = getType(node.object);
|
|
68
|
-
break;
|
|
69
|
-
|
|
70
|
-
case 'BinaryExpression':
|
|
71
|
-
jsType = binaryExpressionProduces(node.object);
|
|
72
|
-
break;
|
|
73
|
-
|
|
74
|
-
case 'Identifier':
|
|
75
|
-
if (node.property.name === 'prototype' && node.parent.property) {
|
|
76
|
-
jsType = node.object.name;
|
|
77
|
-
propertyName = node.parent.property.name;
|
|
78
|
-
} else {
|
|
79
|
-
jsType = node.object.name;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
break;
|
|
83
|
-
|
|
84
|
-
default:
|
|
85
|
-
jsType = node.object.type.replace('Expression', '');
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
propertyName = propertyName || node.property.name || node.property.value;
|
|
89
|
-
return {
|
|
90
|
-
propertyName: propertyName,
|
|
91
|
-
jsType: jsType
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
var isUnkownGettSetterOrJsTypeExpressed = function isUnkownGettSetterOrJsTypeExpressed(jsType, propertyName, usageType) {
|
|
96
|
-
var isExpression = usageType === 'ExpressionStatement' || usageType === 'MemberExpression';
|
|
97
|
-
return isExpression && !(0, _isGetSetProp["default"])(jsType, propertyName) && !(0, _isProtoProp["default"])(jsType, propertyName) && !(0, _isObjProp["default"])(jsType, propertyName);
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* Determine if a jsType's usage of propertyName is valid
|
|
101
|
-
* @param {String} jsType - the JS type to validate
|
|
102
|
-
* @param {String} propertyName - the property name to validate usage of on jsType
|
|
103
|
-
* @param {String} usageType - how propertyName is being used
|
|
104
|
-
* @return {Boolean} - is the usage invalid?
|
|
105
|
-
*/
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
var isInvalid = function isInvalid(jsType, propertyName, usageType) {
|
|
109
|
-
if (typeof propertyName !== 'string' || typeof jsType !== 'string' || !(0, _isJsType["default"])(jsType)) {
|
|
110
|
-
return false;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
var unknownGetterSetterOrjsTypeExpressed = isUnkownGettSetterOrJsTypeExpressed(jsType, propertyName, usageType);
|
|
114
|
-
var isFunctionCall = usageType === 'CallExpression';
|
|
115
|
-
var getterSetterCalledAsFunction = isFunctionCall && (0, _isGetSetProp["default"])(jsType, propertyName);
|
|
116
|
-
var unknownjsTypeCalledAsFunction = isFunctionCall && !(0, _isProtoProp["default"])(jsType, propertyName) && !(0, _isObjProp["default"])(jsType, propertyName);
|
|
117
|
-
return unknownGetterSetterOrjsTypeExpressed || getterSetterCalledAsFunction || unknownjsTypeCalledAsFunction;
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
module.exports = {
|
|
121
|
-
meta: {
|
|
122
|
-
type: 'problem'
|
|
123
|
-
},
|
|
124
|
-
create: function create(context) {
|
|
125
|
-
return {
|
|
126
|
-
MemberExpression: function MemberExpression(node) {
|
|
127
|
-
/* eslint complexity: [2, 9] */
|
|
128
|
-
if (node.computed && node.property.type === 'Identifier') {
|
|
129
|
-
/**
|
|
130
|
-
* handles cases like {}[i][j]
|
|
131
|
-
* not enough information to identify type of variable in computed properties
|
|
132
|
-
* so ignore false positives by not performing any checks
|
|
133
|
-
*/
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
var isArgToParent = node.parent.arguments && node.parent.arguments.indexOf(node) > -1;
|
|
138
|
-
var usageType = isArgToParent ? node.type : node.parent.type;
|
|
139
|
-
|
|
140
|
-
var _getJsTypeAndProperty = getJsTypeAndPropertyName(node),
|
|
141
|
-
propertyName = _getJsTypeAndProperty.propertyName,
|
|
142
|
-
jsType = _getJsTypeAndProperty.jsType;
|
|
143
|
-
|
|
144
|
-
if (isInvalid(jsType, propertyName, usageType) && isInvalid('Function', propertyName, usageType)) {
|
|
145
|
-
context.report(node, 'Avoid using extended native objects');
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
};
|