Skip to content
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.

Commit

Permalink
chore: Upgrade eslint-config-tdmalone
Browse files Browse the repository at this point in the history
  • Loading branch information
tdmalone committed Sep 30, 2018
1 parent 4c2c139 commit 7aa8ebf
Show file tree
Hide file tree
Showing 3 changed files with 885 additions and 209 deletions.
64 changes: 4 additions & 60 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,64 +8,8 @@
'use strict';

module.exports = {

env: {
browser: false,
node: true
},

extends: [
'tdmalone' // @see https://github.com/tdmalone/eslint-config-tdmalone/blob/master/index.js
],

parserOptions: {
ecmaVersion: 9 // Aka ES2018. @see https://node.green/#ES2018
},

extends: [ 'tdmalone' ], // @see https://github.com/tdmalone/eslint-config-tdmalone
rules: {

'arrow-parens': [ 'error', 'always' ],
'arrow-spacing': [ 'error' ],
'array-bracket-newline': [ 'error', 'consistent' ],
'array-element-newline': [ 'error', 'consistent' ],

'object-curly-newline': [
'error',
{
minProperties: 3,
multiline: true,
consistent: true
}
],

'key-spacing': [
'warn',
{
beforeColon: false,
afterColon: true,
mode: 'strict'
}
],

'max-statements': [ 'error', { max: 20 } ],

'no-magic-numbers': [
'error',
{
ignore: [
-1,
0,
1
],
ignoreArrayIndexes: true,
enforceConst: true
}
],

'no-multi-str': [ 'off' ],
'no-var': [ 'error' ],
'object-shorthand': [ 'warn' ],
'prefer-const': [ 'error' ]

} // Rules.
}; // Module.exports.
'max-statements': [ 'error', { max: 20 } ]
}
};
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@
"codecov": "^3.0.4",
"coveralls": "^3.0.2",
"eslint": "^5.3.0",
"eslint-config-tdmalone": "^0.0.1",
"eslint-plugin-jest": "^21.18.0",
"eslint-config-tdmalone": "^0.1.3",
"eslint-plugin-dollar-sign": "^1.0.1",
"eslint-plugin-jest": "^21.23.0",
"jest": "^23.4.2",
"jest-chain": "^1.0.3",
"jest-extended": "^0.8.1",
Expand Down
Loading

0 comments on commit 7aa8ebf

Please sign in to comment.