Code Monkey home page Code Monkey logo

eslint-config's Introduction

npm (scoped) GitHub Tag Build Status License: MIT GitHub Last Commit Awesome Badges

Installation

To install the config use the following command:

yarn add @pascaliske/eslint-config --dev

For TypeScript projects you will also need the following peer dependencies:

yarn add eslint @typescript-eslint/{parser,eslint-plugin} --dev

For Angular projects you will also need the following peer dependencies:

yarn add eslint @typescript-eslint/{parser,eslint-plugin} @angular-eslint/{template-parser,eslint-plugin,eslint-plugin-template} --dev

Usage

There are three possible types of configurations available: base (only JS), typescript (JS + TS) and angular (JS + TS + Angular specifics). You can reference those by adding a suffix to the extends value in your config file (e.g. @pascaliske/eslint-config/angular). The base configuration will be used as default when the suffix is missing.

.eslintrc

{
  "root": true,
  "extends": "@pascaliske/eslint-config/base", // or typescript / angular
  "env": {
    "browser": true
  }
}

For usage in Node.js projects you can also enable the Node.js environment instead:

.eslintrc

{
  "root": true,
  "extends": "@pascaliske/eslint-config/base", // or typescript / angular
  "env": {
    "node": true
  }
}

For usage in TypeScript and Angular projects you have to use a JS based config file and explicitly set parser options with a tsconfig.json-file:

.eslintrc.js

module.exports = {
    root: true,
    extends: "@pascaliske/eslint-config/typescript", // or angular
    parserOptions: {
        project: `${__dirname}/tsconfig.json`,
        createDefaultProgram: true,
    },
    env: {
        node: true,
    },
}

For more information on environments visit the ESLint documentation.

License

MIT © 2022 Pascal Iske

eslint-config's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar github-actions[bot] avatar pascaliske avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar

eslint-config's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/labels.yml
  • actions/checkout v4@692973e3d937129bcbf40652eb9f2f61becf3332
  • crazy-max/ghaction-github-labeler v5
.github/workflows/publish.yml
  • actions/checkout v4@692973e3d937129bcbf40652eb9f2f61becf3332
  • actions/setup-node v4.0.2
  • ncipollo/release-action v1
.github/workflows/test.yml
  • actions/checkout v4@692973e3d937129bcbf40652eb9f2f61becf3332
  • actions/setup-node v4.0.2
npm
package.json
  • eslint-config-prettier ^9.0.0
  • @commitlint/cli ^19.0.0
  • @commitlint/config-conventional ^19.0.0
  • @pascaliske/prettier-config ^1.2.0
  • @pascaliske/tsconfig ^1.0.7
  • @rollup/plugin-terser ^0.4.0
  • @rollup/plugin-typescript ^11.1.2
  • @rstacruz/bump-cli ^2.0.1
  • @types/node ^20.4.2
  • @typescript-eslint/eslint-plugin ^7.0.0
  • @typescript-eslint/parser ^7.0.0
  • eslint ^9.0.0
  • husky ^9.0.7
  • lint-staged ^15.0.0
  • prettier ^3.0.0
  • rollup ^4.0.0
  • rollup-plugin-clear ^2.0.7
  • rollup-plugin-typescript2 ^0.36.0
  • standard-changelog ^6.0.0
  • typescript ^5.1.6
  • @typescript-eslint/eslint-plugin ^7.0.0
  • @typescript-eslint/parser ^7.0.0
  • eslint ^9.0.0
  • node >=8

  • Check this box to trigger a request for Renovate to run again on this repository

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.