Releases: tclindner/eslint-config-tc
Releases · tclindner/eslint-config-tc
v6.4.0
v6.4.0-beta.0
Update package.json
v6.3.0
Removed
Removed the following rules that are now covered with the same config in Airbnb.
v6.2.0
Changed
- Updated no-warning-comments from
error
towarn
. - Updated max-statements from
12
to15
.
Thanks @abbyhuisman-rw!!
v6.1.0
v6.0.0
v5.2.0
Changed
- Updated max-params rule to allow 6 params.
v5.1.0
Removed
- Disabled func-names rule.
v5.0.1
v5.0.0
Added
- no-control-regex
- no-inner-declarations
- guard-for-in
- vars-on-top
- no-undef-init
- global-require
- no-restricted-properties
- lines-around-directive
- no-restricted-syntax - ForInStatement, ForOfStatement, LabeledStatement, and WithStatement
- one-var-declaration-per-line
- unicode-bom
- generator-star-spacing
- no-useless-computed-key
- object-shorthand
- prefer-arrow-callback
- prefer-numeric-literals
- prefer-spread
- require-yield
- yield-star-spacing
Changed
- no-extra-parens - Added ignoreJSX: 'all', // delegate to eslint-plugin-react, enforceForArrowConditionals: false
- no-invalid-regexp - Removed allowConstructorFlags: ['u', 'y']
- wrap-iife - Changed from 'inside' to 'outside', { functionPrototypeMethods: false }
- no-unused-vars - Changed vars from 'local' to 'all'
- indent - Changed for always 2 to
SwitchCase: 1,
VariableDeclarator: 1,
outerIIFEBody: 1,
// MemberExpression: null,
FunctionDeclaration: {
parameters: 1,
body: 1
},
FunctionExpression: {
parameters: 1,
body: 1
},
CallExpression: {
arguments: 1
},
ArrayExpression: 1,
ObjectExpression: 1,
ImportDeclaration: 1,
flatTernaryExpressions: false,
// list derived from https://github.com/benjamn/ast-types/blob/HEAD/def/jsx.js
ignoredNodes: ['JSXElement', 'JSXElement > *', 'JSXAttribute', 'JSXIdentifier', 'JSXNamespacedName', 'JSXMemberExpression', 'JSXSpreadAttribute', 'JSXExpressionContainer', 'JSXOpeningElement', 'JSXClosingElement', 'JSXText', 'JSXEmptyExpression', 'JSXSpreadChild'],
ignoreComments: false - new-cap
- no-mixed-operators: allowSamePrecedence from true to false