eslint-tester.js 492 B

1234567891011121314151617181920212223
  1. /**
  2. * Copyright (c) Meta Platforms, Inc. and affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @format
  8. */
  9. 'use strict';
  10. const ESLintTester = require('eslint').RuleTester;
  11. ESLintTester.setDefaultConfig({
  12. parser: require.resolve('@babel/eslint-parser'),
  13. parserOptions: {
  14. requireConfigFile: false,
  15. ecmaVersion: 6,
  16. sourceType: 'module',
  17. },
  18. });
  19. module.exports = ESLintTester;