@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.
- package/cjs/index.js +2 -2
- package/cjs/modules/base.js +2 -2
- package/cjs/modules/cypress.js +1 -1
- package/cjs/modules/functional.js +1 -1
- package/cjs/modules/ignore.js +1 -1
- package/cjs/modules/imports.js +2 -2
- package/cjs/modules/jest.js +2 -2
- package/cjs/modules/next.js +1 -1
- package/cjs/modules/node.js +2 -2
- package/cjs/modules/perfectionist.js +1 -1
- package/cjs/modules/playwright.js +1 -1
- package/cjs/modules/prettier.js +1 -1
- package/cjs/modules/promise.js +1 -1
- package/cjs/modules/react.js +1 -1
- package/cjs/modules/storybook.js +1 -1
- package/cjs/modules/tailwind.js +1 -1
- package/cjs/modules/tests.js +2 -2
- package/cjs/modules/typescript.js +2 -2
- package/cjs/modules/vitest.js +1 -1
- package/cjs/utils/conditions.js +1 -1
- package/cjs/utils/globs.js +1 -1
- package/cjs/utils/naming-convention.js +1 -1
- package/package.json +4 -4
- package/src/{index.js → index.mjs} +18 -18
- package/src/modules/{base.js → base.mjs} +2 -2
- package/src/modules/{cypress.js → cypress.mjs} +1 -1
- package/src/modules/{ignore.js → ignore.mjs} +1 -1
- package/src/modules/{imports.js → imports.mjs} +2 -2
- package/src/modules/{jest.js → jest.mjs} +2 -2
- package/src/modules/{node.js → node.mjs} +2 -2
- package/src/modules/{playwright.js → playwright.mjs} +1 -1
- package/src/modules/{storybook.js → storybook.mjs} +1 -1
- package/src/modules/{tests.js → tests.mjs} +3 -3
- package/src/modules/{typescript.js → typescript.mjs} +4 -4
- package/src/modules/{vitest.js → vitest.mjs} +1 -1
- /package/src/modules/{functional.js → functional.mjs} +0 -0
- /package/src/modules/{next.js → next.mjs} +0 -0
- /package/src/modules/{perfectionist.js → perfectionist.mjs} +0 -0
- /package/src/modules/{prettier.js → prettier.mjs} +0 -0
- /package/src/modules/{promise.js → promise.mjs} +0 -0
- /package/src/modules/{react.js → react.mjs} +0 -0
- /package/src/modules/{tailwind.js → tailwind.mjs} +0 -0
- /package/src/utils/{conditions.js → conditions.mjs} +0 -0
- /package/src/utils/{globs.js → globs.mjs} +0 -0
- /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
|
|
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
|
+
}
|
package/cjs/modules/base.js
CHANGED
|
@@ -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
|
|
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;
|
package/cjs/modules/cypress.js
CHANGED
package/cjs/modules/ignore.js
CHANGED
package/cjs/modules/imports.js
CHANGED
|
@@ -12,7 +12,7 @@ const jsExtensions = ['.mjs', '.js', '.jsx', '.cjs'];
|
|
|
12
12
|
const allExtensions = [...jsExtensions, ...tsExtensions];
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* @param { import('../option
|
|
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;
|
package/cjs/modules/jest.js
CHANGED
|
@@ -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
|
|
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;
|
package/cjs/modules/next.js
CHANGED
package/cjs/modules/node.js
CHANGED
|
@@ -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
|
|
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;
|
package/cjs/modules/prettier.js
CHANGED
package/cjs/modules/promise.js
CHANGED
package/cjs/modules/react.js
CHANGED
package/cjs/modules/storybook.js
CHANGED
package/cjs/modules/tailwind.js
CHANGED
package/cjs/modules/tests.js
CHANGED
|
@@ -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
|
|
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
|
|
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;
|
package/cjs/modules/vitest.js
CHANGED
package/cjs/utils/conditions.js
CHANGED
package/cjs/utils/globs.js
CHANGED
|
@@ -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__'];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullstacksjs/eslint-config",
|
|
3
|
-
"version": "11.1.
|
|
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.
|
|
29
|
+
"module": "./src/index.mjs",
|
|
29
30
|
"exports": {
|
|
30
31
|
".": {
|
|
31
|
-
"import": "./src/index.
|
|
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.
|
|
5
|
-
import cypress from './modules/cypress.
|
|
6
|
-
import fp from './modules/functional.
|
|
7
|
-
import ignores from './modules/ignore.
|
|
8
|
-
import imports from './modules/imports.
|
|
9
|
-
import jest from './modules/jest.
|
|
10
|
-
import next from './modules/next.
|
|
11
|
-
import node from './modules/node.
|
|
12
|
-
import perfectionist from './modules/perfectionist.
|
|
13
|
-
import playwright from './modules/playwright.
|
|
14
|
-
import prettier from './modules/prettier.
|
|
15
|
-
import react from './modules/react.
|
|
16
|
-
import storybook from './modules/storybook.
|
|
17
|
-
import tailwind from './modules/tailwind.
|
|
18
|
-
import tests from './modules/tests.
|
|
19
|
-
import typescript from './modules/typescript.
|
|
20
|
-
import vitest from './modules/vitest.
|
|
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
|
|
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.
|
|
3
|
+
import { strict } from '../utils/conditions.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* @param { import('../option
|
|
6
|
+
* @param { import('../option').Options } options
|
|
7
7
|
* @return { import('eslint').Linter.Config }
|
|
8
8
|
*/
|
|
9
9
|
function base(options = {}) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import plugin from 'eslint-plugin-import-x';
|
|
2
2
|
|
|
3
|
-
import { predicate } from '../utils/conditions.
|
|
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
|
|
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.
|
|
3
|
+
import { globs } from '../utils/globs.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* @param { import('../option
|
|
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.
|
|
3
|
+
import { strict } from '../utils/conditions.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* @param { import('../option
|
|
6
|
+
* @param { import('../option').Options } options
|
|
7
7
|
* @return { import('eslint').Linter.Config }
|
|
8
8
|
*/
|
|
9
9
|
function node(options = {}) {
|
|
@@ -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.
|
|
5
|
-
import { globs } from '../utils/globs.
|
|
4
|
+
import { predicate } from '../utils/conditions.mjs';
|
|
5
|
+
import { globs } from '../utils/globs.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @param { import('../option
|
|
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.
|
|
4
|
-
import { globs } from '../utils/globs.
|
|
5
|
-
import { namingConvention } from '../utils/naming-convention.
|
|
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
|
|
8
|
+
* @param { import('../option').Options } options
|
|
9
9
|
* @return { import('eslint').Linter.Config }
|
|
10
10
|
*/
|
|
11
11
|
function typescript(options = {}) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|