MDL-59761 eslint: Upgrade to v4.4.1

Including adding some new default rules.
This commit is contained in:
Dan Poltawski 2017-08-08 11:21:45 +01:00
parent b3cfb01316
commit 9702503f6b
3 changed files with 657 additions and 291 deletions

View File

@ -16,6 +16,7 @@
// === Possible Errors ===
'comma-dangle': 'off',
'no-compare-neg-zero': 'error',
'no-cond-assign': 'error',
'no-console': 'error',
'no-constant-condition': 'error',
@ -106,6 +107,7 @@
'block-spacing': 'warn',
'brace-style': ['warn', '1tbs'],
'camelcase': 'warn',
'capitalized-comments': ['warn', 'always', { 'ignoreConsecutiveComments': true }],
'comma-spacing': ['warn', { 'before': false, 'after': true }],
'comma-style': ['warn', 'last'],
'computed-property-spacing': 'error',

942
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff

View File

@ -4,14 +4,14 @@
"description": "Moodle",
"devDependencies": {
"async": "1.5.2",
"eslint": "3.7.1",
"eslint": "4.4.1",
"eslint-plugin-promise": "3.5.0",
"gherkin-lint": "1.1.3",
"grunt": "1.0.1",
"grunt-contrib-less": "1.3.0",
"grunt-contrib-uglify": "1.0.1",
"grunt-contrib-watch": "1.0.0",
"grunt-eslint": "19.0.0",
"grunt-eslint": "20.0.0",
"grunt-stylelint": "0.6.0",
"semver": "5.3.0",
"shifter": "0.5.0",