2.1.0 • Published 2 months ago

@akashic/eslint-config v2.1.0

Weekly downloads
60
License
MIT
Repository
github
Last release
2 months ago

eslint-config

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

使い方

インストール

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

npm install --save-dev @akashic/eslint-config @typescript-eslint/eslint-plugin eslint eslint-plugin-import eslint-plugin-jest

設定ファイルの書き方

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

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

module.exports = {
    root: true,
    extends: [
        "@akashic/eslint-config"
    ],
    parserOptions: {
        project: "tsconfig.json",
        sourceType: "module"
    }
}

実行方法

eslint -c .eslintrc.js src/**/*.ts --fix

ライセンス

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

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

2.1.0

2 months ago

2.0.0

7 months ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

3 years ago

0.1.2

3 years ago

0.1.1

4 years ago

0.1.0

4 years ago