Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2017-09-28 14:21:35 +0300
committerMichal Čihař <michal@cihar.com>2017-09-28 14:21:35 +0300
commit904120952e52e3638fc4427b4b9cd97669be8933 (patch)
tree9d1ae7743c798ccadde8d0f121ad1e26172a2788 /.jshintrc
parent342328f76a12bae22ac7fa3e6d80fe7397e26c3b (diff)
Bring back jshint configuration
It was removed in 83df3be3295325a42a487afcf4b88e8b84de7a52, but we're using it on Jenkins (and build.xml). So it should stay as long as it's used there. Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to '.jshintrc')
-rw-r--r--.jshintrc22
1 files changed, 22 insertions, 0 deletions
diff --git a/.jshintrc b/.jshintrc
new file mode 100644
index 0000000000..26e5b57d8a
--- /dev/null
+++ b/.jshintrc
@@ -0,0 +1,22 @@
+{
+ // Show more errors
+ "maxerr" : 1000,
+
+ // Globals
+ "jquery" : true,
+
+ // Stricter checking
+ "curly" : true,
+ "immed" : true,
+ "indent" : 4,
+ "latedef" : true,
+ "noarg" : true,
+ "noempty" : true,
+ "unused" : false,
+ "trailing" : true,
+
+ // Relaxing rules
+ "sub" : false,
+ "funcscope" : false,
+ "laxbreak" : false
+}