Skip to content

⬅️ Back to Table of Contents

πŸ“„ dot-notation.test.ts

πŸ“Š Analysis Summary

Metric Count
πŸ”§ Functions 1
πŸ“¦ Imports 4
πŸ“Š Variables & Constants 1

πŸ“š Table of Contents

πŸ› οΈ File Location:

πŸ“‚ packages/eslint-plugin/tests/rules/dot-notation.test.ts

πŸ“¦ Imports

Name Source
noFormat @typescript-eslint/rule-tester
RuleTester @typescript-eslint/rule-tester
rule ../../src/rules/dot-notation
getFixturesRootDir ../RuleTester

Variables & Constants

Name Type Kind Value Exported
ruleTester any const `new RuleTester({
languageOptions: {
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: rootPath,
},
},
})` βœ—

Functions

q(str: string): string

Code
function q(str: string): string {
  return `"${str}"`;
}
  • JSDoc:

    /**
     * Quote a string in "double quotes" because it’s painful
     * with a double-quoted string literal
     */
    

  • Parameters:

  • str: string
  • Return Type: string