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
This repository was archived by the owner on Sep 2, 2023. It is now read-only.

Commite5f1f5f

Browse files
committed
Merge pull request#1 from wltsmrz/master
Update jshintrc
2 parentsfee1853 +c00bc1d commite5f1f5f

File tree

1 file changed

+32
-8
lines changed

1 file changed

+32
-8
lines changed

‎linters/jshintrc‎

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,14 @@
2020

2121
// Force all variable names to use either camelCase style or UPPER_CASE
2222
// with underscores.
23-
"camelcase":true,
23+
"camelcase":false,
2424

2525
// Prohibit use of == and != in favor of === and !==.
2626
"eqeqeq": true,
2727

2828
// Suppress warnings about == null comparisons.
2929
"eqnull": true,
3030

31-
// Enforce tab width of 2 spaces.
32-
"indent": 2,
33-
3431
// Prohibit use of a variable before it is defined.
3532
"latedef": true,
3633

@@ -49,9 +46,36 @@
4946
// Warn when variables are defined but never used.
5047
"unused": true,
5148

52-
// Enforce line length to 80 characters
53-
"maxlen": 80,
49+
// This option requires you to always put curly braces around blocks in loops and conditionals.
50+
"curly": true,
51+
52+
// This options prohibits overwriting prototypes of native objects such as Array, Date and so on.
53+
"freeze": true,
54+
55+
// This option requires you to capitalize names of constructor functions.
56+
"newcap": true,
57+
58+
// This option warns about "non-breaking whitespace" characters.
59+
"nonbsp": true,
60+
61+
// This option suppresses warnings about the use of assignments in cases where comparisons are expected.
62+
"boss": true,
63+
64+
// This option suppresses most of the warnings about possibly unsafe line breakings in your code.
65+
"laxbreak": true,
66+
67+
// This option lets you set the max number of formal parameters allowed per function.
68+
"maxparams": 4,
69+
70+
// This option lets you control how nested do you want your blocks to be.
71+
"maxdepth": 3,
72+
73+
// Suppress warnings about unnecessary semicolons
74+
"-W032": true,
75+
76+
// Suppress warnings about empty blocks
77+
"-W035": true,
5478

55-
//Enforce placing 'use strict' at the top function scope
56-
"strict": true
79+
//Suppress warnings about redefining parameters
80+
"-W004": true
5781
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp