Miss any of our Open RFC calls?Watch the recordings here! »

eslint-config-fontoxml

2.1.0 • Public • Published

eslint-config-fontoxml

ESLint configuration for FontoXML platform and projects.

How to use

Install eslint and the fontoxml configuration package:

npm i -g eslint eslint-config-fontoxml eslint-plugin-react

Create an .eslintrc file extending the FontoXML configuration somewhere in your project folder or in an ancestor:

{
    "extends": [ "fontoxml" ]
}

Optional: use the Prettier code formatter

In order to use Prettier to automatically format your code we provide an optional config. Note that this currently only formats React code (all .jsx.js files), regular .js files won't be formatted.

npm i -g babel-eslint eslint-config-prettier eslint-plugin-prettier

Extend the Prettier configuration in the existing .eslintrc file (created in the previous step), so that it looks like the following:

{
    "extends": [ "fontoxml", "fontoxml/prettier" ]
}

Install

npm i eslint-config-fontoxml

DownloadsWeekly Downloads

3

Version

2.1.0

License

MIT

Unpacked Size

8.17 kB

Total Files

4

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar