Files
yoga/javascript/.eslintrc.js

37 lines
739 B
JavaScript
Raw Normal View History

2022-12-24 01:46:20 -08:00
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
module.exports = {
extends: [
"eslint:recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended",
],
parser: "@babel/eslint-parser",
env: {
commonjs: true,
es6: true,
},
ignorePatterns: ["dist/**"],
overrides: [
{
files: ["jest.*", "tests/**"],
env: {
node: true,
},
globals: {
getMeasureCounter: "writable",
getMeasureCounterMax: "writable",
getMeasureCounterMin: "writable",
Yoga: "writable",
},
},
],
};