Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@akashic/eslint-config

akashic-games5.5kMIT3.0.0

akashic-gamesリポジトリで共通的に利用するeslintのプリセットです。

readme

eslint-config

akashic-games リポジトリで共通的に利用する eslint プリセットです。 使用側は TypeScript が必要となります。

使い方

インストール

package.json の devDependencies に下記が必要です。

npm install --save-dev @akashic/eslint-config

設定ファイルの書き方

プロジェクトのルートディレクトリに eslint.config.js を配置します。

eslint.config.js に以下のように記載します。

const eslintConfig = require("@akashic/eslint-config");

module.exports = [
    ...eslintConfig,
    {
        files: ["**/*.ts"],
        languageOptions: {
            sourceType: "module",
            parserOptions: {
                project: "tsconfig.json",
            }
        }
    }
];

実行方法

eslint src/**/*.ts --fix

ライセンス

本リポジトリは MIT License の元で公開されています。 詳しくは LICENSE をご覧ください。

ただし、画像ファイルおよび音声ファイルは CC BY 2.1 JP の元で公開されています。

changelog

CHANGELOG

3.0.0

  • eslint 関連のパッケージを最新版(eslint v9)に更新

2.1.0

  • @typescript-eslint/no-floating-promises をルールに追加

2.0.0

  • @typescript-eslint/parser を 6 系に更新
  • @typescript-eslint/eslint-plugin を 6 系に更新

1.1.1

  • eslint 関連のパッケージを最新版に更新(TypeScript@4.8対応)

1.1.0

  • @typescript-eslint/consistent-type-imports, prefer-const をルールに追加

1.0.0

  • eslint 関連のパッケージを最新版(eslint v8)に更新
  • lint のテストを追加

0.1.2

  • eslint関連のパッケージを最新版に更新
  • 新たに eslint-plugin-jest に依存

0.1.1

  • typescript-eslint@3 系に追従

0.1.0

  • 初期リリース