mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 08:30:02 +03:00
map2tree
This commit is contained in:
parent
62d62d37ae
commit
786a48b3c6
|
@ -19,7 +19,7 @@ export default (tsconfigRootDir) => [
|
||||||
files: ['**/*.ts'],
|
files: ['**/*.ts'],
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
projectService: true,
|
project: true,
|
||||||
tsconfigRootDir,
|
tsconfigRootDir,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
64
eslint.ts.jest.config.base.mjs
Normal file
64
eslint.ts.jest.config.base.mjs
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
import eslint from '@eslint/js';
|
||||||
|
import tseslint from 'typescript-eslint';
|
||||||
|
import jest from 'eslint-plugin-jest';
|
||||||
|
import eslintConfigPrettier from 'eslint-config-prettier';
|
||||||
|
|
||||||
|
export default (files, tsconfigRootDir, tsconfigFile) => [
|
||||||
|
{
|
||||||
|
files,
|
||||||
|
...eslint.configs.recommended,
|
||||||
|
},
|
||||||
|
...tseslint.configs.recommendedTypeChecked.map((config) => ({
|
||||||
|
files,
|
||||||
|
...config,
|
||||||
|
})),
|
||||||
|
...tseslint.configs.stylisticTypeChecked.map((config) => ({
|
||||||
|
files,
|
||||||
|
...config,
|
||||||
|
})),
|
||||||
|
{
|
||||||
|
files,
|
||||||
|
languageOptions: {
|
||||||
|
parserOptions: {
|
||||||
|
project: [tsconfigFile],
|
||||||
|
tsconfigRootDir,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
files,
|
||||||
|
...jest.configs['flat/recommended'],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
files,
|
||||||
|
...jest.configs['jest/style'],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
files,
|
||||||
|
...eslintConfigPrettier,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
files,
|
||||||
|
rules: {
|
||||||
|
'@typescript-eslint/no-unsafe-return': 'off',
|
||||||
|
'@typescript-eslint/no-unsafe-assignment': 'off',
|
||||||
|
'@typescript-eslint/no-unsafe-call': 'off',
|
||||||
|
'@typescript-eslint/no-unsafe-member-access': 'off',
|
||||||
|
'@typescript-eslint/prefer-optional-chain': 'off',
|
||||||
|
'@typescript-eslint/no-base-to-string': 'off',
|
||||||
|
'@typescript-eslint/consistent-indexed-object-style': 'off',
|
||||||
|
'@typescript-eslint/prefer-nullish-coalescing': 'off',
|
||||||
|
'@typescript-eslint/consistent-type-definitions': 'off',
|
||||||
|
'@typescript-eslint/no-unused-vars': 'off',
|
||||||
|
'@typescript-eslint/no-explicit-any': 'off',
|
||||||
|
'@typescript-eslint/prefer-for-of': 'off',
|
||||||
|
'@typescript-eslint/non-nullable-type-assertion-style': 'off',
|
||||||
|
'@typescript-eslint/class-literal-property-style': 'off',
|
||||||
|
'@typescript-eslint/no-redundant-type-constituents': 'off',
|
||||||
|
'@typescript-eslint/prefer-string-starts-ends-with': 'off',
|
||||||
|
'@typescript-eslint/no-duplicate-type-constituents': 'off',
|
||||||
|
'@typescript-eslint/array-type': 'off',
|
||||||
|
'@typescript-eslint/prefer-function-type': 'off',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
];
|
|
@ -1 +0,0 @@
|
||||||
lib
|
|
|
@ -1,21 +0,0 @@
|
||||||
module.exports = {
|
|
||||||
extends: '../../eslintrc.js.base.json',
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
files: ['*.ts'],
|
|
||||||
extends: '../../eslintrc.ts.jest.base.json',
|
|
||||||
parserOptions: {
|
|
||||||
tsconfigRootDir: __dirname,
|
|
||||||
project: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['test/**/*.ts'],
|
|
||||||
extends: '../../eslintrc.ts.jest.base.json',
|
|
||||||
parserOptions: {
|
|
||||||
tsconfigRootDir: __dirname,
|
|
||||||
project: ['./tsconfig.test.json'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
|
16
packages/map2tree/eslint.config.js
Normal file
16
packages/map2tree/eslint.config.js
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
import eslintJs from '../../eslint.js.config.base.mjs';
|
||||||
|
import eslintTs from '../../eslint.ts.config.base.mjs';
|
||||||
|
import eslintTsJest from '../../eslint.ts.jest.config.base.mjs';
|
||||||
|
|
||||||
|
export default [
|
||||||
|
...eslintJs,
|
||||||
|
...eslintTs(import.meta.dirname),
|
||||||
|
...eslintTsJest(
|
||||||
|
['test/**/*.ts'],
|
||||||
|
import.meta.dirname,
|
||||||
|
'./tsconfig.test.json',
|
||||||
|
),
|
||||||
|
{
|
||||||
|
ignores: ['lib'],
|
||||||
|
},
|
||||||
|
];
|
|
@ -31,7 +31,7 @@
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"clean": "rimraf lib",
|
"clean": "rimraf lib",
|
||||||
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
||||||
"lint": "eslint . --ext .ts",
|
"lint": "eslint .",
|
||||||
"type-check": "tsc --noEmit",
|
"type-check": "tsc --noEmit",
|
||||||
"prepack": "pnpm run clean && pnpm run build",
|
"prepack": "pnpm run clean && pnpm run build",
|
||||||
"prepublish": "pnpm run lint && pnpm run test"
|
"prepublish": "pnpm run lint && pnpm run test"
|
||||||
|
@ -42,11 +42,6 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^29.5.12",
|
"@types/jest": "^29.5.12",
|
||||||
"@types/lodash-es": "^4.17.12",
|
"@types/lodash-es": "^4.17.12",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.0.1",
|
|
||||||
"@typescript-eslint/parser": "^8.0.1",
|
|
||||||
"eslint": "^8.57.0",
|
|
||||||
"eslint-config-prettier": "^9.1.0",
|
|
||||||
"eslint-plugin-jest": "^28.7.0",
|
|
||||||
"immutable": "^4.3.7",
|
"immutable": "^4.3.7",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"rimraf": "^6.0.1",
|
"rimraf": "^6.0.1",
|
||||||
|
|
|
@ -350,9 +350,6 @@ importers:
|
||||||
typescript:
|
typescript:
|
||||||
specifier: ~5.5.4
|
specifier: ~5.5.4
|
||||||
version: 5.5.4
|
version: 5.5.4
|
||||||
typescript-eslint:
|
|
||||||
specifier: ^8.0.1
|
|
||||||
version: 8.0.1(eslint@8.57.0)(typescript@5.5.4)
|
|
||||||
|
|
||||||
packages/map2tree:
|
packages/map2tree:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -366,21 +363,6 @@ importers:
|
||||||
'@types/lodash-es':
|
'@types/lodash-es':
|
||||||
specifier: ^4.17.12
|
specifier: ^4.17.12
|
||||||
version: 4.17.12
|
version: 4.17.12
|
||||||
'@typescript-eslint/eslint-plugin':
|
|
||||||
specifier: ^8.0.1
|
|
||||||
version: 8.0.1(@typescript-eslint/parser@8.0.1)(eslint@8.57.0)(typescript@5.5.4)
|
|
||||||
'@typescript-eslint/parser':
|
|
||||||
specifier: ^8.0.1
|
|
||||||
version: 8.0.1(eslint@8.57.0)(typescript@5.5.4)
|
|
||||||
eslint:
|
|
||||||
specifier: ^8.57.0
|
|
||||||
version: 8.57.0
|
|
||||||
eslint-config-prettier:
|
|
||||||
specifier: ^9.1.0
|
|
||||||
version: 9.1.0(eslint@8.57.0)
|
|
||||||
eslint-plugin-jest:
|
|
||||||
specifier: ^28.7.0
|
|
||||||
version: 28.7.0(@typescript-eslint/eslint-plugin@8.0.1)(eslint@8.57.0)(jest@29.7.0)(typescript@5.5.4)
|
|
||||||
immutable:
|
immutable:
|
||||||
specifier: ^4.3.7
|
specifier: ^4.3.7
|
||||||
version: 4.3.7
|
version: 4.3.7
|
||||||
|
|
Loading…
Reference in New Issue
Block a user