/** * @author Yosuke Ota */ 'use strict' const RuleTester = require('../../eslint-compat').RuleTester const rule = require('../../../lib/rules/camelcase') const tester = new RuleTester({ languageOptions: { parser: require('vue-eslint-parser'), ecmaVersion: 2015 } }) tester.run('camelcase', rule, { valid: [ ``, { code: ` `, options: [{ ignoreDestructuring: true }] } ], invalid: [ { code: ` `, errors: [ { message: "Identifier 'my_pref' is not in camel case.", line: 3 } ] }, { code: ` `, errors: [ { message: "Identifier 'my_pref' is not in camel case.", line: 4 } ] }, { code: ` `, errors: [ { message: "Identifier 'my_pref' is not in camel case.", line: 4 } ] } ] })