@houheaven/eslint-config-helper 1.2.2 → 1.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.
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
// ==========================================================
|
|
3
3
|
// @houheaven/eslint-config-helper
|
|
4
4
|
// ----------------------------------------------------------
|
|
5
|
-
// - ./
|
|
6
|
-
// - ./
|
|
5
|
+
// - ./configs/eslint.js : eslint 定制规则
|
|
6
|
+
// - ./configs/import.js : eslint-plugin-import 定制规则
|
|
7
7
|
// ==========================================================
|
|
8
8
|
|
|
9
9
|
module.exports = {
|
|
10
10
|
extends: [
|
|
11
|
-
"./
|
|
12
|
-
"./
|
|
11
|
+
"./configs/eslint.js",
|
|
12
|
+
"./configs/import.js",
|
|
13
13
|
],
|
|
14
14
|
parserOptions: {
|
|
15
15
|
ecmaVersion: "latest",
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
// @houheaven/eslint-config-helper/format
|
|
4
4
|
// ----------------------------------------------------------
|
|
5
5
|
// 说明:代码格式化,功能非常的基础、安全
|
|
6
|
-
// - ./
|
|
7
|
-
// - ./
|
|
8
|
-
// - ./
|
|
6
|
+
// - ./configs/format-js.js : js 定制规则
|
|
7
|
+
// - ./configs/format-vue.js : vue 定制规则
|
|
8
|
+
// - ./configs/format-html.js : html 定制规则
|
|
9
9
|
// ==========================================================
|
|
10
10
|
|
|
11
11
|
module.exports = {
|
|
12
12
|
extends: [
|
|
13
|
-
"./
|
|
13
|
+
"./configs/format-js.js",
|
|
14
14
|
],
|
|
15
15
|
parserOptions: {
|
|
16
16
|
ecmaVersion: "latest",
|
|
@@ -20,8 +20,8 @@ module.exports = {
|
|
|
20
20
|
{
|
|
21
21
|
files: ["*.vue", "**/*.vue"],
|
|
22
22
|
extends: [
|
|
23
|
-
"./
|
|
24
|
-
"./
|
|
23
|
+
"./rules/vue/common-base.js",
|
|
24
|
+
"./configs/format-vue.js",
|
|
25
25
|
],
|
|
26
26
|
rules: {
|
|
27
27
|
"indent": "off",
|
|
@@ -30,7 +30,7 @@ module.exports = {
|
|
|
30
30
|
{
|
|
31
31
|
files: ["*.html", "**/*.html", "*.htm", "**/*.htm"],
|
|
32
32
|
extends: [
|
|
33
|
-
"./
|
|
33
|
+
"./configs/format-html.js",
|
|
34
34
|
],
|
|
35
35
|
rules: {
|
|
36
36
|
"eol-last": ["warn", "never"],
|
package/{html.js → lib/html.js}
RENAMED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
// ===============================================================================
|
|
3
3
|
// @houheaven/eslint-config-helper/html
|
|
4
4
|
// -------------------------------------------------------------------------------
|
|
5
|
-
// - ./
|
|
6
|
-
// - ./
|
|
5
|
+
// - ./configs/eslint-es5.j : Eslint ES5 定制规则
|
|
6
|
+
// - ./configs/html.js : @html-eslint/eslint-plugin 定制规则
|
|
7
7
|
// ===============================================================================
|
|
8
8
|
|
|
9
9
|
module.exports = {
|
|
10
10
|
extends: [
|
|
11
|
-
"./
|
|
11
|
+
"./configs/eslint-es5.js",
|
|
12
12
|
],
|
|
13
13
|
overrides: [
|
|
14
14
|
{
|
|
15
15
|
files: ["*.html", "**/*.html", "*.htm", "**/*.htm"],
|
|
16
|
-
extends: ["./
|
|
16
|
+
extends: ["./configs/html.js"],
|
|
17
17
|
rules: {
|
|
18
18
|
// 此处不可删除,解决 html 中 <script> 换行问题
|
|
19
19
|
"eol-last": ["warn", "never"],
|
package/{vue2.js → lib/vue2.js}
RENAMED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
// ===============================================================================
|
|
3
3
|
// @houheaven/eslint-config-helper/vue2
|
|
4
4
|
// -------------------------------------------------------------------------------
|
|
5
|
-
// - ./
|
|
6
|
-
// - ./
|
|
7
|
-
// - ./
|
|
8
|
-
// - ./
|
|
5
|
+
// - ./configs/eslint.js : eslint 定制规则
|
|
6
|
+
// - ./configs/import.js : eslint-plugin-import 定制规则
|
|
7
|
+
// - ./configs/vue2.js : eslint-plugin-vue 定制规则
|
|
8
|
+
// - ./rules/vuejs-accessibility : eslint-plugin-vuejs-accessibility 定制规则
|
|
9
9
|
// ===============================================================================
|
|
10
10
|
|
|
11
11
|
module.exports = {
|
|
12
12
|
extends: [
|
|
13
|
-
"./
|
|
14
|
-
"./
|
|
13
|
+
"./configs/eslint.js",
|
|
14
|
+
"./configs/import.js",
|
|
15
15
|
],
|
|
16
16
|
parserOptions: {
|
|
17
17
|
ecmaVersion: "latest",
|
|
@@ -22,8 +22,8 @@ module.exports = {
|
|
|
22
22
|
{
|
|
23
23
|
files: ["*.vue", "**/*.vue"],
|
|
24
24
|
extends: [
|
|
25
|
-
"./
|
|
26
|
-
"./
|
|
25
|
+
"./configs/vue2.js",
|
|
26
|
+
"./rules/vuejs-accessibility",
|
|
27
27
|
],
|
|
28
28
|
},
|
|
29
29
|
],
|
package/{vue3.js → lib/vue3.js}
RENAMED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
// ==========================================================
|
|
3
3
|
// @houheaven/eslint-config-helper/vue3
|
|
4
4
|
// ----------------------------------------------------------
|
|
5
|
-
// - ./
|
|
6
|
-
// - ./
|
|
7
|
-
// - ./
|
|
5
|
+
// - ./configs/eslint.js : eslint 定制规则
|
|
6
|
+
// - ./configs/import.js : eslint-plugin-import 定制规则
|
|
7
|
+
// - ./configs/vue3.js : eslint-plugin-vue 定制规则
|
|
8
8
|
// ==========================================================
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
extends: [
|
|
12
|
-
"./
|
|
13
|
-
"./
|
|
12
|
+
"./configs/eslint.js",
|
|
13
|
+
"./configs/import.js",
|
|
14
14
|
],
|
|
15
15
|
parserOptions: {
|
|
16
16
|
ecmaVersion: "latest",
|
|
@@ -21,7 +21,7 @@ module.exports = {
|
|
|
21
21
|
{
|
|
22
22
|
files: ["*.vue", "**/*.vue"],
|
|
23
23
|
extends: [
|
|
24
|
-
"./
|
|
24
|
+
"./configs/vue3.js",
|
|
25
25
|
],
|
|
26
26
|
},
|
|
27
27
|
],
|
package/package.json
CHANGED
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@houheaven/eslint-config-helper",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Eslint 规则助手",
|
|
5
5
|
"author": "立树",
|
|
6
|
-
"main": "index.js",
|
|
7
6
|
"license": "MIT",
|
|
8
7
|
"private": false,
|
|
9
8
|
"keywords": [
|
|
10
9
|
"houheaven",
|
|
11
10
|
"eslint"
|
|
12
11
|
],
|
|
12
|
+
"main": "lib/eslint.js",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": "./lib/eslint.js",
|
|
15
|
+
"./format": "./lib/format.js",
|
|
16
|
+
"./html": "./lib/html.js",
|
|
17
|
+
"./vue2": "./lib/vue2.js",
|
|
18
|
+
"./vue3": "./lib/vue3.js"
|
|
19
|
+
},
|
|
13
20
|
"repository": {
|
|
14
21
|
"type": "git",
|
|
15
22
|
"url": "https://gitee.com/houheaven/eslint-config-helper.git"
|