Coder Social home page Coder Social logo

eslint-config's Introduction

@leemillward/eslint-config

npm version Build Status

This package extends the eslint-config-airbnb-base ruleset with our own set of JS linting rules. The structure is based on that package and also @justeat/eslint-config/fozzie-config-fozzle.

Many thanks to the work that the Airbnb team have put in on creating their template for extension rules โ€“ we have liberally borrowed from their structure and documentation in creating this ruleset.

Usage

@leemillward/eslint-config

Our default export contains all of our base ESLint rules, including ECMAScript 6+. It requires eslint, eslint-plugin-import and eslint-plugin-vue.

  1. Install the correct versions of each package, which are listed by the command:
npm info "@leemillward/eslint-config@latest" peerDependencies

Linux/OSX users can simply run

(
  export PKG=@leemillward/eslint-config;
  npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)

Which produces and runs a command like:

  npm install --save-dev @leemillward/eslint-config eslint@^#.#.# eslint-plugin-import@^#.#.#

Windows users can either install all the peer dependencies manually, or use the install-peerdeps cli tool.

npm install -g install-peerdeps
install-peerdeps --dev @leemillward/eslint-config

The cli will produce and run a command like:

npm install --save-dev @leemillward/eslint-config eslint@^#.#.# eslint-plugin-import@^#.#.#
  1. Add "extends": "@leemillward/eslint-config" to your .eslintrc

Testing

You can run tests on this ruleset with npm test.

You can make sure this module lints with itself using npm run lint.

eslint-config's People

Contributors

dependabot[bot] avatar leemillward avatar renovate-bot avatar renovate[bot] avatar

Watchers

 avatar

Forkers

thedrawingroom

eslint-config's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (github>whitesource/merge-confidence:beta)

Dependency Dashboard

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

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/combine-prs.yml
  • actions/github-script v7
.github/workflows/test.yml
  • actions/checkout v4
  • actions/setup-node v4
npm
package.json
  • confusing-browser-globals ^1.0.11
  • eslint-config-airbnb-base ^15.0.0
  • eslint-plugin-import ^2.25.4
  • eslint-plugin-vue ^9.0.0
  • @babel/runtime 7.24.5
  • babel-preset-airbnb 5.0.0
  • babel-tape-runner 3.0.0
  • danger 11.3.1
  • eslint 8.57.0
  • eslint-find-rules 4.1.0
  • in-publish 2.0.1
  • safe-publish-latest 2.0.0
  • tape 5.7.5
  • eslint ^7.32.0 || ^8.0.0
  • node >= 10
travis
.travis.yml
  • node 10
  • node 12
  • node 14

  • 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.