0.2.0 • Published 7 months ago

@svdex/eslint-plugin-bedrock v0.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

@svdex/eslint-plugin-bedrock

ESLint plugin for Minecraft: Bedrock Edition Add-on Development.

Installation

  1. Installing ESLint
npm install eslint -D
  1. Installing @svdex/eslint-plugin-bedrock
npm install @svdex/eslint-plugin-bedrock -D

Usage

eslint.config.mjs

import ts from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import bedrockLinting from "@svdex/eslint-plugin-bedrock";

export default [
  {
    files: ["data/scripts/**/*.ts"],
    languageOptions: {
      parser: tsParser,
      ecmaVersion: "latest",
    },
    plugins: {
      ts,
      "bedrock-linting": bedrockLinting,
    },
    rules: {
      "bedrock-linting/name-selector": "error",
    },
  },
];
0.2.0

7 months ago

0.1.0

7 months ago