Skip to content

Commit

Permalink
chore(basic): add the missing restricted rules about window object (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
zanminkian committed May 31, 2023
1 parent 5d90802 commit 84ae087
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/eslint-config-basic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ module.exports = {
{ object: 'globalThis', property: 'isFinite', message: 'Use `Number.isFinite` instead' },
{ object: 'globalThis', property: 'parseFloat', message: 'Use `Number.parseFloat` instead' },
{ object: 'globalThis', property: 'parseInt', message: 'Use `Number.parseInt` instead' },
{ object: 'window', property: 'isNaN', message: 'Use `Number.isNaN` instead' },
{ object: 'window', property: 'isFinite', message: 'Use `Number.isFinite` instead' },
{ object: 'window', property: 'parseFloat', message: 'Use `Number.parseFloat` instead' },
{ object: 'window', property: 'parseInt', message: 'Use `Number.parseInt` instead' },
],

// es6
Expand Down

0 comments on commit 84ae087

Please sign in to comment.