mirror of
https://github.com/iconify/iconify.git
synced 2024-11-16 17:45:09 +00:00
chore: update deps, migrate api-redundancy to new eslint
This commit is contained in:
parent
4349316136
commit
da12a33716
@ -10,7 +10,7 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/iconify/iconify.git"
|
"url": "https://github.com/iconify/iconify.git"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@9.5.0",
|
"packageManager": "pnpm@9.12.3",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rm -rf */*/node_modules",
|
"clean": "rm -rf */*/node_modules",
|
||||||
"build": "pnpm recursive --filter \"./(packages|iconify-icon|components)/**\" run build",
|
"build": "pnpm recursive --filter \"./(packages|iconify-icon|components)/**\" run build",
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
env: {
|
|
||||||
browser: true,
|
|
||||||
es6: true,
|
|
||||||
node: true,
|
|
||||||
jasmine: true,
|
|
||||||
},
|
|
||||||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
|
|
||||||
globals: {
|
|
||||||
Atomics: 'readonly',
|
|
||||||
SharedArrayBuffer: 'readonly',
|
|
||||||
},
|
|
||||||
parser: '@typescript-eslint/parser',
|
|
||||||
plugins: ['@typescript-eslint'],
|
|
||||||
rules: {
|
|
||||||
'no-mixed-spaces-and-tabs': ['off'],
|
|
||||||
'no-unused-vars': ['off'],
|
|
||||||
// '@typescript-eslint/no-unused-vars-experimental': ['error'],
|
|
||||||
},
|
|
||||||
};
|
|
@ -3,7 +3,7 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
*.map
|
*.map
|
||||||
.eslintignore
|
.eslintignore
|
||||||
.eslintrc.js
|
eslint.config.*
|
||||||
.prettierrc
|
.prettierrc
|
||||||
.editorconfig
|
.editorconfig
|
||||||
jest.config.*
|
jest.config.*
|
||||||
|
40
packages/api-redundancy/eslint.config.mjs
Normal file
40
packages/api-redundancy/eslint.config.mjs
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
import typescriptEslint from "@typescript-eslint/eslint-plugin";
|
||||||
|
import globals from "globals";
|
||||||
|
import tsParser from "@typescript-eslint/parser";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
|
import js from "@eslint/js";
|
||||||
|
import { FlatCompat } from "@eslint/eslintrc";
|
||||||
|
|
||||||
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
|
const __dirname = path.dirname(__filename);
|
||||||
|
const compat = new FlatCompat({
|
||||||
|
baseDirectory: __dirname,
|
||||||
|
recommendedConfig: js.configs.recommended,
|
||||||
|
allConfig: js.configs.all
|
||||||
|
});
|
||||||
|
|
||||||
|
export default [{
|
||||||
|
ignores: ["**/lib"],
|
||||||
|
}, ...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"), {
|
||||||
|
plugins: {
|
||||||
|
"@typescript-eslint": typescriptEslint,
|
||||||
|
},
|
||||||
|
|
||||||
|
languageOptions: {
|
||||||
|
globals: {
|
||||||
|
...globals.browser,
|
||||||
|
...globals.node,
|
||||||
|
...globals.jasmine,
|
||||||
|
Atomics: "readonly",
|
||||||
|
SharedArrayBuffer: "readonly",
|
||||||
|
},
|
||||||
|
|
||||||
|
parser: tsParser,
|
||||||
|
},
|
||||||
|
|
||||||
|
rules: {
|
||||||
|
"no-mixed-spaces-and-tabs": ["off"],
|
||||||
|
"no-unused-vars": ["off"],
|
||||||
|
},
|
||||||
|
}];
|
@ -28,13 +28,16 @@
|
|||||||
"directory": "packages/api-redundancy"
|
"directory": "packages/api-redundancy"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^29.5.12",
|
"@types/jest": "^29.5.14",
|
||||||
"@types/node": "^18.19.41",
|
"@types/node": "^22.8.6",
|
||||||
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
"@typescript-eslint/eslint-plugin": "^8.12.2",
|
||||||
"@typescript-eslint/parser": "^6.21.0",
|
"@typescript-eslint/parser": "^8.12.2",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^9.13.0",
|
||||||
"tsup": "^7.3.0",
|
"tsup": "^7.3.0",
|
||||||
"vitest": "^0.34.6"
|
"vitest": "^0.34.6"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"globals": "^15.11.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -267,7 +267,6 @@ export function sendQuery(
|
|||||||
failQuery();
|
failQuery();
|
||||||
} else {
|
} else {
|
||||||
// Queue is empty: run next item immediately
|
// Queue is empty: run next item immediately
|
||||||
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
||||||
execNext();
|
execNext();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,6 @@
|
|||||||
"directory": "packages/types"
|
"directory": "packages/types"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "^5.5.3"
|
"typescript": "^5.6.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
971
pnpm-lock.yaml
971
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user