Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Commit d30b7d2

Browse files
authored
feat: Include new airbnb rules for default-param-last and no-loss-of-precision
Authored-by: Dmitry Kiselyov <[email protected]>
1 parent 483b49a commit d30b7d2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: lib/shared.js

+10
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ module.exports = {
7474
'comma-spacing': 'off',
7575
'@typescript-eslint/comma-spacing': baseStyleRules['comma-spacing'],
7676

77+
// Replace Airbnb 'default-param-last' rule with '@typescript-eslint' version
78+
// https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/default-param-last.md
79+
'default-param-last': 'off',
80+
'@typescript-eslint/default-param-last': baseBestPracticesRules['default-param-last'],
81+
7782
// Replace Airbnb 'dot-notation' rule with '@typescript-eslint' version
7883
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/dot-notation.md
7984
'dot-notation': 'off',
@@ -130,6 +135,11 @@ module.exports = {
130135
'no-new-func': 'off',
131136
'@typescript-eslint/no-implied-eval': baseBestPracticesRules['no-implied-eval'],
132137

138+
// Replace Airbnb 'no-loss-of-precision' rule with '@typescript-eslint' version
139+
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-loss-of-precision.md
140+
'no-loss-of-precision': 'off',
141+
'@typescript-eslint/no-loss-of-precision': baseErrorsRules['no-loss-of-precision'],
142+
133143
// Replace Airbnb 'no-loop-func' rule with '@typescript-eslint' version
134144
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-loop-func.md
135145
'no-loop-func': 'off',

0 commit comments

Comments
 (0)