-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the Chart.js shared ESLint config (#5112)
An ESLint shareable config has been created (from this repository) in the attempt to homogenize Chart.js hosted projects and plugins style. Rename `.eslintrc` files to `.eslintrc.yml` since the name has been deprecated. Fix the CC badge (maintainability) and disable CodeClimate ESLint plugin because it doesn't support custom shareable config but also because it already executes relevant checks as part of the regular process.
- Loading branch information
1 parent
33c7d94
commit 9ddb449
Showing
6 changed files
with
20 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,19 @@ | ||
engines: | ||
version: "2" | ||
plugins: | ||
duplication: | ||
enabled: true | ||
config: | ||
languages: | ||
- javascript | ||
eslint: | ||
enabled: true | ||
channel: "eslint-4" | ||
- javascript | ||
fixme: | ||
enabled: true | ||
ratings: | ||
paths: | ||
- "src/**/*.js" | ||
exclude_paths: | ||
- '.github/' | ||
- 'dist/' | ||
- 'test/' | ||
- 'docs/' | ||
- 'samples/' | ||
- 'scripts/' | ||
- '**.md' | ||
- '**.json' | ||
- 'gulpfile.js' | ||
- 'karma.conf.js' | ||
exclude_patterns: | ||
- "dist/" | ||
- "docs/" | ||
- "samples/" | ||
- "scripts/" | ||
- "test/" | ||
- "*.js" | ||
- "*.json" | ||
- "*.md" | ||
- ".*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
extends: chartjs | ||
|
||
env: | ||
browser: true | ||
node: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.