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

Commit 19655c2

Browse files
author
Jamie Snape
committed
Add ESLint configuration
1 parent 1818253 commit 19655c2

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

.eslintignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Midas Server. Copyright Kitware SAS. Licensed under the Apache License 2.0.
2+
3+
**/*.min.js
4+
**/jqplot*.js
5+
**/jquery*.js
6+
bower_components/
7+
library/SwaggerUI/
8+
modules/{pvw,visualize}/public/js/jquery/colorpicker.js
9+
modules/statistics/public/js/googlemaps/*.js
10+
modules/visualize/public/js/{paraview,webgl}/*.js
11+
node_modules/
12+
vendor/

.eslintrc

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#=============================================================================
2+
# Midas Server
3+
# Copyright Kitware SAS, 26 rue Louis Guérin, 69100 Villeurbanne, France.
4+
# All rights reserved.
5+
# For more information visit http://www.kitware.com/.
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0.txt
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
#=============================================================================
19+
20+
---
21+
rules:
22+
indent:
23+
- 2
24+
- 4
25+
quotes:
26+
- 2
27+
- single
28+
linebreak-style:
29+
- 2
30+
- unix
31+
semi:
32+
- 2
33+
- always
34+
35+
no-unused-vars:
36+
- 2
37+
- argsIgnorePattern: ^_
38+
39+
env:
40+
browser: true
41+
jquery: true
42+
43+
extends: 'eslint:recommended'

0 commit comments

Comments
 (0)