mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-25 15:40:06 +03:00
redux-devtools-app
This commit is contained in:
parent
5aebe47563
commit
46e75e6c48
|
@ -1,3 +0,0 @@
|
|||
build
|
||||
lib
|
||||
umd
|
|
@ -1,37 +0,0 @@
|
|||
module.exports = {
|
||||
extends: '../../eslintrc.js.base.json',
|
||||
overrides: [
|
||||
{
|
||||
files: ['*.ts', '*.tsx'],
|
||||
extends: '../../eslintrc.ts.react.base.json',
|
||||
parserOptions: {
|
||||
tsconfigRootDir: __dirname,
|
||||
project: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['demo/**/*.ts', 'demo/**/*.tsx'],
|
||||
extends: '../../eslintrc.ts.react.base.json',
|
||||
parserOptions: {
|
||||
tsconfigRootDir: __dirname,
|
||||
project: ['./tsconfig.demo.json'],
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['test/**/*.ts', 'test/**/*.tsx'],
|
||||
extends: '../../eslintrc.ts.react.jest.base.json',
|
||||
parserOptions: {
|
||||
tsconfigRootDir: __dirname,
|
||||
project: ['./tsconfig.test.json'],
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['webpack.config.ts', 'webpack.config.umd.ts'],
|
||||
extends: '../../eslintrc.ts.base.json',
|
||||
parserOptions: {
|
||||
tsconfigRootDir: __dirname,
|
||||
project: ['./tsconfig.webpack.json'],
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
|
@ -29,7 +29,7 @@ await esbuild.build({
|
|||
// https://github.com/evanw/esbuild/issues/337#issuecomment-954633403
|
||||
function importAsGlobals(mapping) {
|
||||
// https://stackoverflow.com/a/3561711/153718
|
||||
const escRe = (s) => s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
|
||||
const escRe = (s) => s.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&');
|
||||
const filter = new RegExp(
|
||||
Object.keys(mapping)
|
||||
.map((mod) => `^${escRe(mod)}$`)
|
||||
|
|
33
packages/redux-devtools-app/eslint.config.mjs
Normal file
33
packages/redux-devtools-app/eslint.config.mjs
Normal file
|
@ -0,0 +1,33 @@
|
|||
import eslintJs from '../../eslint.js.config.base.mjs';
|
||||
import eslintTsReact from '../../eslint.ts.react.config.base.mjs';
|
||||
import eslintTsReactJest from '../../eslint.ts.react.jest.config.base.mjs';
|
||||
import eslintTs from '../../eslint.ts.react.config.base.mjs';
|
||||
|
||||
export default [
|
||||
...eslintJs,
|
||||
...eslintTsReact(import.meta.dirname),
|
||||
...eslintTsReact(
|
||||
import.meta.dirname,
|
||||
['demo/**/*.ts', 'demo/**/*.tsx'],
|
||||
['./tsconfig.demo.json'],
|
||||
),
|
||||
...eslintTsReactJest(['test/**/*.ts', 'test/**/*.tsx'], import.meta.dirname, [
|
||||
'./tsconfig.test.json',
|
||||
]),
|
||||
...eslintTs(
|
||||
import.meta.dirname,
|
||||
['webpack.config.ts', 'webpack.config.umd.ts'],
|
||||
['./tsconfig.webpack.json'],
|
||||
),
|
||||
{
|
||||
ignores: ['build', 'lib', 'umd'],
|
||||
},
|
||||
{
|
||||
files: ['buildUmd.mjs'],
|
||||
languageOptions: {
|
||||
globals: {
|
||||
process: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
];
|
|
@ -33,7 +33,7 @@
|
|||
"build:umd": "node buildUmd.mjs --dev",
|
||||
"build:umd:min": "node buildUmd.mjs",
|
||||
"clean": "rimraf build lib umd",
|
||||
"lint": "eslint . --ext .ts,.tsx",
|
||||
"lint": "eslint .",
|
||||
"type-check": "tsc --noEmit",
|
||||
"prepack": "pnpm run clean && pnpm run build",
|
||||
"prepublish": "pnpm run type-check && pnpm run lint"
|
||||
|
@ -69,16 +69,10 @@
|
|||
"@types/socketcluster-client": "^19.1.0",
|
||||
"@types/styled-components": "^5.1.34",
|
||||
"@types/webpack-env": "^1.18.5",
|
||||
"@typescript-eslint/eslint-plugin": "^8.0.1",
|
||||
"@typescript-eslint/parser": "^8.0.1",
|
||||
"babel-loader": "^9.1.3",
|
||||
"cross-env": "^7.0.3",
|
||||
"css-loader": "^7.1.2",
|
||||
"esbuild": "^0.23.0",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-react": "^7.35.0",
|
||||
"eslint-plugin-react-hooks": "^4.6.2",
|
||||
"fork-ts-checker-webpack-plugin": "^9.0.2",
|
||||
"html-loader": "^5.1.0",
|
||||
"html-webpack-plugin": "^5.6.0",
|
||||
|
|
|
@ -763,12 +763,6 @@ importers:
|
|||
'@types/webpack-env':
|
||||
specifier: ^1.18.5
|
||||
version: 1.18.5
|
||||
'@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)
|
||||
babel-loader:
|
||||
specifier: ^9.1.3
|
||||
version: 9.1.3(@babel/core@7.25.2)(webpack@5.93.0)
|
||||
|
@ -781,18 +775,6 @@ importers:
|
|||
esbuild:
|
||||
specifier: ^0.23.0
|
||||
version: 0.23.0
|
||||
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-react:
|
||||
specifier: ^7.35.0
|
||||
version: 7.35.0(eslint@8.57.0)
|
||||
eslint-plugin-react-hooks:
|
||||
specifier: ^4.6.2
|
||||
version: 4.6.2(eslint@8.57.0)
|
||||
fork-ts-checker-webpack-plugin:
|
||||
specifier: ^9.0.2
|
||||
version: 9.0.2(typescript@5.5.4)(webpack@5.93.0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user