Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
style: 💄 comma-dangle update to eslint (to match prettier)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeFitz committed Feb 28, 2021
1 parent f5880b7 commit 895b7c7
Show file tree
Hide file tree
Showing 22 changed files with 151 additions and 151 deletions.
134 changes: 67 additions & 67 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
env: {
browser: true,
es6: true,
node: true
node: true,
},
extends: ['prettier'],
parser: '@babel/eslint-parser',
Expand All @@ -13,11 +13,11 @@ module.exports = {
experimentalObjectRestSpread: true,
globalReturn: false,
impliedStrict: true,
jsx: true
jsx: true,
},
ecmaVersion: 2017,
requireConfigFile: false,
sourceType: 'module'
sourceType: 'module',
},
plugins: [
'no-use-extend-native',
Expand All @@ -26,7 +26,7 @@ module.exports = {
'jsdoc',
'promise',
'filenames',
'unicorn'
'unicorn',
],
rules: {
'accessor-pairs': 2,
Expand All @@ -40,8 +40,8 @@ module.exports = {
2,
{
after: true,
before: true
}
before: true,
},
],
'babel/new-cap': 0,
'babel/no-invalid-this': 2,
Expand All @@ -52,20 +52,20 @@ module.exports = {
2,
'1tbs',
{
allowSingleLine: false
}
allowSingleLine: false,
},
],
'callback-return': 2,
camelcase: 0,
'capitalized-comments': 0,
'class-methods-use-this': 2,
'comma-dangle': [2, 'never'],
'comma-dangle': [2, 'always-multiline'],
'comma-spacing': [
2,
{
after: true,
before: false
}
before: false,
},
],
'comma-style': [2, 'last'],
complexity: [1, 10],
Expand All @@ -83,7 +83,7 @@ module.exports = {
'filenames/match-regex': [
2,
'^[A-Z]?[a-z]+(?:[A-Z][a-z]+)*(\\.[a-z]+)*$',
false
false,
],
'filenames/no-index': 0,
'for-direction': 2,
Expand All @@ -95,8 +95,8 @@ module.exports = {
2,
{
after: false,
before: true
}
before: true,
},
],
'global-require': 2,
'guard-for-in': 2,
Expand All @@ -106,25 +106,25 @@ module.exports = {
{
exceptions: ['P', 'R', '$', '_'],
max: 50,
min: 2
}
min: 2,
},
],
'id-match': [
2,
'(^[A-Za-z]+(?:[A-Z][a-z]*)*\\d*$)|(^[A-Z]+(_[A-Z]+)*(_\\d$)*$)|(^(_|\\$)$)',
{
onlyDeclarations: true,
properties: true
}
properties: true,
},
],
'import/default': 2,
'import/export': 2,
'import/extensions': [
2,
'never',
{
json: 'always'
}
json: 'always',
},
],
'import/first': [2, 'absolute-first'],
'import/max-dependencies': 0,
Expand All @@ -141,8 +141,8 @@ module.exports = {
allowArray: false,
allowArrowFunction: false,
allowLiteral: false,
allowObject: false
}
allowObject: false,
},
],

// @question(lint) this was overriden at the end
Expand All @@ -157,8 +157,8 @@ module.exports = {
{
devDependencies: true,
optionalDependencies: true,
peerDependencies: true
}
peerDependencies: true,
},
],
'import/no-internal-modules': 0,
'import/no-mutable-exports': 2,
Expand All @@ -175,8 +175,8 @@ module.exports = {
2,
{
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
'newlines-between': 'never'
}
'newlines-between': 'never',
},
],
'import/prefer-default-export': 0,

Expand All @@ -202,21 +202,21 @@ module.exports = {
2,
{
afterColon: true,
beforeColon: false
}
beforeColon: false,
},
],
'keyword-spacing': [
2,
{
after: true,
before: true
}
before: true,
},
],
'line-comment-position': [
2,
{
position: 'above'
}
position: 'above',
},
],
'linebreak-style': [2, 'unix'],
'lines-around-comment': [
Expand All @@ -229,30 +229,30 @@ module.exports = {
allowObjectEnd: true,
allowObjectStart: true,
beforeBlockComment: true,
beforeLineComment: true
}
beforeLineComment: true,
},
],
'lines-around-directive': [2, 'always'],
'max-len': [
1,
{
code: 160
}
code: 160,
},
],
'max-nested-callbacks': [1, 3],
'max-statements-per-line': [
2,
{
max: 1
}
max: 1,
},
],
'multiline-ternary': 0,
'new-cap': [
0,
{
capIsNew: false,
newIsCap: true
}
newIsCap: true,
},
],
'new-parens': 2,
'newline-before-return': 2,
Expand Down Expand Up @@ -321,8 +321,8 @@ module.exports = {
{
max: 1,
maxBOF: 0,
maxEOF: 1
}
maxEOF: 1,
},
],
'no-native-reassign': 2,
'no-negated-condition': 2,
Expand All @@ -340,8 +340,8 @@ module.exports = {
'no-param-reassign': [
2,
{
props: false
}
props: false,
},
],
'no-path-concat': 2,
'no-process-env': 2,
Expand All @@ -350,8 +350,8 @@ module.exports = {
'no-redeclare': [
2,
{
builtinGlobals: true
}
builtinGlobals: true,
},
],
'no-regex-spaces': 2,
'no-restricted-globals': 0,
Expand All @@ -368,8 +368,8 @@ module.exports = {
2,
{
builtinGlobals: false,
hoist: 'all'
}
hoist: 'all',
},
],
'no-shadow-restricted-names': 2,
'no-spaced-func': 2,
Expand Down Expand Up @@ -405,8 +405,8 @@ module.exports = {
{
ignoreDestructuring: false,
ignoreExport: false,
ignoreImport: false
}
ignoreImport: false,
},
],
'no-useless-return': 2,
'no-var': 2,
Expand All @@ -415,8 +415,8 @@ module.exports = {
1,
{
location: 'start',
terms: ['todo', '@toto']
}
terms: ['todo', '@toto'],
},
],
'no-whitespace-before-property': 2,
'no-with': 2,
Expand All @@ -425,8 +425,8 @@ module.exports = {
'object-property-newline': [
2,
{
allowMultiplePropertiesPerLine: false
}
allowMultiplePropertiesPerLine: false,
},
],
'object-shorthand': [2, 'always'],
'one-var': [2, 'never'],
Expand Down Expand Up @@ -470,17 +470,17 @@ module.exports = {
2,
{
after: true,
before: false
}
before: false,
},
],
'semi-style': [2, 'last'],
'sort-keys': [
2,
'asc',
{
caseSensitive: false,
natural: true
}
natural: true,
},
],
'sort-vars': 2,
'space-before-blocks': [2, 'always'],
Expand All @@ -491,8 +491,8 @@ module.exports = {
2,
{
nonwords: false,
words: true
}
words: true,
},
],
'spaced-comment': [2, 'always'],

Expand All @@ -504,17 +504,17 @@ module.exports = {
2,
{
after: true,
before: false
}
before: false,
},
],
'symbol-description': 2,
'template-tag-spacing': [2, 'never'],
'unicode-bom': [2, 'never'],
'unicorn/catch-error-name': [
'error',
{
name: 'error'
}
name: 'error',
},
],
'unicorn/custom-error-definition': 0,
'unicorn/escape-case': 2,
Expand All @@ -535,9 +535,9 @@ module.exports = {
'vars-on-top': 2,
'wrap-iife': [2, 'inside'],
'wrap-regex': 0,
yoda: 0
yoda: 0,
},
settings: {
'import/extensions': ['.js']
}
'import/extensions': ['.js'],
},
};
4 changes: 2 additions & 2 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const executeCommand = (command, env = process.env) => {
const proc = spawn(command, [], {
env,
shell: true,
stdio: [0, 1, 2]
stdio: [0, 1, 2],
});

proc.on('close', (code) => {
Expand Down Expand Up @@ -96,7 +96,7 @@ const main = async () => {
'commit',
'--file',
commitMsgFile,
...appendedArgs
...appendedArgs,
]);

if (cliOptions.dryRun) {
Expand Down
2 changes: 1 addition & 1 deletion lib/createQuestions.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const creators = {
lerna: qLerna,
scope: qScope,
subject: qSubject,
type: qType
type: qType,
};

const createQuestions = (state, cliAnswers) => {
Expand Down
Loading

0 comments on commit 895b7c7

Please sign in to comment.