mirror of
https://github.com/threeal/cmake-action.git
synced 2025-07-04 14:11:21 +00:00
* test: enable strict TypeScript ESLint configuration Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com> * test: convert ESLint configuration to TypeScript Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com> --------- Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
21 lines
501 B
TypeScript
21 lines
501 B
TypeScript
import eslint from "@eslint/js";
|
|
import { globalIgnores } from "eslint/config";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
export default tseslint.config(
|
|
globalIgnores(["dist"]),
|
|
eslint.configs.recommended,
|
|
tseslint.configs.strictTypeChecked,
|
|
tseslint.configs.stylisticTypeChecked,
|
|
{
|
|
languageOptions: {
|
|
parserOptions: {
|
|
projectService: {
|
|
allowDefaultProject: ["rollup.config.js"],
|
|
},
|
|
tsconfigRootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
},
|
|
);
|