Add JS Linting
This commit is contained in:
36
javascript/.eslintrc.js
Normal file
36
javascript/.eslintrc.js
Normal file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* 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",
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
Reference in New Issue
Block a user