@lugia/eslint-config-mega

1.1.1 • Public • Published

@lugia/eslint-config-mega

ESLint configuration used by Lugia.

React, JSX, ES6, TypeScript and Flow syntax support

Breaking changes in ESLint v6 Plugins and shareable configs are no longer affected by ESLint's location. https://github.com/eslint/rfcs/pull/5

Inspired by:

Adding support for the following:

Usage

  1. Install dependencies
yarn add --dev eslint @lugia/eslint-config-mega prettier
  1. Extend the config
// .eslintrc.json
{
  "extends": "@lugia/mega"
}

Use eslint-formatter-pretty

Pretty formatter for ESLint

yarn add --dev eslint-formatter-pretty

Use TypeScript

yarn add typescript

Lugia Mega

Which includes it by default.

ESLint CLI

eslint --format=pretty file.js

eslint-loader (webpack)

module.exports = {
  module: {
    rules: [
      {
        enforce: 'pre',
        test: /\.(js|ts)x?$/,
        exclude: /node_modules/,
        loader: 'eslint-loader',
        options: {
          formatter: require('eslint-formatter-pretty'),
        },
      },
    ],
  },
};

/@lugia/eslint-config-mega/

    Package Sidebar

    Install

    npm i @lugia/eslint-config-mega

    Weekly Downloads

    0

    Version

    1.1.1

    License

    Apache-2.0

    Unpacked Size

    7.51 kB

    Total Files

    3

    Last publish

    Collaborators

    • wangcuixia
    • szfeng
    • grguang
    • sleepyaries
    • yssinstitute
    • zenjava