@dataport/eslint-config-geodev 1.1.0 → 2.0.0-alpha.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/dist/configs/browser.d.ts +1 -1
- package/dist/configs/html.d.ts +1 -1
- package/dist/configs/index.d.ts +1 -1
- package/dist/configs/index.js +2 -1
- package/dist/configs/index.js.map +1 -1
- package/dist/configs/json.d.ts +1 -1
- package/dist/configs/markdown.d.ts +1 -1
- package/dist/configs/node.d.ts +1 -1
- package/dist/configs/typescript-vue.d.ts +1 -1
- package/dist/configs/typescript.d.ts +1 -1
- package/dist/configs/vue-pug.d.ts +1 -1
- package/dist/configs/vue-pug.js +9 -4
- package/dist/configs/vue-pug.js.map +1 -1
- package/dist/configs/vue.d.ts +1 -1
- package/dist/configs/vue2.d.ts +1 -1
- package/dist/eslint.config.d.ts +2 -0
- package/dist/eslint.config.js +26 -0
- package/dist/eslint.config.js.map +1 -0
- package/dist/plugins.d.ts +12 -0
- package/dist/plugins.js +20 -0
- package/dist/plugins.js.map +1 -0
- package/package.json +12 -8
package/dist/configs/html.d.ts
CHANGED
package/dist/configs/index.d.ts
CHANGED
package/dist/configs/index.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import js from '@eslint/js';
|
|
2
2
|
import perfectionist from 'eslint-plugin-perfectionist';
|
|
3
3
|
import { defineConfig } from 'eslint/config';
|
|
4
|
-
import neostandard from 'neostandard';
|
|
4
|
+
import neostandard, { plugins } from 'neostandard';
|
|
5
5
|
/**
|
|
6
6
|
* Shared ESLint configuration for JavaScript files.
|
|
7
7
|
*/
|
|
8
8
|
export default defineConfig(js.configs.recommended, ...neostandard(), {
|
|
9
9
|
plugins: {
|
|
10
|
+
'@stylistic': plugins['@stylistic'],
|
|
10
11
|
perfectionist,
|
|
11
12
|
},
|
|
12
13
|
rules: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../configs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,aAAa,MAAM,6BAA6B,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,WAAW,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../configs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,aAAa,MAAM,6BAA6B,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAElD;;GAEG;AACH,eAAe,YAAY,CAC1B,EAAE,CAAC,OAAO,CAAC,WAAW,EACtB,GAAG,WAAW,EAAE,EAChB;IACC,OAAO,EAAE;QACR,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC;QACnC,aAAa;KACb;IACD,KAAK,EAAE;QACN,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;QACrD,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;QACvB,gBAAgB,EAAE,OAAO;QACzB,YAAY,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC;QACrE,UAAU,EAAE,MAAM;QAClB,WAAW,EAAE,MAAM;QAEnB,yBAAyB,EAAE,CAAC,OAAO,EAAE,kBAAkB,CAAC;QACxD,mBAAmB,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;QACrC,oBAAoB,EAAE,KAAK;QAE3B,4BAA4B,EAAE,OAAO;KACrC;CACD,CACD,CAAA"}
|
package/dist/configs/json.d.ts
CHANGED
package/dist/configs/node.d.ts
CHANGED
package/dist/configs/vue-pug.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import vuePugPlugin from 'eslint-plugin-vue-pug';
|
|
2
2
|
import { defineConfig } from 'eslint/config';
|
|
3
|
+
/*
|
|
4
|
+
* `eslint-plugin-vue-pug` is published as CommonJS but ships ESM style type
|
|
5
|
+
* declarations. TypeScript therefore models the default import as the module
|
|
6
|
+
* namespace object, while at runtime the default import already is the plugin
|
|
7
|
+
* itself.
|
|
8
|
+
*/
|
|
9
|
+
const vuePug = vuePugPlugin;
|
|
3
10
|
/**
|
|
4
11
|
* Shared ESLint configuration for Vue files using Pug templates.
|
|
5
12
|
*/
|
|
6
|
-
export default defineConfig(
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
|
|
8
|
-
...vuePug.configs['flat/recommended']);
|
|
13
|
+
export default defineConfig(...vuePug.configs['flat/recommended']);
|
|
9
14
|
//# sourceMappingURL=vue-pug.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vue-pug.js","sourceRoot":"","sources":["../../configs/vue-pug.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vue-pug.js","sourceRoot":"","sources":["../../configs/vue-pug.ts"],"names":[],"mappings":"AAEA,OAAO,YAAY,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAE5C;;;;;GAKG;AACH,MAAM,MAAM,GAAG,YAAsD,CAAA;AAErE;;GAEG;AACH,eAAe,YAAY,CAC1B,GAAI,MAAM,CAAC,OAAO,CAAC,kBAAkB,CAAqB,CAC1D,CAAA"}
|
package/dist/configs/vue.d.ts
CHANGED
package/dist/configs/vue2.d.ts
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineConfig } from 'eslint/config';
|
|
2
|
+
import mainConfig from './configs/index.js';
|
|
3
|
+
import nodeConfig from './configs/node.js';
|
|
4
|
+
import tsConfig from './configs/typescript.js';
|
|
5
|
+
export default defineConfig([
|
|
6
|
+
{
|
|
7
|
+
ignores: ['dist', 'node_modules'],
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
files: ['**/*.js'],
|
|
11
|
+
extends: [mainConfig, nodeConfig],
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
files: ['**/*.ts'],
|
|
15
|
+
extends: [mainConfig, nodeConfig, tsConfig],
|
|
16
|
+
languageOptions: {
|
|
17
|
+
parserOptions: {
|
|
18
|
+
tsconfigRootDir: import.meta.dirname,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
rules: {
|
|
22
|
+
'@typescript-eslint/naming-convention': 'off',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
]);
|
|
26
|
+
//# sourceMappingURL=eslint.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint.config.js","sourceRoot":"","sources":["../eslint.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAE5C,OAAO,UAAU,MAAM,oBAAoB,CAAA;AAC3C,OAAO,UAAU,MAAM,mBAAmB,CAAA;AAC1C,OAAO,QAAQ,MAAM,yBAAyB,CAAA;AAE9C,eAAe,YAAY,CAAC;IAC3B;QACC,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;KACjC;IACD;QACC,KAAK,EAAE,CAAC,SAAS,CAAC;QAClB,OAAO,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC;KACjC;IACD;QACC,KAAK,EAAE,CAAC,SAAS,CAAC;QAClB,OAAO,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC;QAC3C,eAAe,EAAE;YAChB,aAAa,EAAE;gBACd,eAAe,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO;aACpC;SACD;QACD,KAAK,EAAE;YACN,sCAAsC,EAAE,KAAK;SAC7C;KACD;CACD,CAAC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import perfectionist from 'eslint-plugin-perfectionist';
|
|
2
|
+
import tsdoc from 'eslint-plugin-tsdoc';
|
|
3
|
+
import vue from 'eslint-plugin-vue';
|
|
4
|
+
import vuePug from 'eslint-plugin-vue-pug';
|
|
5
|
+
import { plugins as neostandardPlugins } from 'neostandard';
|
|
6
|
+
declare const plugins: typeof neostandardPlugins & {
|
|
7
|
+
perfectionist: typeof perfectionist;
|
|
8
|
+
tsdoc: typeof tsdoc;
|
|
9
|
+
vue: typeof vue;
|
|
10
|
+
vuePug: typeof vuePug;
|
|
11
|
+
};
|
|
12
|
+
export default plugins;
|
package/dist/plugins.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import perfectionist from 'eslint-plugin-perfectionist';
|
|
2
|
+
import tsdoc from 'eslint-plugin-tsdoc';
|
|
3
|
+
import vue from 'eslint-plugin-vue';
|
|
4
|
+
import vuePug from 'eslint-plugin-vue-pug';
|
|
5
|
+
import { plugins as neostandardPlugins } from 'neostandard';
|
|
6
|
+
/*
|
|
7
|
+
* The type annotation is required: some plugins type their default export via
|
|
8
|
+
* interfaces they do not export, so the inferred type cannot be named during
|
|
9
|
+
* declaration emit (TS4023). Referencing them through `typeof` keeps the real
|
|
10
|
+
* types while staying nameable.
|
|
11
|
+
*/
|
|
12
|
+
const plugins = {
|
|
13
|
+
...neostandardPlugins,
|
|
14
|
+
perfectionist,
|
|
15
|
+
tsdoc,
|
|
16
|
+
vue,
|
|
17
|
+
vuePug,
|
|
18
|
+
};
|
|
19
|
+
export default plugins;
|
|
20
|
+
//# sourceMappingURL=plugins.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../plugins.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,6BAA6B,CAAA;AACvD,OAAO,KAAK,MAAM,qBAAqB,CAAA;AACvC,OAAO,GAAG,MAAM,mBAAmB,CAAA;AACnC,OAAO,MAAM,MAAM,uBAAuB,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAE3D;;;;;GAKG;AACH,MAAM,OAAO,GAKT;IACH,GAAG,kBAAkB;IACrB,aAAa;IACb,KAAK;IACL,GAAG;IACH,MAAM;CACN,CAAA;AAED,eAAe,OAAO,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dataport/eslint-config-geodev",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.2",
|
|
4
4
|
"description": "Generic ESLint configuration for geo development projects at Dataport",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
6
|
+
"main": "dist/configs/index.js",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"types": "./dist/configs/index.d.ts",
|
|
10
10
|
"default": "./dist/configs/index.js"
|
|
11
11
|
},
|
|
12
|
+
"./plugins": {
|
|
13
|
+
"types": "./dist/plugins.d.ts",
|
|
14
|
+
"default": "./dist/plugins.js"
|
|
15
|
+
},
|
|
12
16
|
"./*": {
|
|
13
17
|
"types": "./dist/configs/*.d.ts",
|
|
14
18
|
"default": "./dist/configs/*.js"
|
|
@@ -40,17 +44,17 @@
|
|
|
40
44
|
"LICENSE"
|
|
41
45
|
],
|
|
42
46
|
"dependencies": {
|
|
43
|
-
"@eslint/js": "^
|
|
44
|
-
"@eslint/json": "^
|
|
45
|
-
"@eslint/markdown": "^
|
|
46
|
-
"@html-eslint/eslint-plugin": "^0.
|
|
47
|
+
"@eslint/js": "^10.0.1",
|
|
48
|
+
"@eslint/json": "^2.0.1",
|
|
49
|
+
"@eslint/markdown": "^8.0.3",
|
|
50
|
+
"@html-eslint/eslint-plugin": "^0.64.0",
|
|
47
51
|
"@typescript-eslint/parser": "^8.34.1",
|
|
48
52
|
"eslint-plugin-perfectionist": "^5.7.0",
|
|
49
53
|
"eslint-plugin-tsdoc": "^0.5.0",
|
|
50
54
|
"eslint-plugin-vue": "^10.0.0",
|
|
51
55
|
"eslint-plugin-vue-pug": "^1.0.0-alpha.3",
|
|
52
56
|
"globals": "^17.4.0",
|
|
53
|
-
"neostandard": "^0.
|
|
57
|
+
"neostandard": "^0.14.0-next.1",
|
|
54
58
|
"typescript-eslint": "^8.31.0",
|
|
55
59
|
"vue-eslint-parser": "^10.1.3"
|
|
56
60
|
},
|
|
@@ -63,7 +67,7 @@
|
|
|
63
67
|
"conventional-changelog-conventionalcommits": "^10.2.0",
|
|
64
68
|
"conventional-commits-filter": "^6.0.0",
|
|
65
69
|
"conventional-commits-parser": "^7.0.0",
|
|
66
|
-
"eslint": "^
|
|
70
|
+
"eslint": "^10.8.1",
|
|
67
71
|
"husky": "^9.1.7",
|
|
68
72
|
"jiti": "^2.6.1",
|
|
69
73
|
"type-fest": "^5.0.1"
|