@nkzw/eslint-plugin-fbtee 0.1.1 → 0.1.2
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/lib/index.cjs
CHANGED
|
@@ -29,7 +29,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
29
29
|
// package.json
|
|
30
30
|
var package_default = {
|
|
31
31
|
name: "@nkzw/eslint-plugin-fbtee",
|
|
32
|
-
version: "0.1.
|
|
32
|
+
version: "0.1.2",
|
|
33
33
|
description: "",
|
|
34
34
|
keywords: [],
|
|
35
35
|
repository: {
|
|
@@ -129,7 +129,7 @@ var no_empty_strings_default = createRule({
|
|
|
129
129
|
create(context) {
|
|
130
130
|
return {
|
|
131
131
|
CallExpression(node) {
|
|
132
|
-
if (node.callee.type
|
|
132
|
+
if (node.callee.type !== "Identifier" || !(node.callee.name === "fbt" || node.callee.name === "fbs")) {
|
|
133
133
|
return;
|
|
134
134
|
}
|
|
135
135
|
const [text] = node.arguments;
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@nkzw/eslint-plugin-fbtee",
|
|
4
|
-
version: "0.1.
|
|
4
|
+
version: "0.1.2",
|
|
5
5
|
description: "",
|
|
6
6
|
keywords: [],
|
|
7
7
|
repository: {
|
|
@@ -101,7 +101,7 @@ var no_empty_strings_default = createRule({
|
|
|
101
101
|
create(context) {
|
|
102
102
|
return {
|
|
103
103
|
CallExpression(node) {
|
|
104
|
-
if (node.callee.type
|
|
104
|
+
if (node.callee.type !== "Identifier" || !(node.callee.name === "fbt" || node.callee.name === "fbs")) {
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
107
|
const [text] = node.arguments;
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ export default createRule<[], 'emptyString' | 'jsxEmptyString'>({
|
|
|
6
6
|
return {
|
|
7
7
|
CallExpression(node) {
|
|
8
8
|
if (
|
|
9
|
-
node.callee.type
|
|
9
|
+
node.callee.type !== 'Identifier' ||
|
|
10
10
|
!(node.callee.name === 'fbt' || node.callee.name === 'fbs')
|
|
11
11
|
) {
|
|
12
12
|
return;
|