Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Add ESLint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Snape committed Oct 12, 2015
1 parent 1818253 commit 19655c2
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Midas Server. Copyright Kitware SAS. Licensed under the Apache License 2.0.

**/*.min.js
**/jqplot*.js
**/jquery*.js
bower_components/
library/SwaggerUI/
modules/{pvw,visualize}/public/js/jquery/colorpicker.js
modules/statistics/public/js/googlemaps/*.js
modules/visualize/public/js/{paraview,webgl}/*.js
node_modules/
vendor/
43 changes: 43 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#=============================================================================
# Midas Server
# Copyright Kitware SAS, 26 rue Louis Guérin, 69100 Villeurbanne, France.
# All rights reserved.
# For more information visit http://www.kitware.com/.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0.txt
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#=============================================================================

---
rules:
indent:
- 2
- 4
quotes:
- 2
- single
linebreak-style:
- 2
- unix
semi:
- 2
- always

no-unused-vars:
- 2
- argsIgnorePattern: ^_

env:
browser: true
jquery: true

extends: 'eslint:recommended'

0 comments on commit 19655c2

Please sign in to comment.