Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Code Climate Engine for ESLint

License

NotificationsYou must be signed in to change notification settings

codeclimate/codeclimate-eslint

 
 

Repository files navigation

Code Climate

codeclimate-eslint is a Code Climate engine that wrapsESLint. You can runit on your command line using the Code Climate CLI, or on our hosted analysisplatform.

ESLint is a tool for identifying and reporting on patterns found inECMAScript/JavaScript code. It can be configured using aconfigurationfile.

Channels

There are a few major versions of ESLint out there. The latest major versionis 5. This engine provides a few channels for major versions of ESLint.

This branch is for theeslint-5 channel provides experimental ESLint 5support.

For stable ESLint 3 please seemaster branch.

Installation

  1. If you haven't already,install the Code Climate CLI

  2. Runcodeclimate engines:enable eslint. This command both installs theengine and enables it in your.codeclimate.yml file

  3. You're ready to analyze! Browse into your project's folder and runcodeclimate analyze

Configuration

ignore_warnings

By default, this engine will emit both ESLint errors and warnings as CodeClimate issues. If you prefer, you can ignore warning-level violations bysetting theignore_warnings configuration option:

eslint:enabled:trueconfig:ignore_warnings:true

extensions

If you're using a plugin likeeslint-plugin-json oreslint-plugin-html, youwill want to set this value to make sure the appropriate files are included:

eslint:enabled:trueconfig:extensions:    -.js    -.html

sanitize_batch

By default, this engine will skip files that appear to be minified (average linelength over 100). This feature can be disabled to include all files foranalysis.

eslint:enabled:trueconfig:sanitize_batch:false

Plugins and configs

Engines run in containers and have no access to internet. Because of that it'simpossible to install any packages including ESLint configs and plugins.However, many plugins are popular in the community so a few of them areavailable in the container.

Configs

  • eslint-config-airbnb
  • eslint-config-airbnb-base
  • eslint-config-angular
  • eslint-config-dbk
  • eslint-config-drupal
  • eslint-config-ember
  • eslint-config-es5
  • eslint-config-es6
  • eslint-config-google
  • eslint-config-hapi
  • eslint-config-jquery
  • eslint-config-loopback
  • eslint-config-nightmare-mode
  • eslint-config-nodesecurity
  • eslint-config-prettier
  • eslint-config-react-app
  • eslint-config-signavio
  • eslint-config-signavio-test
  • eslint-config-simplifield
  • eslint-config-standard
  • eslint-config-standard
  • eslint-config-standard-jsx
  • eslint-config-standard-react
  • eslint-config-standard-with-typescript
  • eslint-config-strongloop
  • eslint-config-vue
  • eslint-config-will-robinson
  • eslint-config-xo
  • eslint-config-xo-react
  • eslint-config-xo-space

Plugins

  • eslint-plugin-angular
  • eslint-plugin-babel
  • eslint-plugin-backbone
  • eslint-plugin-chai-friendly
  • eslint-plugin-cypress
  • eslint-plugin-drupal
  • eslint-plugin-ember
  • eslint-plugin-es5
  • eslint-plugin-eslint-comments
  • eslint-plugin-flowtype
  • eslint-plugin-html
  • eslint-plugin-import
  • eslint-plugin-inferno
  • eslint-plugin-jasmine
  • eslint-plugin-jest
  • eslint-plugin-jquery
  • eslint-plugin-jsdoc
  • eslint-plugin-jsdoc
  • eslint-plugin-json
  • eslint-plugin-jsx-a11y
  • eslint-plugin-lodash
  • eslint-plugin-lodash-fp
  • eslint-plugin-meteor
  • eslint-plugin-mocha
  • eslint-plugin-mongodb
  • eslint-plugin-no-only-tests
  • eslint-plugin-no-unsafe-innerhtml
  • eslint-plugin-node
  • eslint-plugin-prettier
  • eslint-plugin-promise
  • eslint-plugin-ramda
  • eslint-plugin-react
  • eslint-plugin-react-native
  • eslint-plugin-security
  • eslint-plugin-sorting
  • eslint-plugin-standard
  • eslint-plugin-testing-library
  • eslint-plugin-vue
  • eslint-plugin-vue-split-by-script-lang
  • eslint-plugin-xogroup
  • eslint-plugin-formatjs
Plugins Major Version Bump

Note that some plugins have been bumped one or more major versions up. For thosethe major version is specified. You may need to update your configuration toproperly use the plugins.

  • babel-eslint v10
  • eslint-config-react-app v3
  • eslint-config-standard v12
  • eslint-config-standard-jsx v6
  • eslint-config-standard-react v7
  • eslint-plugin-html v4
  • eslint-plugin-inferno v7
  • eslint-plugin-lodash v3
  • eslint-plugin-meteor v5
  • eslint-plugin-mocha v5
  • eslint-plugin-mongodb v1
  • eslint-plugin-node v7
  • eslint-plugin-prettier v3
  • eslint-plugin-promise v4
  • eslint-plugin-react v7
  • eslint-plugin-standard v4

Temporarily unavailable plugins and configs

Not all packages have been updated to support ESLint 5 yet.They were available in thelatest (eslint-3) channel but are temporarilyremoved fromeslint-5 channel.

  • @br/eslint-plugin-laws-of-the-game
  • eslint-config-apiconnect
  • eslint-config-secure
  • eslint-config-semistandard
  • eslint-config-strongloop
  • eslint-plugin-babel
  • eslint-plugin-ejs
  • eslint-plugin-ember
  • eslint-plugin-ember-suave
  • eslint-plugin-filenames
  • eslint-plugin-hapi
  • eslint-plugin-immutable
  • eslint-plugin-import-order
  • eslint-plugin-lodash
  • eslint-plugin-mongodb
  • eslint-plugin-react-intl
  • eslint-plugin-security
  • eslint-plugin-vue
  • eslint-plugin-xogroup

Need help?

For help with ESLint,check out their documentation.

If you're running into a Code Climate issue, first look over this project'sGitHub Issues, as your question may have already been covered. If not,go ahead and open a support ticket with us.


[8]ページ先頭

©2009-2025 Movatter.jp