@fullstacksjs/eslint-config 11.1.19 → 11.1.21

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.
Files changed (45) hide show
  1. package/cjs/index.js +2 -2
  2. package/cjs/modules/base.js +2 -2
  3. package/cjs/modules/cypress.js +1 -1
  4. package/cjs/modules/functional.js +1 -1
  5. package/cjs/modules/ignore.js +1 -1
  6. package/cjs/modules/imports.js +2 -2
  7. package/cjs/modules/jest.js +2 -2
  8. package/cjs/modules/next.js +1 -1
  9. package/cjs/modules/node.js +2 -2
  10. package/cjs/modules/perfectionist.js +1 -1
  11. package/cjs/modules/playwright.js +1 -1
  12. package/cjs/modules/prettier.js +1 -1
  13. package/cjs/modules/promise.js +1 -1
  14. package/cjs/modules/react.js +1 -1
  15. package/cjs/modules/storybook.js +1 -1
  16. package/cjs/modules/tailwind.js +1 -1
  17. package/cjs/modules/tests.js +2 -2
  18. package/cjs/modules/typescript.js +2 -2
  19. package/cjs/modules/vitest.js +1 -1
  20. package/cjs/utils/conditions.js +1 -1
  21. package/cjs/utils/globs.js +1 -1
  22. package/cjs/utils/naming-convention.js +1 -1
  23. package/package.json +4 -4
  24. package/src/{index.js → index.mjs} +18 -18
  25. package/src/modules/{base.js → base.mjs} +2 -2
  26. package/src/modules/{cypress.js → cypress.mjs} +1 -1
  27. package/src/modules/{ignore.js → ignore.mjs} +1 -1
  28. package/src/modules/{imports.js → imports.mjs} +2 -2
  29. package/src/modules/{jest.js → jest.mjs} +2 -2
  30. package/src/modules/{node.js → node.mjs} +2 -2
  31. package/src/modules/{playwright.js → playwright.mjs} +1 -1
  32. package/src/modules/{storybook.js → storybook.mjs} +1 -1
  33. package/src/modules/{tests.js → tests.mjs} +3 -3
  34. package/src/modules/{typescript.js → typescript.mjs} +4 -4
  35. package/src/modules/{vitest.js → vitest.mjs} +1 -1
  36. /package/src/modules/{functional.js → functional.mjs} +0 -0
  37. /package/src/modules/{next.js → next.mjs} +0 -0
  38. /package/src/modules/{perfectionist.js → perfectionist.mjs} +0 -0
  39. /package/src/modules/{prettier.js → prettier.mjs} +0 -0
  40. /package/src/modules/{promise.js → promise.mjs} +0 -0
  41. /package/src/modules/{react.js → react.mjs} +0 -0
  42. /package/src/modules/{tailwind.js → tailwind.mjs} +0 -0
  43. /package/src/utils/{conditions.js → conditions.mjs} +0 -0
  44. /package/src/utils/{globs.js → globs.mjs} +0 -0
  45. /package/src/utils/{naming-convention.js → naming-convention.mjs} +0 -0
package/cjs/index.js CHANGED
@@ -28,7 +28,7 @@ const testPackages = ['jest', 'vitest', 'cypress', 'playwright'];
28
28
 
29
29
  /**
30
30
  * @typedef {import('eslint').Linter.Config} Config
31
- * @typedef {import('./option.d.ts').Options} Options
31
+ * @typedef {import('./option').Options} Options
32
32
  * /
33
33
 
34
34
  /** @type {Options} */
@@ -111,4 +111,4 @@ function init(initOptions = {}, ...extend) {
111
111
  if (Object.keys(eslintOptions).length > 0) rules.push(eslintOptions);
112
112
  if (extend) Array.prototype.push.apply(rules, extend);
113
113
  return rules;
114
- }
114
+ }
@@ -8,7 +8,7 @@ var _globals = _interopRequireDefault(require("globals"));
8
8
  var _conditions = require("../utils/conditions.js");
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
10
  /**
11
- * @param { import('../option.d.ts').Options } options
11
+ * @param { import('../option').Options } options
12
12
  * @return { import('eslint').Linter.Config }
13
13
  */
14
14
  function base(options = {}) {
@@ -210,4 +210,4 @@ function base(options = {}) {
210
210
  }
211
211
  };
212
212
  }
213
- module.exports = base;
213
+ module.exports = base;
@@ -27,4 +27,4 @@ function cypress() {
27
27
  }
28
28
  };
29
29
  }
30
- module.exports = cypress;
30
+ module.exports = cypress;
@@ -24,4 +24,4 @@ function fp() {
24
24
  }
25
25
  };
26
26
  }
27
- module.exports = fp;
27
+ module.exports = fp;
@@ -14,4 +14,4 @@ function ignores(options = {}) {
14
14
  ignores: [..._globs.ignoreGlobs, ...(options.ignores ?? [])]
15
15
  };
16
16
  }
17
- module.exports = ignores;
17
+ module.exports = ignores;
@@ -12,7 +12,7 @@ const jsExtensions = ['.mjs', '.js', '.jsx', '.cjs'];
12
12
  const allExtensions = [...jsExtensions, ...tsExtensions];
13
13
 
14
14
  /**
15
- * @param { import('../option.d.ts').Options } options
15
+ * @param { import('../option').Options } options
16
16
  * @return { import('eslint').Linter.Config }
17
17
  */
18
18
  function imports(options = {}) {
@@ -109,4 +109,4 @@ function imports(options = {}) {
109
109
  };
110
110
  return config;
111
111
  }
112
- module.exports = imports;
112
+ module.exports = imports;
@@ -8,7 +8,7 @@ var _eslintPluginJest = _interopRequireDefault(require("eslint-plugin-jest"));
8
8
  var _globs = require("../utils/globs.js");
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
10
  /**
11
- * @param { import('../option.d.ts').Options } options
11
+ * @param { import('../option').Options } options
12
12
  * @return { import('eslint').Linter.Config } */
13
13
  function jest() {
14
14
  return {
@@ -79,4 +79,4 @@ function jest() {
79
79
  }
80
80
  };
81
81
  }
82
- module.exports = jest;
82
+ module.exports = jest;
@@ -37,4 +37,4 @@ function next() {
37
37
  }
38
38
  };
39
39
  }
40
- module.exports = next;
40
+ module.exports = next;
@@ -8,7 +8,7 @@ var _eslintPluginN = _interopRequireDefault(require("eslint-plugin-n"));
8
8
  var _conditions = require("../utils/conditions.js");
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
10
  /**
11
- * @param { import('../option.d.ts').Options } options
11
+ * @param { import('../option').Options } options
12
12
  * @return { import('eslint').Linter.Config }
13
13
  */
14
14
  function node(options = {}) {
@@ -65,4 +65,4 @@ function node(options = {}) {
65
65
  }
66
66
  };
67
67
  }
68
- module.exports = node;
68
+ module.exports = node;
@@ -38,4 +38,4 @@ function perfectionist() {
38
38
  }
39
39
  };
40
40
  }
41
- module.exports = perfectionist;
41
+ module.exports = perfectionist;
@@ -23,4 +23,4 @@ function playwright() {
23
23
  }
24
24
  };
25
25
  }
26
- module.exports = playwright;
26
+ module.exports = playwright;
@@ -93,4 +93,4 @@ function prettier() {
93
93
  }
94
94
  };
95
95
  }
96
- module.exports = prettier;
96
+ module.exports = prettier;
@@ -31,4 +31,4 @@ function promise() {
31
31
  }
32
32
  };
33
33
  }
34
- module.exports = promise;
34
+ module.exports = promise;
@@ -120,4 +120,4 @@ function react() {
120
120
  }
121
121
  };
122
122
  }
123
- module.exports = react;
123
+ module.exports = react;
@@ -36,4 +36,4 @@ function storybook() {
36
36
  }
37
37
  };
38
38
  }
39
- module.exports = storybook;
39
+ module.exports = storybook;
@@ -23,4 +23,4 @@ function tailwind() {
23
23
  }
24
24
  };
25
25
  }
26
- module.exports = tailwind;
26
+ module.exports = tailwind;
@@ -10,7 +10,7 @@ var _conditions = require("../utils/conditions.js");
10
10
  var _globs = require("../utils/globs.js");
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
12
  /**
13
- * @param { import('../option.d.ts').Options } options
13
+ * @param { import('../option').Options } options
14
14
  * @return { import('eslint').Linter.Config }
15
15
  */
16
16
  function tests(options = {}) {
@@ -51,4 +51,4 @@ function tests(options = {}) {
51
51
  }
52
52
  };
53
53
  }
54
- module.exports = tests;
54
+ module.exports = tests;
@@ -9,7 +9,7 @@ var _conditions = require("../utils/conditions.js");
9
9
  var _globs = require("../utils/globs.js");
10
10
  var _namingConvention = require("../utils/naming-convention.js");
11
11
  /**
12
- * @param { import('../option.d.ts').Options } options
12
+ * @param { import('../option').Options } options
13
13
  * @return { import('eslint').Linter.Config }
14
14
  */
15
15
  function typescript(options = {}) {
@@ -273,4 +273,4 @@ function typescript(options = {}) {
273
273
  }
274
274
  };
275
275
  }
276
- module.exports = typescript;
276
+ module.exports = typescript;
@@ -88,4 +88,4 @@ function vitest() {
88
88
  }
89
89
  };
90
90
  }
91
- module.exports = vitest;
91
+ module.exports = vitest;
@@ -22,4 +22,4 @@ exports.strict = strict;
22
22
  const predicate = (condition, config) => {
23
23
  return condition ? config : undefined;
24
24
  };
25
- exports.predicate = predicate;
25
+ exports.predicate = predicate;
@@ -34,4 +34,4 @@ const globs = exports.globs = {
34
34
  e2e: [`**/e2e/*.${srcExt}`]
35
35
  };
36
36
  const allSrc = exports.allSrc = [globs.src, globs.style, globs.allJson, globs.md, globs.svelte, globs.vue, globs.yaml, globs.xml, globs.html];
37
- const ignoreGlobs = exports.ignoreGlobs = ['**/node_modules', '**/dist', '**/package-lock.json', '**/yarn.lock', '**/pnpm-lock.yaml', '**/bun.lockb', '**/output', '**/coverage', '**/temp', '**/.temp', '**/tmp', '**/.tmp', '**/.nx', '**/.history', '**/.vitepress/cache', '**/.nuxt', '**/.next', '**/.vercel', '**/.changeset', '**/.idea', '**/.cache', '**/.output', '**/.vite-inspect', '**/.yarn', '**/LICENSE*', '**/*.min.*', '**/__snapshots__'];
37
+ const ignoreGlobs = exports.ignoreGlobs = ['**/node_modules', '**/dist', '**/package-lock.json', '**/yarn.lock', '**/pnpm-lock.yaml', '**/bun.lockb', '**/output', '**/coverage', '**/temp', '**/.temp', '**/tmp', '**/.tmp', '**/.nx', '**/.history', '**/.vitepress/cache', '**/.nuxt', '**/.next', '**/.vercel', '**/.changeset', '**/.idea', '**/.cache', '**/.output', '**/.vite-inspect', '**/.yarn', '**/LICENSE*', '**/*.min.*', '**/__snapshots__'];
@@ -60,4 +60,4 @@ const namingConvention = exports.namingConvention = [{
60
60
  regex: '^I[A-Z]',
61
61
  match: false
62
62
  }
63
- }];
63
+ }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullstacksjs/eslint-config",
3
- "version": "11.1.19",
3
+ "version": "11.1.21",
4
4
  "license": "MIT",
5
5
  "author": "fullstacks <fullstacksjs@gmail.com>",
6
6
  "description": "fullstacks eslint config",
@@ -20,19 +20,19 @@
20
20
  "spell": "cspell ./* --no-progress",
21
21
  "test": "echo 0",
22
22
  "build": "unbuild",
23
+ "postbuild": "./postbuild",
23
24
  "prepublishOnly": "pinst --disable",
24
25
  "postpublish": "pinst --enable",
25
26
  "pre-commit": "npm run test && lint-staged"
26
27
  },
27
28
  "main": "./cjs/index.js",
28
- "module": "./src/index.js",
29
+ "module": "./src/index.mjs",
29
30
  "exports": {
30
31
  ".": {
31
- "import": "./src/index.js",
32
+ "import": "./src/index.mjs",
32
33
  "require": "./cjs/index.js"
33
34
  }
34
35
  },
35
- "type": "module",
36
36
  "dependencies": {
37
37
  "@eslint-react/eslint-plugin": "1.15.0",
38
38
  "@next/eslint-plugin-next": "14.2.15",
@@ -1,29 +1,29 @@
1
1
  import merge from 'deepmerge';
2
2
  import { isPackageExists } from 'local-pkg';
3
3
 
4
- import base from './modules/base.js';
5
- import cypress from './modules/cypress.js';
6
- import fp from './modules/functional.js';
7
- import ignores from './modules/ignore.js';
8
- import imports from './modules/imports.js';
9
- import jest from './modules/jest.js';
10
- import next from './modules/next.js';
11
- import node from './modules/node.js';
12
- import perfectionist from './modules/perfectionist.js';
13
- import playwright from './modules/playwright.js';
14
- import prettier from './modules/prettier.js';
15
- import react from './modules/react.js';
16
- import storybook from './modules/storybook.js';
17
- import tailwind from './modules/tailwind.js';
18
- import tests from './modules/tests.js';
19
- import typescript from './modules/typescript.js';
20
- import vitest from './modules/vitest.js';
4
+ import base from './modules/base.mjs';
5
+ import cypress from './modules/cypress.mjs';
6
+ import fp from './modules/functional.mjs';
7
+ import ignores from './modules/ignore.mjs';
8
+ import imports from './modules/imports.mjs';
9
+ import jest from './modules/jest.mjs';
10
+ import next from './modules/next.mjs';
11
+ import node from './modules/node.mjs';
12
+ import perfectionist from './modules/perfectionist.mjs';
13
+ import playwright from './modules/playwright.mjs';
14
+ import prettier from './modules/prettier.mjs';
15
+ import react from './modules/react.mjs';
16
+ import storybook from './modules/storybook.mjs';
17
+ import tailwind from './modules/tailwind.mjs';
18
+ import tests from './modules/tests.mjs';
19
+ import typescript from './modules/typescript.mjs';
20
+ import vitest from './modules/vitest.mjs';
21
21
 
22
22
  const testPackages = ['jest', 'vitest', 'cypress', 'playwright'];
23
23
 
24
24
  /**
25
25
  * @typedef {import('eslint').Linter.Config} Config
26
- * @typedef {import('./option.d.ts').Options} Options
26
+ * @typedef {import('./option').Options} Options
27
27
  * /
28
28
 
29
29
  /** @type {Options} */
@@ -1,9 +1,9 @@
1
1
  import globals from 'globals';
2
2
 
3
- import { strict } from '../utils/conditions.js';
3
+ import { strict } from '../utils/conditions.mjs';
4
4
 
5
5
  /**
6
- * @param { import('../option.d.ts').Options } options
6
+ * @param { import('../option').Options } options
7
7
  * @return { import('eslint').Linter.Config }
8
8
  */
9
9
  function base(options = {}) {
@@ -1,6 +1,6 @@
1
1
  import plugin from 'eslint-plugin-cypress/flat';
2
2
 
3
- import { globs } from '../utils/globs.js';
3
+ import { globs } from '../utils/globs.mjs';
4
4
 
5
5
  /** @return { import('eslint').Linter.Config } */
6
6
  function cypress() {
@@ -1,4 +1,4 @@
1
- import { ignoreGlobs } from '../utils/globs.js';
1
+ import { ignoreGlobs } from '../utils/globs.mjs';
2
2
  /**
3
3
  * @param { import('../option').Options } options
4
4
  * @return { import('eslint').Linter.Config }
@@ -1,13 +1,13 @@
1
1
  import plugin from 'eslint-plugin-import-x';
2
2
 
3
- import { predicate } from '../utils/conditions.js';
3
+ import { predicate } from '../utils/conditions.mjs';
4
4
 
5
5
  const tsExtensions = ['.ts', '.tsx', '.cts', '.mts', '.ctsx', '.mtsx'];
6
6
  const jsExtensions = ['.mjs', '.js', '.jsx', '.cjs'];
7
7
  const allExtensions = [...jsExtensions, ...tsExtensions];
8
8
 
9
9
  /**
10
- * @param { import('../option.d.ts').Options } options
10
+ * @param { import('../option').Options } options
11
11
  * @return { import('eslint').Linter.Config }
12
12
  */
13
13
  function imports(options = {}) {
@@ -1,9 +1,9 @@
1
1
  import plugin from 'eslint-plugin-jest';
2
2
 
3
- import { globs } from '../utils/globs.js';
3
+ import { globs } from '../utils/globs.mjs';
4
4
 
5
5
  /**
6
- * @param { import('../option.d.ts').Options } options
6
+ * @param { import('../option').Options } options
7
7
  * @return { import('eslint').Linter.Config } */
8
8
  function jest() {
9
9
  return {
@@ -1,9 +1,9 @@
1
1
  import plugin from 'eslint-plugin-n';
2
2
 
3
- import { strict } from '../utils/conditions.js';
3
+ import { strict } from '../utils/conditions.mjs';
4
4
 
5
5
  /**
6
- * @param { import('../option.d.ts').Options } options
6
+ * @param { import('../option').Options } options
7
7
  * @return { import('eslint').Linter.Config }
8
8
  */
9
9
  function node(options = {}) {
@@ -1,6 +1,6 @@
1
1
  import plugin from 'eslint-plugin-playwright';
2
2
 
3
- import { globs } from '../utils/globs.js';
3
+ import { globs } from '../utils/globs.mjs';
4
4
 
5
5
  /** @return { import('eslint').Linter.Config } */
6
6
  function playwright() {
@@ -1,6 +1,6 @@
1
1
  import plugin from 'eslint-plugin-storybook';
2
2
 
3
- import { globs } from '../utils/globs.js';
3
+ import { globs } from '../utils/globs.mjs';
4
4
 
5
5
  /** @return { import('eslint').Linter.Config } */
6
6
  function storybook() {
@@ -1,11 +1,11 @@
1
1
  import plugin from 'eslint-plugin-jest-formatting';
2
2
  import globals from 'globals';
3
3
 
4
- import { predicate } from '../utils/conditions.js';
5
- import { globs } from '../utils/globs.js';
4
+ import { predicate } from '../utils/conditions.mjs';
5
+ import { globs } from '../utils/globs.mjs';
6
6
 
7
7
  /**
8
- * @param { import('../option.d.ts').Options } options
8
+ * @param { import('../option').Options } options
9
9
  * @return { import('eslint').Linter.Config }
10
10
  */
11
11
  function tests(options = {}) {
@@ -1,11 +1,11 @@
1
1
  import { parser, plugin } from 'typescript-eslint';
2
2
 
3
- import { predicate } from '../utils/conditions.js';
4
- import { globs } from '../utils/globs.js';
5
- import { namingConvention } from '../utils/naming-convention.js';
3
+ import { predicate } from '../utils/conditions.mjs';
4
+ import { globs } from '../utils/globs.mjs';
5
+ import { namingConvention } from '../utils/naming-convention.mjs';
6
6
 
7
7
  /**
8
- * @param { import('../option.d.ts').Options } options
8
+ * @param { import('../option').Options } options
9
9
  * @return { import('eslint').Linter.Config }
10
10
  */
11
11
  function typescript(options = {}) {
@@ -1,6 +1,6 @@
1
1
  import plugin from 'eslint-plugin-vitest';
2
2
 
3
- import { globs } from '../utils/globs.js';
3
+ import { globs } from '../utils/globs.mjs';
4
4
 
5
5
  /**
6
6
  * @return { import('eslint').Linter.Config }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes