ESLint config for Front End.


Keywords
eslint, eslint-config, front-end, eslint-config-fe
License
MIT
Install
npm install eslint-config-fe@1.3.2

Documentation

eslint-config-fe

npm package

Note: ESLint config for Front End.

NPM version NPM Downloads

Installation

npm install --save-dev eslint @babel/core @babel/eslint-parser @babel/eslint-plugin eslint-config-fe

Usage

For base JS

All rules .eslintrc

{
  extends: ["fe"]
}

learn more

Less rules .eslintrc

{
  extends: ["fe/less"]
}

learn more

For React

npm install --save-dev @babel/preset-react eslint-plugin-react eslint-plugin-react-hooks

babel.config.js

module.exports = {
  presets: ['@babel/preset-react']
};

.eslintrc

{
  extends: [
    "fe",
    "fe/react"
  ]
}

learn more