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

Commit

Permalink
fix: remove references to deprecated camelcase rule
Browse files Browse the repository at this point in the history
Typescript eslint camelcase rule has now been removed in favour of the new naming-convention rule.
This change removes the reference to camelcase and replaces it with an equivalent naming-convention
rule.

fix iamturns#95
  • Loading branch information
Bill Beesley authored and mgenware committed May 31, 2020
1 parent cbc9de8 commit 7e80ae9
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion lib/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,25 @@ module.exports = {
// Replace Airbnb 'camelcase' rule with '@typescript-eslint' version
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/camelcase.md
camelcase: 'off',
'@typescript-eslint/camelcase': baseStyleRules.camelcase,
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'default',
format: ['camelCase'],
},
{
selector: 'variable',
format: ['camelCase', 'UPPER_CASE'],
},
{
selector: 'parameter',
format: ['camelCase'],
},
{
selector: 'typeLike',
format: ['PascalCase'],
},
], // typescript-eslint camelcase rule has now been removed https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/camelcase.md

// Replace Airbnb 'comma-spacing' rule with '@typescript-eslint' version
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/comma-spacing.md
Expand Down

0 comments on commit 7e80ae9

Please sign in to comment.