From 162aa16f22916f6bcd77a5f07f355e68848a474e Mon Sep 17 00:00:00 2001 From: ykforerlang <1527997464@qq.com> Date: Fri, 24 May 2019 11:15:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(eslint-plugin-alita):=20=E4=BF=AE=E6=AD=A3e?= =?UTF-8?q?slint=20plugin=E5=90=8D=E4=B8=BAalita?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../README.md | 18 +++++++++--------- .../docs/rules/component-static-path.md | 0 .../docs/rules/no-as-in-rncomponent.md | 0 .../docs/rules/no-direct-children.md | 0 .../docs/rules/no-direct-xxcomponent.md | 0 .../docs/rules/no-global.md | 0 .../docs/rules/no-h.md | 0 .../docs/rules/no-jsxelement-inhoc.md | 0 .../no-jsxspreadattribute-basecomponent.md | 0 .../docs/rules/no-member-jsxelement.md | 0 .../docs/rules/no-rn-animated.md | 0 .../docs/rules/no-webview.md | 0 .../docs/rules/not-support-api.md | 0 .../docs/rules/not-support-component.md | 0 .../docs/rules/not-support-jsxattributes.md | 0 .../docs/rules/one-file-one-component.md | 0 .../docs/rules/wx-hoc.md | 0 .../lib/index.js | 6 +++--- .../lib/rules/component-static-path.js | 0 .../lib/rules/no-as-in-rncomponent.js | 0 .../lib/rules/no-direct-children.js | 0 .../lib/rules/no-direct-xxcomponent.js | 0 .../lib/rules/no-global.js | 0 .../lib/rules/no-h.js | 0 .../lib/rules/no-jsxelement-inhoc.js | 0 .../no-jsxspreadattribute-basecomponent.js | 0 .../lib/rules/no-member-jsxelement.js | 0 .../lib/rules/no-rn-animated.js | 0 .../lib/rules/no-webview.js | 0 .../lib/rules/not-support-api.js | 0 .../lib/rules/not-support-component.js | 0 .../lib/rules/not-support-jsxattributes.js | 0 .../lib/rules/one-file-one-component.js | 0 .../lib/rules/wx-hoc.js | 0 .../lib/util/index.js | 0 .../package.json | 6 +++--- .../tests/lib/rules/component-static-path.js | 0 .../tests/lib/rules/no-as-in-rncomponent.js | 0 .../tests/lib/rules/no-direct-children.js | 0 .../tests/lib/rules/no-direct-xxcomponent.js | 0 .../tests/lib/rules/no-global.js | 0 .../tests/lib/rules/no-h.js | 0 .../tests/lib/rules/no-jsxelement-inhoc.js | 0 .../no-jsxspreadattribute-basecomponent.js | 0 .../tests/lib/rules/no-member-jsxelement.js | 0 .../tests/lib/rules/no-rn-animated.js | 0 .../tests/lib/rules/no-webview.js | 0 .../tests/lib/rules/not-support-api.js | 0 .../tests/lib/rules/not-support-component.js | 0 .../lib/rules/not-support-jsxattributes.js | 0 .../tests/lib/rules/one-file-one-component.js | 0 .../tests/lib/rules/wx-hoc.js | 0 52 files changed, 15 insertions(+), 15 deletions(-) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/README.md (84%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/docs/rules/component-static-path.md (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/docs/rules/no-as-in-rncomponent.md (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/docs/rules/no-direct-children.md (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/docs/rules/no-direct-xxcomponent.md (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/docs/rules/no-global.md (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/docs/rules/no-h.md (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/docs/rules/no-jsxelement-inhoc.md (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/docs/rules/no-jsxspreadattribute-basecomponent.md (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/docs/rules/no-member-jsxelement.md (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/docs/rules/no-rn-animated.md (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/docs/rules/no-webview.md (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/docs/rules/not-support-api.md (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/docs/rules/not-support-component.md (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/docs/rules/not-support-jsxattributes.md (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/docs/rules/one-file-one-component.md (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/docs/rules/wx-hoc.md (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/lib/index.js (96%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/lib/rules/component-static-path.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/lib/rules/no-as-in-rncomponent.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/lib/rules/no-direct-children.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/lib/rules/no-direct-xxcomponent.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/lib/rules/no-global.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/lib/rules/no-h.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/lib/rules/no-jsxelement-inhoc.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/lib/rules/no-jsxspreadattribute-basecomponent.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/lib/rules/no-member-jsxelement.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/lib/rules/no-rn-animated.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/lib/rules/no-webview.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/lib/rules/not-support-api.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/lib/rules/not-support-component.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/lib/rules/not-support-jsxattributes.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/lib/rules/one-file-one-component.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/lib/rules/wx-hoc.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/lib/util/index.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/package.json (81%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/tests/lib/rules/component-static-path.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/tests/lib/rules/no-as-in-rncomponent.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/tests/lib/rules/no-direct-children.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/tests/lib/rules/no-direct-xxcomponent.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/tests/lib/rules/no-global.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/tests/lib/rules/no-h.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/tests/lib/rules/no-jsxelement-inhoc.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/tests/lib/rules/no-jsxspreadattribute-basecomponent.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/tests/lib/rules/no-member-jsxelement.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/tests/lib/rules/no-rn-animated.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/tests/lib/rules/no-webview.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/tests/lib/rules/not-support-api.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/tests/lib/rules/not-support-component.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/tests/lib/rules/not-support-jsxattributes.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/tests/lib/rules/one-file-one-component.js (100%) rename packages/{eslint-plugin-rntomp => eslint-plugin-alita}/tests/lib/rules/wx-hoc.js (100%) diff --git a/packages/eslint-plugin-rntomp/README.md b/packages/eslint-plugin-alita/README.md similarity index 84% rename from packages/eslint-plugin-rntomp/README.md rename to packages/eslint-plugin-alita/README.md index 856d531..2a60c86 100644 --- a/packages/eslint-plugin-rntomp/README.md +++ b/packages/eslint-plugin-alita/README.md @@ -1,4 +1,4 @@ -# @areslabs/eslint-plugin-rntomp +# @areslabs/eslint-plugin-alita React Native 转化为小程序的rules @@ -10,34 +10,34 @@ React Native 转化为小程序的rules $ npm i eslint --save-dev ``` -Next, 安装 `@areslabs/eslint-plugin-rntomp`: +Next, 安装 `@areslabs/eslint-plugin-alita`: ``` -$ npm install @areslabs/eslint-plugin-rntomp --save-dev +$ npm install @areslabs/eslint-plugin-alita --save-dev ``` -**注意:** 如果eslint是全局安装的(使用`-g`),那么`@areslabs/eslint-plugin-rntomp` 也需要全局安装 +**注意:** 如果eslint是全局安装的(使用`-g`),那么`@areslabs/eslint-plugin-alita` 也需要全局安装 ## 使用 -最简单的使用方式, 在你的.eslint.js配置文件 添加`@areslabs/eslint-plugin-rntomp` +最简单的使用方式, 在你的.eslint.js配置文件 添加`@areslabs/eslint-plugin-alita` ```javascript module.exports = { ... extends: [ ... - "plugin:@areslabs/rntomp/all" + "plugin:@areslabs/alita/all" ] }; ``` all配置里面, 包含了所以rntomp rules ### 单独rules使用 -1. 添加 `@areslabs/rntomp` 到`.eslintrc`配置文件的 plugins +1. 添加 `@areslabs/alita` 到`.eslintrc`配置文件的 plugins ```json { "plugins": [ - "@areslabs/rntomp" + "@areslabs/alita" ] } ``` @@ -47,7 +47,7 @@ all配置里面, 包含了所以rntomp rules ```json { "rules": { - "@areslabs/rntomp/no-h": 2 + "@areslabs/alita/no-h": 2 } } ``` diff --git a/packages/eslint-plugin-rntomp/docs/rules/component-static-path.md b/packages/eslint-plugin-alita/docs/rules/component-static-path.md similarity index 100% rename from packages/eslint-plugin-rntomp/docs/rules/component-static-path.md rename to packages/eslint-plugin-alita/docs/rules/component-static-path.md diff --git a/packages/eslint-plugin-rntomp/docs/rules/no-as-in-rncomponent.md b/packages/eslint-plugin-alita/docs/rules/no-as-in-rncomponent.md similarity index 100% rename from packages/eslint-plugin-rntomp/docs/rules/no-as-in-rncomponent.md rename to packages/eslint-plugin-alita/docs/rules/no-as-in-rncomponent.md diff --git a/packages/eslint-plugin-rntomp/docs/rules/no-direct-children.md b/packages/eslint-plugin-alita/docs/rules/no-direct-children.md similarity index 100% rename from packages/eslint-plugin-rntomp/docs/rules/no-direct-children.md rename to packages/eslint-plugin-alita/docs/rules/no-direct-children.md diff --git a/packages/eslint-plugin-rntomp/docs/rules/no-direct-xxcomponent.md b/packages/eslint-plugin-alita/docs/rules/no-direct-xxcomponent.md similarity index 100% rename from packages/eslint-plugin-rntomp/docs/rules/no-direct-xxcomponent.md rename to packages/eslint-plugin-alita/docs/rules/no-direct-xxcomponent.md diff --git a/packages/eslint-plugin-rntomp/docs/rules/no-global.md b/packages/eslint-plugin-alita/docs/rules/no-global.md similarity index 100% rename from packages/eslint-plugin-rntomp/docs/rules/no-global.md rename to packages/eslint-plugin-alita/docs/rules/no-global.md diff --git a/packages/eslint-plugin-rntomp/docs/rules/no-h.md b/packages/eslint-plugin-alita/docs/rules/no-h.md similarity index 100% rename from packages/eslint-plugin-rntomp/docs/rules/no-h.md rename to packages/eslint-plugin-alita/docs/rules/no-h.md diff --git a/packages/eslint-plugin-rntomp/docs/rules/no-jsxelement-inhoc.md b/packages/eslint-plugin-alita/docs/rules/no-jsxelement-inhoc.md similarity index 100% rename from packages/eslint-plugin-rntomp/docs/rules/no-jsxelement-inhoc.md rename to packages/eslint-plugin-alita/docs/rules/no-jsxelement-inhoc.md diff --git a/packages/eslint-plugin-rntomp/docs/rules/no-jsxspreadattribute-basecomponent.md b/packages/eslint-plugin-alita/docs/rules/no-jsxspreadattribute-basecomponent.md similarity index 100% rename from packages/eslint-plugin-rntomp/docs/rules/no-jsxspreadattribute-basecomponent.md rename to packages/eslint-plugin-alita/docs/rules/no-jsxspreadattribute-basecomponent.md diff --git a/packages/eslint-plugin-rntomp/docs/rules/no-member-jsxelement.md b/packages/eslint-plugin-alita/docs/rules/no-member-jsxelement.md similarity index 100% rename from packages/eslint-plugin-rntomp/docs/rules/no-member-jsxelement.md rename to packages/eslint-plugin-alita/docs/rules/no-member-jsxelement.md diff --git a/packages/eslint-plugin-rntomp/docs/rules/no-rn-animated.md b/packages/eslint-plugin-alita/docs/rules/no-rn-animated.md similarity index 100% rename from packages/eslint-plugin-rntomp/docs/rules/no-rn-animated.md rename to packages/eslint-plugin-alita/docs/rules/no-rn-animated.md diff --git a/packages/eslint-plugin-rntomp/docs/rules/no-webview.md b/packages/eslint-plugin-alita/docs/rules/no-webview.md similarity index 100% rename from packages/eslint-plugin-rntomp/docs/rules/no-webview.md rename to packages/eslint-plugin-alita/docs/rules/no-webview.md diff --git a/packages/eslint-plugin-rntomp/docs/rules/not-support-api.md b/packages/eslint-plugin-alita/docs/rules/not-support-api.md similarity index 100% rename from packages/eslint-plugin-rntomp/docs/rules/not-support-api.md rename to packages/eslint-plugin-alita/docs/rules/not-support-api.md diff --git a/packages/eslint-plugin-rntomp/docs/rules/not-support-component.md b/packages/eslint-plugin-alita/docs/rules/not-support-component.md similarity index 100% rename from packages/eslint-plugin-rntomp/docs/rules/not-support-component.md rename to packages/eslint-plugin-alita/docs/rules/not-support-component.md diff --git a/packages/eslint-plugin-rntomp/docs/rules/not-support-jsxattributes.md b/packages/eslint-plugin-alita/docs/rules/not-support-jsxattributes.md similarity index 100% rename from packages/eslint-plugin-rntomp/docs/rules/not-support-jsxattributes.md rename to packages/eslint-plugin-alita/docs/rules/not-support-jsxattributes.md diff --git a/packages/eslint-plugin-rntomp/docs/rules/one-file-one-component.md b/packages/eslint-plugin-alita/docs/rules/one-file-one-component.md similarity index 100% rename from packages/eslint-plugin-rntomp/docs/rules/one-file-one-component.md rename to packages/eslint-plugin-alita/docs/rules/one-file-one-component.md diff --git a/packages/eslint-plugin-rntomp/docs/rules/wx-hoc.md b/packages/eslint-plugin-alita/docs/rules/wx-hoc.md similarity index 100% rename from packages/eslint-plugin-rntomp/docs/rules/wx-hoc.md rename to packages/eslint-plugin-alita/docs/rules/wx-hoc.md diff --git a/packages/eslint-plugin-rntomp/lib/index.js b/packages/eslint-plugin-alita/lib/index.js similarity index 96% rename from packages/eslint-plugin-rntomp/lib/index.js rename to packages/eslint-plugin-alita/lib/index.js index acf3d81..cd8eeef 100644 --- a/packages/eslint-plugin-rntomp/lib/index.js +++ b/packages/eslint-plugin-alita/lib/index.js @@ -25,7 +25,7 @@ module.exports = { all: { ...config, plugins: [ - '@areslabs/rntomp' + '@areslabs/alita' ], rules: { "no-undef": 2, @@ -35,7 +35,7 @@ module.exports = { "no-extend-native": 2, "no-global-assign": 2, - // rntomp rules + // alita rules ...(getRules([ 'component-static-path', 'no-as-in-rncomponent', @@ -63,7 +63,7 @@ module.exports = { function getRules(rules, level) { const r = {} rules.forEach(rule => { - r[`@areslabs/rntomp/${rule}`] = level + r[`@areslabs/alita/${rule}`] = level }) return r } diff --git a/packages/eslint-plugin-rntomp/lib/rules/component-static-path.js b/packages/eslint-plugin-alita/lib/rules/component-static-path.js similarity index 100% rename from packages/eslint-plugin-rntomp/lib/rules/component-static-path.js rename to packages/eslint-plugin-alita/lib/rules/component-static-path.js diff --git a/packages/eslint-plugin-rntomp/lib/rules/no-as-in-rncomponent.js b/packages/eslint-plugin-alita/lib/rules/no-as-in-rncomponent.js similarity index 100% rename from packages/eslint-plugin-rntomp/lib/rules/no-as-in-rncomponent.js rename to packages/eslint-plugin-alita/lib/rules/no-as-in-rncomponent.js diff --git a/packages/eslint-plugin-rntomp/lib/rules/no-direct-children.js b/packages/eslint-plugin-alita/lib/rules/no-direct-children.js similarity index 100% rename from packages/eslint-plugin-rntomp/lib/rules/no-direct-children.js rename to packages/eslint-plugin-alita/lib/rules/no-direct-children.js diff --git a/packages/eslint-plugin-rntomp/lib/rules/no-direct-xxcomponent.js b/packages/eslint-plugin-alita/lib/rules/no-direct-xxcomponent.js similarity index 100% rename from packages/eslint-plugin-rntomp/lib/rules/no-direct-xxcomponent.js rename to packages/eslint-plugin-alita/lib/rules/no-direct-xxcomponent.js diff --git a/packages/eslint-plugin-rntomp/lib/rules/no-global.js b/packages/eslint-plugin-alita/lib/rules/no-global.js similarity index 100% rename from packages/eslint-plugin-rntomp/lib/rules/no-global.js rename to packages/eslint-plugin-alita/lib/rules/no-global.js diff --git a/packages/eslint-plugin-rntomp/lib/rules/no-h.js b/packages/eslint-plugin-alita/lib/rules/no-h.js similarity index 100% rename from packages/eslint-plugin-rntomp/lib/rules/no-h.js rename to packages/eslint-plugin-alita/lib/rules/no-h.js diff --git a/packages/eslint-plugin-rntomp/lib/rules/no-jsxelement-inhoc.js b/packages/eslint-plugin-alita/lib/rules/no-jsxelement-inhoc.js similarity index 100% rename from packages/eslint-plugin-rntomp/lib/rules/no-jsxelement-inhoc.js rename to packages/eslint-plugin-alita/lib/rules/no-jsxelement-inhoc.js diff --git a/packages/eslint-plugin-rntomp/lib/rules/no-jsxspreadattribute-basecomponent.js b/packages/eslint-plugin-alita/lib/rules/no-jsxspreadattribute-basecomponent.js similarity index 100% rename from packages/eslint-plugin-rntomp/lib/rules/no-jsxspreadattribute-basecomponent.js rename to packages/eslint-plugin-alita/lib/rules/no-jsxspreadattribute-basecomponent.js diff --git a/packages/eslint-plugin-rntomp/lib/rules/no-member-jsxelement.js b/packages/eslint-plugin-alita/lib/rules/no-member-jsxelement.js similarity index 100% rename from packages/eslint-plugin-rntomp/lib/rules/no-member-jsxelement.js rename to packages/eslint-plugin-alita/lib/rules/no-member-jsxelement.js diff --git a/packages/eslint-plugin-rntomp/lib/rules/no-rn-animated.js b/packages/eslint-plugin-alita/lib/rules/no-rn-animated.js similarity index 100% rename from packages/eslint-plugin-rntomp/lib/rules/no-rn-animated.js rename to packages/eslint-plugin-alita/lib/rules/no-rn-animated.js diff --git a/packages/eslint-plugin-rntomp/lib/rules/no-webview.js b/packages/eslint-plugin-alita/lib/rules/no-webview.js similarity index 100% rename from packages/eslint-plugin-rntomp/lib/rules/no-webview.js rename to packages/eslint-plugin-alita/lib/rules/no-webview.js diff --git a/packages/eslint-plugin-rntomp/lib/rules/not-support-api.js b/packages/eslint-plugin-alita/lib/rules/not-support-api.js similarity index 100% rename from packages/eslint-plugin-rntomp/lib/rules/not-support-api.js rename to packages/eslint-plugin-alita/lib/rules/not-support-api.js diff --git a/packages/eslint-plugin-rntomp/lib/rules/not-support-component.js b/packages/eslint-plugin-alita/lib/rules/not-support-component.js similarity index 100% rename from packages/eslint-plugin-rntomp/lib/rules/not-support-component.js rename to packages/eslint-plugin-alita/lib/rules/not-support-component.js diff --git a/packages/eslint-plugin-rntomp/lib/rules/not-support-jsxattributes.js b/packages/eslint-plugin-alita/lib/rules/not-support-jsxattributes.js similarity index 100% rename from packages/eslint-plugin-rntomp/lib/rules/not-support-jsxattributes.js rename to packages/eslint-plugin-alita/lib/rules/not-support-jsxattributes.js diff --git a/packages/eslint-plugin-rntomp/lib/rules/one-file-one-component.js b/packages/eslint-plugin-alita/lib/rules/one-file-one-component.js similarity index 100% rename from packages/eslint-plugin-rntomp/lib/rules/one-file-one-component.js rename to packages/eslint-plugin-alita/lib/rules/one-file-one-component.js diff --git a/packages/eslint-plugin-rntomp/lib/rules/wx-hoc.js b/packages/eslint-plugin-alita/lib/rules/wx-hoc.js similarity index 100% rename from packages/eslint-plugin-rntomp/lib/rules/wx-hoc.js rename to packages/eslint-plugin-alita/lib/rules/wx-hoc.js diff --git a/packages/eslint-plugin-rntomp/lib/util/index.js b/packages/eslint-plugin-alita/lib/util/index.js similarity index 100% rename from packages/eslint-plugin-rntomp/lib/util/index.js rename to packages/eslint-plugin-alita/lib/util/index.js diff --git a/packages/eslint-plugin-rntomp/package.json b/packages/eslint-plugin-alita/package.json similarity index 81% rename from packages/eslint-plugin-rntomp/package.json rename to packages/eslint-plugin-alita/package.json index 0328f62..f407316 100644 --- a/packages/eslint-plugin-rntomp/package.json +++ b/packages/eslint-plugin-alita/package.json @@ -1,7 +1,7 @@ { - "name": "@areslabs/eslint-plugin-rntomp", - "version": "1.0.2", - "description": "rules for React Native ===> miniprogram", + "name": "@areslabs/eslint-plugin-alita", + "version": "1.0.0", + "description": "rules for alita", "files": [ "lib", "package.json", diff --git a/packages/eslint-plugin-rntomp/tests/lib/rules/component-static-path.js b/packages/eslint-plugin-alita/tests/lib/rules/component-static-path.js similarity index 100% rename from packages/eslint-plugin-rntomp/tests/lib/rules/component-static-path.js rename to packages/eslint-plugin-alita/tests/lib/rules/component-static-path.js diff --git a/packages/eslint-plugin-rntomp/tests/lib/rules/no-as-in-rncomponent.js b/packages/eslint-plugin-alita/tests/lib/rules/no-as-in-rncomponent.js similarity index 100% rename from packages/eslint-plugin-rntomp/tests/lib/rules/no-as-in-rncomponent.js rename to packages/eslint-plugin-alita/tests/lib/rules/no-as-in-rncomponent.js diff --git a/packages/eslint-plugin-rntomp/tests/lib/rules/no-direct-children.js b/packages/eslint-plugin-alita/tests/lib/rules/no-direct-children.js similarity index 100% rename from packages/eslint-plugin-rntomp/tests/lib/rules/no-direct-children.js rename to packages/eslint-plugin-alita/tests/lib/rules/no-direct-children.js diff --git a/packages/eslint-plugin-rntomp/tests/lib/rules/no-direct-xxcomponent.js b/packages/eslint-plugin-alita/tests/lib/rules/no-direct-xxcomponent.js similarity index 100% rename from packages/eslint-plugin-rntomp/tests/lib/rules/no-direct-xxcomponent.js rename to packages/eslint-plugin-alita/tests/lib/rules/no-direct-xxcomponent.js diff --git a/packages/eslint-plugin-rntomp/tests/lib/rules/no-global.js b/packages/eslint-plugin-alita/tests/lib/rules/no-global.js similarity index 100% rename from packages/eslint-plugin-rntomp/tests/lib/rules/no-global.js rename to packages/eslint-plugin-alita/tests/lib/rules/no-global.js diff --git a/packages/eslint-plugin-rntomp/tests/lib/rules/no-h.js b/packages/eslint-plugin-alita/tests/lib/rules/no-h.js similarity index 100% rename from packages/eslint-plugin-rntomp/tests/lib/rules/no-h.js rename to packages/eslint-plugin-alita/tests/lib/rules/no-h.js diff --git a/packages/eslint-plugin-rntomp/tests/lib/rules/no-jsxelement-inhoc.js b/packages/eslint-plugin-alita/tests/lib/rules/no-jsxelement-inhoc.js similarity index 100% rename from packages/eslint-plugin-rntomp/tests/lib/rules/no-jsxelement-inhoc.js rename to packages/eslint-plugin-alita/tests/lib/rules/no-jsxelement-inhoc.js diff --git a/packages/eslint-plugin-rntomp/tests/lib/rules/no-jsxspreadattribute-basecomponent.js b/packages/eslint-plugin-alita/tests/lib/rules/no-jsxspreadattribute-basecomponent.js similarity index 100% rename from packages/eslint-plugin-rntomp/tests/lib/rules/no-jsxspreadattribute-basecomponent.js rename to packages/eslint-plugin-alita/tests/lib/rules/no-jsxspreadattribute-basecomponent.js diff --git a/packages/eslint-plugin-rntomp/tests/lib/rules/no-member-jsxelement.js b/packages/eslint-plugin-alita/tests/lib/rules/no-member-jsxelement.js similarity index 100% rename from packages/eslint-plugin-rntomp/tests/lib/rules/no-member-jsxelement.js rename to packages/eslint-plugin-alita/tests/lib/rules/no-member-jsxelement.js diff --git a/packages/eslint-plugin-rntomp/tests/lib/rules/no-rn-animated.js b/packages/eslint-plugin-alita/tests/lib/rules/no-rn-animated.js similarity index 100% rename from packages/eslint-plugin-rntomp/tests/lib/rules/no-rn-animated.js rename to packages/eslint-plugin-alita/tests/lib/rules/no-rn-animated.js diff --git a/packages/eslint-plugin-rntomp/tests/lib/rules/no-webview.js b/packages/eslint-plugin-alita/tests/lib/rules/no-webview.js similarity index 100% rename from packages/eslint-plugin-rntomp/tests/lib/rules/no-webview.js rename to packages/eslint-plugin-alita/tests/lib/rules/no-webview.js diff --git a/packages/eslint-plugin-rntomp/tests/lib/rules/not-support-api.js b/packages/eslint-plugin-alita/tests/lib/rules/not-support-api.js similarity index 100% rename from packages/eslint-plugin-rntomp/tests/lib/rules/not-support-api.js rename to packages/eslint-plugin-alita/tests/lib/rules/not-support-api.js diff --git a/packages/eslint-plugin-rntomp/tests/lib/rules/not-support-component.js b/packages/eslint-plugin-alita/tests/lib/rules/not-support-component.js similarity index 100% rename from packages/eslint-plugin-rntomp/tests/lib/rules/not-support-component.js rename to packages/eslint-plugin-alita/tests/lib/rules/not-support-component.js diff --git a/packages/eslint-plugin-rntomp/tests/lib/rules/not-support-jsxattributes.js b/packages/eslint-plugin-alita/tests/lib/rules/not-support-jsxattributes.js similarity index 100% rename from packages/eslint-plugin-rntomp/tests/lib/rules/not-support-jsxattributes.js rename to packages/eslint-plugin-alita/tests/lib/rules/not-support-jsxattributes.js diff --git a/packages/eslint-plugin-rntomp/tests/lib/rules/one-file-one-component.js b/packages/eslint-plugin-alita/tests/lib/rules/one-file-one-component.js similarity index 100% rename from packages/eslint-plugin-rntomp/tests/lib/rules/one-file-one-component.js rename to packages/eslint-plugin-alita/tests/lib/rules/one-file-one-component.js diff --git a/packages/eslint-plugin-rntomp/tests/lib/rules/wx-hoc.js b/packages/eslint-plugin-alita/tests/lib/rules/wx-hoc.js similarity index 100% rename from packages/eslint-plugin-rntomp/tests/lib/rules/wx-hoc.js rename to packages/eslint-plugin-alita/tests/lib/rules/wx-hoc.js