22
33import { globalIgnores } from "eslint/config" ;
44import globals from "globals" ;
5- import eslint from '@eslint/js' ;
6- import tseslint from 'typescript-eslint' ;
5+ import eslint from "@eslint/js" ;
6+ import tseslint from "typescript-eslint" ;
7+ import eslintConfigPrettier from "eslint-config-prettier/flat" ;
78
89export default tseslint . config (
9- globalIgnores ( [ ".nx/**" ] ) ,
10- globalIgnores ( [ "**/dist/**" ] ) ,
11- globalIgnores ( [ "apps/test-app/ios/**" ] ) ,
12- globalIgnores ( [ "packages/host/hermes/**" ] ) ,
13- globalIgnores ( [ "packages/node-addon-examples/examples/**" ] ) ,
14- globalIgnores ( [ "packages/ferric-example/ferric_example.d.ts" ] ) ,
10+ globalIgnores ( [
11+ "**/dist/**" ,
12+ "apps/test-app/ios/**" ,
13+ "packages/host/hermes/**" ,
14+ "packages/node-addon-examples/examples/**" ,
15+ "packages/ferric-example/ferric_example.d.ts" ,
16+ "packages/node-tests/node/**" ,
17+ "packages/node-tests/tests/**" ,
18+ ] ) ,
1519 eslint . configs . recommended ,
1620 tseslint . configs . recommended ,
21+ eslintConfigPrettier ,
1722 {
1823 files : [
1924 "apps/test-app/*.js" ,
2025 "packages/node-addon-examples/*.js" ,
2126 "packages/host/babel-plugin.js" ,
22- "packages/host/react-native.config.js"
27+ "packages/host/react-native.config.js" ,
28+ "packages/node-tests/tests.generated.js" ,
2329 ] ,
2430 languageOptions : {
2531 parserOptions : {
@@ -38,7 +44,7 @@ export default tseslint.config(
3844 files : [
3945 "packages/gyp-to-cmake/bin/*.js" ,
4046 "packages/host/bin/*.mjs" ,
41- "packages/host/scripts/*.mjs"
47+ "packages/host/scripts/*.mjs" ,
4248 ] ,
4349 languageOptions : {
4450 globals : {
0 commit comments