1.0.7 • Published 4 years ago

eslint-config-litcharts v1.0.7

Weekly downloads
476
License
UNLICENSED
Repository
github
Last release
4 years ago

LitCharts ESLint Config

Installation

  1. Install the library: yarn add --dev eslint-config-litcharts
  2. Install dev dependencies: yarn add --dev eslint@^6.8 eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks@^2.5.0
  3. Add "extends": "eslint-config-litcharts" to the .eslintrc file, or "extends": "eslint-config-litcharts/react-native" for react native.

Development

Once you've made changes and want to test them locally, do the following steps. See the docs for more info.

  1. yarn link
  2. Then, in your project that wants to use your shareable config, type: yarn link eslint-config-litcharts
  3. Be sure to unlink in other projects when done via yarn unlink eslint-config-litcharts so the proper package from package.json is used.

Linting

The base linting rules come from airbnb's shared linting package.

React Native specific rules come from eslint-config-react-native.

Changing rules

To overwrite rules that you don't like, add the specific rule to rules/sharedRules for all configs or rules/nativeRules for React Native specific rules. Create a PR so we can discuss if we like semicolons or not.

Prettier

See prettier docs prettier.

  1. Install prettier on your word editor
  2. In package.json add a "prettier": "eslint-config-litcharts/prettier-config" line.

TODO

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago