GithubHelp home page GithubHelp logo

sulcata-eslint-config's Introduction

@sulcata/eslint-config

npm latest version npm weekly downloads GitHub GitHub Workflow Deployment Status GitHub Workflow Integration Status supported node versions

A shareable set of ESLint configurations for TypeScript, React, and more. Intended to be opinionated in practices, not style.

If you're looking for opinionated style, I highly recommend Prettier.

Install

npm install @sulcata/eslint-config

Sadly because of the way the configuration system currently works, you'll also need to install the following peer dependencies for now.

npm install eslint-plugin-jest eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks

Once ESLint starts rolling out the new configuration system, this package will be changed to bundle them transparently.

Usage

Writing your ESLint .eslintrc.js config file can be as simple as:

"use strict";

module.exports = {
  root: true,
  parserOptions: {
    tsconfigRootDir: __dirname,
    project: ["./tsconfig.json"],
  },
  extends: ["@sulcata/eslint-config"],
};

This package exports a number of shareable configs that can be imported into your configuration using the ESLint config "extends" key.

  • @sulcata/eslint-config The kitchen sink, most likely what you want for minimal configuration. Pre-configured using the overrides feature to match file extensions to the appropriate configs. Includes recommended, typescript, react, and jest. Requires tsconfigRootDir and project to be configured in parserOptions for type information.
  • @sulcata/eslint-config/recommended for general JavaScript linting.
  • @sulcata/eslint-config/typescript for TypeScript linting. Requires tsconfigRootDir and project to be configured in parserOptions for type information.
  • @sulcata/eslint-config/react for React apps.
  • @sulcata/eslint-config/jest for Jest test suites.

Issues

Raise an issue (or a PR) if you notice any styling related rules bubbling up.

GitHub Issues

License

MIT License

sulcata-eslint-config's People

Contributors

sulcata avatar

Watchers

 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.