eslint-config-lifion-web
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

eslint-config-lifion-web

npm version Contributor Covenant

This package provides Lifion's base JS .eslintrc for the Web as an extensible shared config.

Usage

Install the module and its peer dependencies:

npm install eslint-config-lifion-web eslint@8 prettier@2 -D

Make sure ESLint uses this module by adding "extends" to your .eslintrc file:

{
  "extends": "lifion-web"
}

Configure Prettier by adding this to your .prettierrc file:

{
  "endOfLine": "auto",
  "printWidth": 100,
  "singleQuote": true,
  "trailingComma": "none"
}

You might want to add these npm scripts to your package.json file:

{
  "scripts": {
    "eslint": "eslint . --ext .js,.json,.md,.ts --ignore-pattern='!.*.*'",
    "prettier": "prettier --write '**/*.{hbs,js,json,md,ts}' '.*rc' '!dist/**/*.js'"
  }
}

License

Apache-2.0

Package Sidebar

Install

npm i eslint-config-lifion-web

Weekly Downloads

10

Version

1.0.0

License

Apache-2.0

Unpacked Size

23.3 kB

Total Files

5

Last publish

Collaborators

  • lifion.opensource