@fullstacksjs/eslint-config 11.1.11 → 11.1.13
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/package.json +3 -3
- package/src/index.js +1 -1
- package/src/modules/functional.js +1 -1
- package/src/modules/imports.js +1 -1
- package/src/modules/jest.js +1 -1
- package/src/modules/node.js +1 -1
- package/src/modules/tests.js +1 -1
- package/src/modules/typescript.js +1 -5
- package/src/utils/compose.js +1 -1
- /package/src/{index.d.ts → option.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullstacksjs/eslint-config",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.13",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "fullstacks <fullstacksjs@gmail.com>",
|
|
6
6
|
"description": "fullstacks eslint config",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"postpublish": "pinst --enable",
|
|
23
23
|
"pre-commit": "npm run test && lint-staged"
|
|
24
24
|
},
|
|
25
|
-
"main": "src/index.js",
|
|
26
|
-
"module": "src/index.js",
|
|
25
|
+
"main": "./src/index.js",
|
|
26
|
+
"module": "./src/index.js",
|
|
27
27
|
"type": "module",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@eslint-react/eslint-plugin": "1.15.0",
|
package/src/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import { compose } from './utils/compose.js';
|
|
|
21
21
|
|
|
22
22
|
const testPackages = ['jest', 'vitest', 'cypress', 'playwright'];
|
|
23
23
|
|
|
24
|
-
/** @type {import('./
|
|
24
|
+
/** @type {import('./option.js').Options} */
|
|
25
25
|
const defaultOptions = {
|
|
26
26
|
cypress: isPackageExists('cypress'),
|
|
27
27
|
disableExpensiveRules: false,
|
package/src/modules/imports.js
CHANGED
|
@@ -7,7 +7,7 @@ const jsExtensions = ['.mjs', '.js', '.jsx', '.cjs'];
|
|
|
7
7
|
const allExtensions = [...jsExtensions, ...tsExtensions];
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* @param { import('../
|
|
10
|
+
* @param { import('../option').Options } options
|
|
11
11
|
* @return { import('eslint').Linter.Config }
|
|
12
12
|
*/
|
|
13
13
|
function imports(options = {}) {
|
package/src/modules/jest.js
CHANGED
|
@@ -3,7 +3,7 @@ import plugin from 'eslint-plugin-jest';
|
|
|
3
3
|
import { globs } from '../utils/globs.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* @param { import('../
|
|
6
|
+
* @param { import('../option').Options } options
|
|
7
7
|
* @return { import('eslint').Linter.Config } */
|
|
8
8
|
function jest() {
|
|
9
9
|
return {
|
package/src/modules/node.js
CHANGED
|
@@ -3,7 +3,7 @@ import plugin from 'eslint-plugin-n';
|
|
|
3
3
|
import { strict } from '../utils/conditions.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* @param { import('../
|
|
6
|
+
* @param { import('../option').Options } options
|
|
7
7
|
* @return { import('eslint').Linter.Config }
|
|
8
8
|
*/
|
|
9
9
|
function node(options = {}) {
|
package/src/modules/tests.js
CHANGED
|
@@ -5,7 +5,7 @@ import { predicate } from '../utils/conditions.js';
|
|
|
5
5
|
import { globs } from '../utils/globs.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @param {import('../
|
|
8
|
+
* @param { import('../option').Options } options
|
|
9
9
|
* @return { import('eslint').Linter.Config }
|
|
10
10
|
*/
|
|
11
11
|
function tests(options = {}) {
|
|
@@ -5,7 +5,7 @@ import { globs } from '../utils/globs.js';
|
|
|
5
5
|
import { namingConvention } from '../utils/naming-convention.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @param {import('../
|
|
8
|
+
* @param { import('../option').Options } options
|
|
9
9
|
* @return { import('eslint').Linter.Config }
|
|
10
10
|
*/
|
|
11
11
|
function typescript(options = {}) {
|
|
@@ -205,10 +205,6 @@ function typescript(options = {}) {
|
|
|
205
205
|
'@typescript-eslint/switch-exhaustiveness-check': 'error',
|
|
206
206
|
'@typescript-eslint/unbound-method': ['error', { ignoreStatic: true }],
|
|
207
207
|
|
|
208
|
-
...predicate(options.fp, {
|
|
209
|
-
'functional/immutable-data': ['error', { ignoreClasses: true, ignoreImmediateMutation: true, ignoreNonConstDeclarations: true }],
|
|
210
|
-
}),
|
|
211
|
-
|
|
212
208
|
// collisions
|
|
213
209
|
'prefer-promise-reject-errors': 'off',
|
|
214
210
|
'consistent-return': 'off',
|
package/src/utils/compose.js
CHANGED
|
@@ -2,7 +2,7 @@ import { ignoreGlobs } from './globs.js';
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @param { (options: import('eslint').Linter.Config) => import('eslint').Linter.Config } module
|
|
5
|
-
* @param { import('../
|
|
5
|
+
* @param { import('../option').Options } options
|
|
6
6
|
* @return { import('eslint').Linter.Config }
|
|
7
7
|
*/
|
|
8
8
|
export function compose(module, options) {
|
|
File without changes
|