forked from mozilla/bedrock
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ESLint to consume @mozilla-protocol/eslint-config (Fixes mozil…
- Loading branch information
1 parent
a109432
commit 9390441
Showing
64 changed files
with
631 additions
and
597 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,36 @@ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"jquery": true, | ||
"jasmine": true | ||
env: { | ||
'jquery': true, | ||
'jasmine': true | ||
}, | ||
"extends": "eslint:recommended", | ||
"rules": { | ||
"no-global-assign": 2, | ||
"indent": [ | ||
2, | ||
4 | ||
], | ||
"linebreak-style": [ | ||
2, | ||
"unix" | ||
], | ||
"quotes": [ | ||
2, | ||
"single" | ||
], | ||
"semi": [ | ||
2, | ||
"always" | ||
], | ||
"curly": [ | ||
2, | ||
"all" | ||
], | ||
"camelcase": [ | ||
2, | ||
{ | ||
"properties": "always" | ||
} | ||
], | ||
"eqeqeq": [ | ||
2, | ||
"smart" | ||
], | ||
"one-var-declaration-per-line": [ | ||
2, | ||
"always" | ||
], | ||
"new-cap": 2 | ||
extends: '@mozilla-protocol/eslint-config', | ||
rules: { | ||
'no-useless-escape': 1, | ||
}, | ||
"globals": { | ||
"Mozilla": true, | ||
"Mzp": true, | ||
"site": true | ||
/** | ||
* Provide a set of overrides for `gulpfile.js` in the root directory. | ||
* Ideally we want to extend @mozilla-protocol/eslint-config/index-node, | ||
* however ESLint does not currently allow extends inside glob overrides. | ||
* (see https://github.com/eslint/eslint/issues/8813) | ||
* */ | ||
overrides: [ | ||
{ | ||
files: 'gulpfile.js', | ||
env: { | ||
'commonjs': true, | ||
'node': true, | ||
'es6': true | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 8 | ||
}, | ||
rules: { | ||
'strict': ['error', 'global'], | ||
} | ||
} | ||
], | ||
globals: { | ||
'Mozilla': true, | ||
'site': true | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.