@alexlit/lint-kit 164.4.0 → 164.5.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-commitlint/node_modules/.bin/commitlint +5 -1
- package/packages/config-commitlint/node_modules/.bin/conventional-changelog +5 -1
- package/packages/config-commitlint/node_modules/.bin/conventional-commits-parser +9 -5
- package/packages/config-commitlint/node_modules/.bin/tsc +9 -5
- package/packages/config-commitlint/node_modules/.bin/tsserver +9 -5
- package/packages/config-eslint/node_modules/.bin/acorn +9 -5
- package/packages/config-eslint/node_modules/.bin/browserslist +9 -5
- package/packages/config-eslint/node_modules/.bin/esbuild +3 -3
- package/packages/config-eslint/node_modules/.bin/eslint +5 -1
- package/packages/config-eslint/node_modules/.bin/eslint-config-prettier +5 -1
- package/packages/config-eslint/node_modules/.bin/jiti +9 -5
- package/packages/config-eslint/node_modules/.bin/prettier +9 -5
- package/packages/config-eslint/node_modules/.bin/tailwind +21 -0
- package/packages/config-eslint/node_modules/.bin/tailwindcss +21 -0
- package/packages/config-eslint/node_modules/.bin/tsc +5 -1
- package/packages/config-eslint/node_modules/.bin/tsserver +5 -1
- package/packages/config-eslint/node_modules/.bin/yaml +21 -0
- package/packages/config-eslint/package.json +1 -1
- package/packages/config-hooks/node_modules/.bin/husky +5 -1
- package/packages/config-hooks/node_modules/.bin/lint-staged +5 -1
- package/packages/config-htmllint/node_modules/.bin/linthtml +5 -1
- package/packages/config-htmllint/node_modules/.bin/tsc +9 -5
- package/packages/config-htmllint/node_modules/.bin/tsserver +9 -5
- package/packages/config-markdownlint/node_modules/.bin/markdownlint +5 -1
- package/packages/config-npmlint/node_modules/.bin/lockfile-lint +5 -1
- package/packages/config-npmlint/node_modules/.bin/npmPkgJsonLint +5 -1
- package/packages/config-npmlint/node_modules/.bin/tsc +9 -5
- package/packages/config-npmlint/node_modules/.bin/tsserver +9 -5
- package/packages/config-prettier/node_modules/.bin/prettier +5 -1
- package/packages/config-stylelint/node_modules/.bin/browserslist +9 -5
- package/packages/config-stylelint/node_modules/.bin/prettier +5 -1
- package/packages/config-stylelint/node_modules/.bin/stylelint +5 -1
- package/packages/config-stylelint/node_modules/.bin/tsc +9 -5
- package/packages/config-stylelint/node_modules/.bin/tsserver +9 -5
- 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/package.json
CHANGED
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/conventional-commits-parser@6.
|
|
13
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/conventional-commits-parser@6.2.1/node_modules/conventional-commits-parser/dist/cli/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/conventional-commits-parser@6.2.1/node_modules/conventional-commits-parser/dist/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/conventional-commits-parser@6.2.1/node_modules/conventional-commits-parser/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/conventional-commits-parser@6.2.1/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
10
14
|
else
|
|
11
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/conventional-commits-parser@6.
|
|
15
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/conventional-commits-parser@6.2.1/node_modules/conventional-commits-parser/dist/cli/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/conventional-commits-parser@6.2.1/node_modules/conventional-commits-parser/dist/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/conventional-commits-parser@6.2.1/node_modules/conventional-commits-parser/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/conventional-commits-parser@6.2.1/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
16
|
fi
|
|
13
17
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/conventional-commits-parser@6.
|
|
18
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/conventional-commits-parser@6.2.1/node_modules/conventional-commits-parser/dist/cli/index.js" "$@"
|
|
15
19
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/conventional-commits-parser@6.
|
|
20
|
+
exec node "$basedir/../../../../node_modules/.pnpm/conventional-commits-parser@6.2.1/node_modules/conventional-commits-parser/dist/cli/index.js" "$@"
|
|
17
21
|
fi
|
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.
|
|
13
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
10
14
|
else
|
|
11
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.
|
|
15
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
16
|
fi
|
|
13
17
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
18
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/tsc" "$@"
|
|
15
19
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
20
|
+
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/tsc" "$@"
|
|
17
21
|
fi
|
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.
|
|
13
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
10
14
|
else
|
|
11
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.
|
|
15
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
16
|
fi
|
|
13
17
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
18
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/tsserver" "$@"
|
|
15
19
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
20
|
+
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/tsserver" "$@"
|
|
17
21
|
fi
|
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/acorn@8.
|
|
13
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/acorn@8.15.0/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
10
14
|
else
|
|
11
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/acorn@8.
|
|
15
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/acorn@8.15.0/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
16
|
fi
|
|
13
17
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/acorn@8.
|
|
18
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/bin/acorn" "$@"
|
|
15
19
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/acorn@8.
|
|
20
|
+
exec node "$basedir/../../../../node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/bin/acorn" "$@"
|
|
17
21
|
fi
|
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/browserslist@4.
|
|
13
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/browserslist@4.25.4/node_modules/browserslist/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/browserslist@4.25.4/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
10
14
|
else
|
|
11
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/browserslist@4.
|
|
15
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/browserslist@4.25.4/node_modules/browserslist/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/browserslist@4.25.4/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
16
|
fi
|
|
13
17
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/browserslist@4.
|
|
18
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/browserslist@4.25.4/node_modules/browserslist/cli.js" "$@"
|
|
15
19
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/browserslist@4.
|
|
20
|
+
exec node "$basedir/../../../../node_modules/.pnpm/browserslist@4.25.4/node_modules/browserslist/cli.js" "$@"
|
|
17
21
|
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 $?
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/jiti@
|
|
13
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/jiti@1.21.7/node_modules/jiti/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/jiti@1.21.7/node_modules/jiti/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/jiti@1.21.7/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
10
14
|
else
|
|
11
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/jiti@
|
|
15
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/jiti@1.21.7/node_modules/jiti/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/jiti@1.21.7/node_modules/jiti/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/jiti@1.21.7/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
16
|
fi
|
|
13
17
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/jiti@
|
|
18
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/jiti@1.21.7/node_modules/jiti/bin/jiti.js" "$@"
|
|
15
19
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/jiti@
|
|
20
|
+
exec node "$basedir/../../../../node_modules/.pnpm/jiti@1.21.7/node_modules/jiti/bin/jiti.js" "$@"
|
|
17
21
|
fi
|
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/prettier@3.
|
|
13
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/prettier@3.6.2/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
10
14
|
else
|
|
11
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/prettier@3.
|
|
15
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/prettier@3.6.2/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
16
|
fi
|
|
13
17
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/prettier@3.
|
|
18
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/bin/prettier.cjs" "$@"
|
|
15
19
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/prettier@3.
|
|
20
|
+
exec node "$basedir/../../../../node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/bin/prettier.cjs" "$@"
|
|
17
21
|
fi
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
10
|
+
esac
|
|
11
|
+
|
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
|
13
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules/tailwindcss/lib/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules/tailwindcss/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
14
|
+
else
|
|
15
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules/tailwindcss/lib/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules/tailwindcss/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
+
fi
|
|
17
|
+
if [ -x "$basedir/node" ]; then
|
|
18
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules/tailwindcss/lib/cli.js" "$@"
|
|
19
|
+
else
|
|
20
|
+
exec node "$basedir/../../../../node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules/tailwindcss/lib/cli.js" "$@"
|
|
21
|
+
fi
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
10
|
+
esac
|
|
11
|
+
|
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
|
13
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules/tailwindcss/lib/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules/tailwindcss/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
14
|
+
else
|
|
15
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules/tailwindcss/lib/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules/tailwindcss/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
+
fi
|
|
17
|
+
if [ -x "$basedir/node" ]; then
|
|
18
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules/tailwindcss/lib/cli.js" "$@"
|
|
19
|
+
else
|
|
20
|
+
exec node "$basedir/../../../../node_modules/.pnpm/tailwindcss@3.4.18_yaml@2.8.1/node_modules/tailwindcss/lib/cli.js" "$@"
|
|
21
|
+
fi
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
10
|
+
esac
|
|
11
|
+
|
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
|
13
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/yaml@2.8.1/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
14
|
+
else
|
|
15
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/yaml@2.8.1/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
+
fi
|
|
17
|
+
if [ -x "$basedir/node" ]; then
|
|
18
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/bin.mjs" "$@"
|
|
19
|
+
else
|
|
20
|
+
exec node "$basedir/../../../../node_modules/.pnpm/yaml@2.8.1/node_modules/yaml/bin.mjs" "$@"
|
|
21
|
+
fi
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.
|
|
13
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
10
14
|
else
|
|
11
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.
|
|
15
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
16
|
fi
|
|
13
17
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
18
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/tsc" "$@"
|
|
15
19
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
20
|
+
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/tsc" "$@"
|
|
17
21
|
fi
|
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.
|
|
13
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
10
14
|
else
|
|
11
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.
|
|
15
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
16
|
fi
|
|
13
17
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
18
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/tsserver" "$@"
|
|
15
19
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
20
|
+
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/tsserver" "$@"
|
|
17
21
|
fi
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.
|
|
13
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
10
14
|
else
|
|
11
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.
|
|
15
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
16
|
fi
|
|
13
17
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
18
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/tsc" "$@"
|
|
15
19
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
20
|
+
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/tsc" "$@"
|
|
17
21
|
fi
|
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.
|
|
13
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
10
14
|
else
|
|
11
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.
|
|
15
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
16
|
fi
|
|
13
17
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
18
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/tsserver" "$@"
|
|
15
19
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
20
|
+
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/tsserver" "$@"
|
|
17
21
|
fi
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/browserslist@4.
|
|
13
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/browserslist@4.27.0/node_modules/browserslist/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/browserslist@4.27.0/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
10
14
|
else
|
|
11
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/browserslist@4.
|
|
15
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/browserslist@4.27.0/node_modules/browserslist/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/browserslist@4.27.0/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
16
|
fi
|
|
13
17
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/browserslist@4.
|
|
18
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/browserslist@4.27.0/node_modules/browserslist/cli.js" "$@"
|
|
15
19
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/browserslist@4.
|
|
20
|
+
exec node "$basedir/../../../../node_modules/.pnpm/browserslist@4.27.0/node_modules/browserslist/cli.js" "$@"
|
|
17
21
|
fi
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.
|
|
13
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
10
14
|
else
|
|
11
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.
|
|
15
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
16
|
fi
|
|
13
17
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
18
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/tsc" "$@"
|
|
15
19
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
20
|
+
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/tsc" "$@"
|
|
17
21
|
fi
|
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.
|
|
13
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules"
|
|
10
14
|
else
|
|
11
|
-
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.
|
|
15
|
+
export NODE_PATH="/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/alexlit/Work/@alexlit/lint-kit/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
16
|
fi
|
|
13
17
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
18
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/tsserver" "$@"
|
|
15
19
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.
|
|
20
|
+
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/tsserver" "$@"
|
|
17
21
|
fi
|
|
@@ -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
|
-
};
|