File tree Expand file tree Collapse file tree 7 files changed +58
-26
lines changed Expand file tree Collapse file tree 7 files changed +58
-26
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "plugins": [
3
- "no-tabs",
4
- "react"
5
- ],
6
2
"rules": {
3
+ "indent": [2, 2], // check 2 space indentation
7
4
"no-mixed-spaces-and-tabs": [2],
8
5
"quotes": [2, "double"],
9
6
"semi": [1, "always"],
10
7
11
- "no-tabs/at-all": [2],
8
+ // disabled rule which enforce unix or windows line breaks
9
+ "linebreak-style": [0],
12
10
13
- "react/display-name": 2,
14
- "react/prop-types ": 0 ,
11
+ // disabled comma-dangle is safe for our use case
12
+ "comma-dangle ": [0] ,
15
13
16
- "indent": [0, 2],
17
- "linebreak-style": [0],
14
+ // disabled eqeqeq and no-use-before-define are safe if you use them correctly
18
15
"eqeqeq": [0],
19
- "new-cap": [0],
20
- "no-new": [0],
21
- "comma-dangle": [0],
22
- "no-use-before-define": [0]
16
+ "no-use-before-define": [0],
23
17
},
24
18
"env": {
25
- "es6": true,
26
- "browser": true,
27
- "amd": true
19
+ "es6": true
28
20
},
29
21
"globals": {
30
- "define": true,
31
- "require": true,
32
- "requirejs": true,
33
-
34
- "Str": true,
35
- "Locale": true,
36
- "Options": true
37
22
}
38
23
}
Original file line number Diff line number Diff line change
1
+ // extends common eslintrc config with "javascript running in a content context" specific configs
2
+ {
3
+ "extends": "../.eslintrc",
4
+ "plugins": [
5
+ // prevents tab whitespace when 'indent' rule is disabled
6
+ "no-tabs",
7
+ "react"
8
+ ],
9
+ "env": {
10
+ // enable browser & amd conventions
11
+ "browser": true,
12
+ "amd": true
13
+ },
14
+ "rules": {
15
+ // disabled due to conflicts with special indentation in requirejs modules
16
+ "indent": 0,
17
+ // prevents any usage of tab whitespaces
18
+ "no-tabs/at-all": [2],
19
+
20
+ // force definition of displayName on React components
21
+ "react/display-name": 2,
22
+
23
+ // TODO: force propTypes on React Components
24
+ "react/prop-types": 0,
25
+
26
+ // disabled due to conflicts with capitalized React components names
27
+ "new-cap": [0],
28
+ },
29
+ "globals": {
30
+ // firebug.sdk globals
31
+ "Str": true,
32
+ "Locale": true,
33
+ "Options": true
34
+ }
35
+ }
Original file line number Diff line number Diff line change 1
1
/* See license.txt for terms of usage */
2
2
3
+ /* globals requirejs */
4
+
3
5
// RequireJS configuration
4
6
require . config ( {
5
7
baseUrl : "." ,
Original file line number Diff line number Diff line change @@ -156,9 +156,12 @@ theApp = React.render(MainTabbedArea({
156
156
157
157
// Helper modules for handling application events.
158
158
packetsStore = new PacketsStore ( window , theApp ) ;
159
+
160
+ /* eslint-disable no-new */
159
161
new ActorsStore ( window , theApp ) ;
160
162
new Resizer ( window , theApp ) ;
161
163
new Search ( window , theApp ) ;
164
+ /* eslint-enable */
162
165
163
166
// Send notification about initialization being done.
164
167
postChromeMessage ( "initialized" ) ;
Original file line number Diff line number Diff line change
1
+ // extends data eslintrc config with karma tests specific configs
2
+ {
3
+ "extends": "../data/.eslintrc",
4
+ "env": {},
5
+ "rules": {},
6
+ "globals": {}
7
+ }
Original file line number Diff line number Diff line change @@ -105,14 +105,14 @@ const InspectorService =
105
105
then ( ( { registrar, front} ) => {
106
106
this . globalRegistrar = registrar ;
107
107
return front ;
108
- } ) ;
108
+ } ) ;
109
109
110
110
// Register as tab actor.
111
111
let tab = Rdp . registerTabActor ( client , config ) .
112
112
then ( ( { registrar, front} ) => {
113
113
this . tabRegistrar = registrar ;
114
114
return front ;
115
- } ) ;
115
+ } ) ;
116
116
117
117
// Wait till both registrations are done.
118
118
all ( [ global , tab ] ) . then ( results => {
Original file line number Diff line number Diff line change 27
27
"jpm-tests" : " jpm test" ,
28
28
"travis-ci" : " npm run karma-coverage && npm run lint" ,
29
29
"lint-content" : " eslint data/inspector && eslint karma-tests/" ,
30
- "lint-addon" : " eslint --env node lib" ,
30
+ "lint-addon" : " eslint lib" ,
31
31
"lint" : " npm run lint-content && npm run lint-addon"
32
32
},
33
33
"engines" : {
You can’t perform that action at this time.
0 commit comments