Skip to content

Commit

Permalink
enable unicorn/no-zero-fractions rule
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Feb 25, 2023
1 parent c4b480e commit d48543a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ module.exports = {
'unicorn/consistent-destructuring': 'error',
'prefer-destructuring': ['error', { VariableDeclarator: { object: true } }],
'promise/no-multiple-resolved': 'error',
'unicorn/no-zero-fractions': 'error',
'sonarjs/no-redundant-jump': 'error',
'unicorn/prefer-logical-operator-over-ternary': 'error',
'logical-assignment-operators': [
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-language-service/benchmark/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface IStats {
const printResult = (stats: IStats, name: string, schema: string) => {
console.log({
name,
mean: `${1.0 / stats.mean} ops / sec`,
mean: `${1 / stats.mean} ops / sec`,
variance: stats.variance,
rme: `${stats.rme}%`,
lines: schema.split('\n').length,
Expand Down

0 comments on commit d48543a

Please sign in to comment.