From 0b3b2992c3a539c584db18de4d46fdc4c4d067bb Mon Sep 17 00:00:00 2001 From: Kevin Richter Date: Tue, 12 Mar 2019 15:13:48 +0100 Subject: [PATCH] More leniency during development --- package.json | 2 +- rules/es6/bestPractices.js | 2 +- rules/es6/stylisticIssues.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 5771be1..92db403 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mapcreator/eslint-config", - "version": "1.0.0", + "version": "1.0.1", "description": "MapCreator eslint configs", "main": "index.js", "repository": "git@github.com:MapCreatorEU/eslint-config.git", diff --git a/rules/es6/bestPractices.js b/rules/es6/bestPractices.js index 80b8d20..c962638 100644 --- a/rules/es6/bestPractices.js +++ b/rules/es6/bestPractices.js @@ -8,7 +8,7 @@ module.exports = { 'dot-location': ['error', 'property'], 'dot-notation': 'error', 'eqeqeq': 'error', - // 'no-alert': prod(), + 'no-alert': prod(), 'no-caller': prod(), 'no-else-return': 'error', 'no-eq-null': 'error', diff --git a/rules/es6/stylisticIssues.js b/rules/es6/stylisticIssues.js index 0c75265..c86941d 100644 --- a/rules/es6/stylisticIssues.js +++ b/rules/es6/stylisticIssues.js @@ -26,7 +26,7 @@ module.exports = { 'no-lonely-if': 'error', 'no-mixed-operators': 'error', 'no-multiple-empty-lines': [prod(), { max: 2, maxEOF: 1 }], - 'no-negated-condition': 'warn', // prod()? + 'no-negated-condition': prod(), 'no-nested-ternary': 'error', 'no-new-object': 'error', 'no-tabs': 'error', @@ -64,7 +64,7 @@ module.exports = { 'prefer-object-spread': prod(), 'quote-props': [prod(), 'consistent-as-needed'], 'quotes': [prod(), 'single'], - 'semi': ['error', 'always'], + 'semi': [prod(), 'always'], 'semi-spacing': prod(), 'semi-style': [prod(), 'last'], 'space-before-blocks': [prod(), 'always'], @@ -88,6 +88,6 @@ module.exports = { 'prefer-spread': 'error', 'prefer-template': prod(), 'rest-spread-spacing': ['error', 'never'], - 'template-curly-spacing': ['error', 'never'], + 'template-curly-spacing': [prod(), 'never'], }, };