hkx-eslint-config 2.0.2 → 2.0.3
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/dist/config/node-js.d.ts +4 -0
- package/dist/config/node-js.js +14 -0
- package/dist/config/node-ts.d.ts +4 -0
- package/dist/config/node-ts.js +19 -0
- package/dist/config/react-js.d.ts +4 -0
- package/dist/config/react-js.js +17 -0
- package/dist/config/react-ts.d.ts +4 -0
- package/dist/config/react-ts.js +19 -0
- package/dist/config/standard-js.d.ts +4 -0
- package/dist/config/standard-js.js +11 -0
- package/dist/config/standard-ts.d.ts +4 -0
- package/dist/config/standard-ts.js +16 -0
- package/dist/config/vue-js.d.ts +4 -0
- package/dist/config/vue-js.js +34 -0
- package/dist/config/vue-ts.d.ts +4 -0
- package/dist/config/vue-ts.js +44 -0
- package/dist/import.js +665 -0
- package/dist/node.js +57 -0
- package/dist/react.js +81 -0
- package/dist/recommended-typescript.js +189 -0
- package/dist/rules/node.d.ts +98 -0
- package/dist/rules/node.js +3 -0
- package/dist/rules/react.d.ts +63 -0
- package/dist/rules/react.js +3 -0
- package/dist/rules/recommended-javascript.d.ts +554 -0
- package/dist/rules/recommended-javascript.js +30 -0
- package/dist/rules/recommended-typescript.d.ts +663 -0
- package/dist/rules/recommended-typescript.js +4 -0
- package/dist/rules/vue.d.ts +145 -0
- package/dist/rules/vue.js +3 -0
- package/dist/vue.js +59 -0
- package/package.json +2 -3
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -1244
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "../import.js";
|
|
2
|
+
import config$1 from "../rules/recommended-javascript.js";
|
|
3
|
+
import { t as config$2 } from "../node.js";
|
|
4
|
+
import globals from "globals";
|
|
5
|
+
|
|
6
|
+
//#region config/node-js.ts
|
|
7
|
+
const config = [{
|
|
8
|
+
files: ["**/*.js"],
|
|
9
|
+
extends: [config$1, config$2],
|
|
10
|
+
languageOptions: { globals: { ...globals.node } }
|
|
11
|
+
}];
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { config as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "../import.js";
|
|
2
|
+
import { t as config$1 } from "../node.js";
|
|
3
|
+
import { t as config$2 } from "../recommended-typescript.js";
|
|
4
|
+
import globals from "globals";
|
|
5
|
+
import tseslint from "typescript-eslint";
|
|
6
|
+
|
|
7
|
+
//#region config/node-ts.ts
|
|
8
|
+
const config = [{
|
|
9
|
+
files: ["**/*.ts"],
|
|
10
|
+
extends: [config$2, config$1],
|
|
11
|
+
languageOptions: {
|
|
12
|
+
parser: tseslint.parser,
|
|
13
|
+
parserOptions: { projectService: true },
|
|
14
|
+
globals: { ...globals.node }
|
|
15
|
+
}
|
|
16
|
+
}];
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { config as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "../import.js";
|
|
2
|
+
import config$1 from "../rules/recommended-javascript.js";
|
|
3
|
+
import { t as config$2 } from "../react.js";
|
|
4
|
+
import globals from "globals";
|
|
5
|
+
|
|
6
|
+
//#region config/react-js.ts
|
|
7
|
+
const config = [{
|
|
8
|
+
files: ["**/*.js", "**/*.jsx"],
|
|
9
|
+
extends: [config$1, config$2],
|
|
10
|
+
languageOptions: {
|
|
11
|
+
parserOptions: { ecmaFeatures: { jsx: true } },
|
|
12
|
+
globals: { ...globals.browser }
|
|
13
|
+
}
|
|
14
|
+
}];
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { config as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "../import.js";
|
|
2
|
+
import { t as config$1 } from "../recommended-typescript.js";
|
|
3
|
+
import { t as config$2 } from "../react.js";
|
|
4
|
+
import globals from "globals";
|
|
5
|
+
import tseslint from "typescript-eslint";
|
|
6
|
+
|
|
7
|
+
//#region config/react-ts.ts
|
|
8
|
+
const config = [{
|
|
9
|
+
files: ["**/*.ts", "**/*.tsx"],
|
|
10
|
+
extends: [config$1, config$2],
|
|
11
|
+
languageOptions: {
|
|
12
|
+
parser: tseslint.parser,
|
|
13
|
+
parserOptions: { projectService: true },
|
|
14
|
+
globals: { ...globals.browser }
|
|
15
|
+
}
|
|
16
|
+
}];
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { config as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../import.js";
|
|
2
|
+
import { t as config$1 } from "../recommended-typescript.js";
|
|
3
|
+
import tseslint from "typescript-eslint";
|
|
4
|
+
|
|
5
|
+
//#region config/standard-ts.ts
|
|
6
|
+
const config = [{
|
|
7
|
+
files: ["**/*.ts"],
|
|
8
|
+
extends: [config$1],
|
|
9
|
+
languageOptions: {
|
|
10
|
+
parser: tseslint.parser,
|
|
11
|
+
parserOptions: { projectService: true }
|
|
12
|
+
}
|
|
13
|
+
}];
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { config as default };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import "../import.js";
|
|
2
|
+
import config$1 from "../rules/recommended-javascript.js";
|
|
3
|
+
import { t as config$2 } from "../vue.js";
|
|
4
|
+
import globals from "globals";
|
|
5
|
+
import pluginVue from "eslint-plugin-vue";
|
|
6
|
+
import vueParser from "vue-eslint-parser";
|
|
7
|
+
|
|
8
|
+
//#region config/vue-js.ts
|
|
9
|
+
const config = [{
|
|
10
|
+
files: ["**/*.js", "**/*.jsx"],
|
|
11
|
+
extends: [config$1],
|
|
12
|
+
languageOptions: {
|
|
13
|
+
parserOptions: { ecmaFeatures: { jsx: true } },
|
|
14
|
+
globals: { ...globals.browser }
|
|
15
|
+
}
|
|
16
|
+
}, {
|
|
17
|
+
files: ["**/*.vue"],
|
|
18
|
+
extends: [config$1, config$2],
|
|
19
|
+
plugins: { get vue() {
|
|
20
|
+
return pluginVue;
|
|
21
|
+
} },
|
|
22
|
+
languageOptions: {
|
|
23
|
+
parser: vueParser,
|
|
24
|
+
parserOptions: {
|
|
25
|
+
extraFileExtensions: [".vue", ".jsx"],
|
|
26
|
+
ecmaFeatures: { jsx: true }
|
|
27
|
+
},
|
|
28
|
+
globals: { ...globals.browser }
|
|
29
|
+
},
|
|
30
|
+
processor: "vue/vue"
|
|
31
|
+
}];
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { config as default };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import "../import.js";
|
|
2
|
+
import { t as config$1 } from "../recommended-typescript.js";
|
|
3
|
+
import { t as config$2 } from "../vue.js";
|
|
4
|
+
import globals from "globals";
|
|
5
|
+
import tseslint from "typescript-eslint";
|
|
6
|
+
import pluginVue from "eslint-plugin-vue";
|
|
7
|
+
import vueParser from "vue-eslint-parser";
|
|
8
|
+
|
|
9
|
+
//#region config/vue-ts.ts
|
|
10
|
+
const config = [{
|
|
11
|
+
files: ["**/*.ts", "**/*.tsx"],
|
|
12
|
+
extends: [config$1],
|
|
13
|
+
languageOptions: {
|
|
14
|
+
parser: tseslint.parser,
|
|
15
|
+
parserOptions: {
|
|
16
|
+
projectService: true,
|
|
17
|
+
ecmaFeatures: { jsx: true }
|
|
18
|
+
},
|
|
19
|
+
globals: { ...globals.browser }
|
|
20
|
+
}
|
|
21
|
+
}, {
|
|
22
|
+
files: ["**/*.vue"],
|
|
23
|
+
extends: [config$1, config$2],
|
|
24
|
+
plugins: { get vue() {
|
|
25
|
+
return pluginVue;
|
|
26
|
+
} },
|
|
27
|
+
languageOptions: {
|
|
28
|
+
parser: vueParser,
|
|
29
|
+
parserOptions: {
|
|
30
|
+
parser: tseslint.parser,
|
|
31
|
+
extraFileExtensions: [".vue", ".tsx"],
|
|
32
|
+
ecmaFeatures: { jsx: true }
|
|
33
|
+
},
|
|
34
|
+
globals: { ...globals.browser }
|
|
35
|
+
},
|
|
36
|
+
processor: "vue/vue",
|
|
37
|
+
rules: {
|
|
38
|
+
"@typescript-eslint/restrict-plus-operands": "off",
|
|
39
|
+
"@typescript-eslint/dot-notation": "off"
|
|
40
|
+
}
|
|
41
|
+
}];
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
export { config as default };
|