UNPKG

create-midnight-app

Version:

🌙 Scaffold for building Midnight smart contracts with dynamic type detection and automated CLI generation

54 lines (51 loc) • 1.83 kB
// This file is part of midnightntwrk/example-counter. // Copyright (C) 2025 Midnight Foundation // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); // You may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. import js from "@eslint/js"; import plugin from "@typescript-eslint/eslint-plugin"; import parser from "@typescript-eslint/parser"; import pluginPrettier from "eslint-plugin-prettier"; export default [ js.configs.recommended, { files: ["**/*.ts", "**/*.tsx"], languageOptions: { parser, parserOptions: { ecmaVersion: "latest", sourceType: "module", project: ["./tsconfig.json"] } }, plugins: { "@typescript-eslint": plugin, prettier: pluginPrettier }, rules: { "prettier/prettier": "error", "@typescript-eslint/no-misused-promises": "off", "@typescript-eslint/no-floating-promises": "warn", "@typescript-eslint/promise-function-async": "off", "@typescript-eslint/no-redeclare": "off", "@typescript-eslint/no-invalid-void-type": "off", "@typescript-eslint/no-unsafe-call": "off", "@typescript-eslint/no-unsafe-member-access": "off", "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/consistent-type-definitions": "off" } }, { ignores: ["src/managed/**"] } ];