@dataport/eslint-config-geodev 2.0.0-alpha.1 → 2.0.0-alpha.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.
@@ -0,0 +1,2 @@
1
+ declare const _default: import("eslint/config").ConfigObject[];
2
+ export default _default;
@@ -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;
@@ -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": "2.0.0-alpha.1",
3
+ "version": "2.0.0-alpha.3",
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"
@@ -35,6 +39,7 @@
35
39
  },
36
40
  "homepage": "https://github.com/Dataport/eslint-config-geodev#readme",
37
41
  "files": [
42
+ "dist/*",
38
43
  "dist/**/*",
39
44
  "README.md",
40
45
  "LICENSE"