Files
yoga/javascript/.eslintrc.js
Nick Gerleman c3291912b3 Make cmakeBuildTask accept opts instead of array (#1204)
Summary:
Pull Request resolved: https://github.com/facebook/yoga/pull/1204

For expandability, consistency with other tasks, and added explicitness.

Reviewed By: huntie

Differential Revision: D42285129

fbshipit-source-id: 2b76a7dba7474bfae98509740c13c3e173fa9a27
2022-12-30 20:33:56 -08:00

47 lines
1020 B
JavaScript

/**
* 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 = {
root: true,
ignorePatterns: ["dist/**", "**/*.d.ts"],
parser: "@babel/eslint-parser",
extends: [
"eslint:recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended",
],
rules: {
"no-var": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-object-spread": "error",
"prefer-spread": "error",
"require-await": "error",
},
env: {
commonjs: true,
es6: true,
},
overrides: [
{
files: ["jest.*", "just.config.js", "tests/**"],
env: {
node: true,
},
globals: {
getMeasureCounter: "writable",
getMeasureCounterMax: "writable",
getMeasureCounterMin: "writable",
Yoga: "writable",
YGBENCHMARK: "writable",
},
},
],
};