GithubHelp home page GithubHelp logo

eslint-config's Introduction

@envsa/eslint-config

Features

Installation

Install the package with

npm i -D @envsa/eslint-config

Then install the peerDependency packages.

npm i -D eslint@^7.16.0 prettier@^2.1.2 stylelint@^13.8.0

The correct versions of each peerDependency package are listed by the command:

npm info "@envsa/eslint-config@latest" peerDependencies

Or, if using npm 5+, use this shortcut:

npx install-peerdeps --dev @envsa/eslint-config

Usage

This package will create the following 3 initial config files during installation:

  • eslint.config.js
  • prettier.config.js
  • stylelint.config.js

If the config file exists already, it won't create/replace the file.

If you want to config manually, please add the config to either your package.json:

{
  "eslintConfig": {
    "extends": "@envsa"
  }
}

to your .eslintrc:

{
  "extends": "@envsa"
}

or .eslintrc.js:

module.exports = {
  extends: "@envsa",
};

Prettier Config

This is how you use or extend the @envsa/eslint-config prettier config in your app:

// prettier.config.js
module.exports = require("@envsa/eslint-config/prettier.config");

Assumptions

This ESLint configuration comes with some fundamental assumptions:

  • node environment
  • browser and/or node environment
  • parser: babel (used babel-eslint parser)

Even though I made some assumptions, you can easily overwrite, extend and unset rules and any other setting in your custom eslint config.

eslint-config's People

Contributors

rellafella avatar minalove avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.