0.4.0 • Published 2 years ago

eslint-config-lark v0.4.0

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

ESLINT-CONFIG-LARK

主要 fork 自 eslint-config-welly,做了一些改动,适应普通、react、node 项目

Installation

requires eslint and typescript.

Install the correct version of each package, which are listed by the command:

npm info "eslint-config-lark@latest" peerDependencies

If using npm 5+, use this shortcut:

npx install-peerdeps --dev eslint-config-lark

Or install each package by yourself:

npm install --save-dev eslint-config-lark eslint@^x.x.x typescript@^x.x.x
# or
yarn add --dev eslint-config-lark eslint@^x.x.x typescript@^x.x.x

Usage

Add the extends to your .eslintrc.js:

module.exports = {
  extends: 'lark',
  rules: {
    // your overrides
  }
}

Eliminate Prettier Conflicts for You

Prettier is a great code formatter, I highly recommend you guys give it a try. This package built-ins the eslint-config-prettier for you, all you need to do is setup the Prettier CLI to use it.

// package.json

"format": "prettier --check ."
// or
"format": "prettier --write ."

What's Inside?

This configuration contains the following cool packages.

PackageDescriptionAuto Enabled
typescript-eslintMonorepo for all the tooling which enables ESLint to support TypeScript.
eslint-config-airbnb-baseThis package provides Airbnb's .eslintrc as an extensible shared config.
eslint-plugin-importESLint plugin with rules that help validate proper imports.
eslint-plugin-promiseEnforce best practices for JavaScript promises.
eslint-plugin-compatLint the browser compatibility of your code.
eslint-plugin-jestESLint plugin for Jest.
eslint-plugin-reactReact specific linting rules for ESLint.
eslint-plugin-react-hooksThis ESLint plugin enforces the Rules of Hooks.
eslint-plugin-jest-domESLint rules for use with jest-dom.
eslint-plugin-testing-libraryESLint plugin for Testing Library.
eslint-config-prettierTurns off all rules that are unnecessary or might conflict with Prettier.
@emotion/eslint-pluginESLint rules for emotion.

Thanks

eslint-config-welly