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+ ] ) ,
1517 eslint . configs . recommended ,
1618 tseslint . configs . recommended ,
19+ eslintConfigPrettier ,
1720 {
1821 files : [
1922 "apps/test-app/*.js" ,
2023 "packages/node-addon-examples/*.js" ,
2124 "packages/host/babel-plugin.js" ,
22- "packages/host/react-native.config.js"
25+ "packages/host/react-native.config.js" ,
2326 ] ,
2427 languageOptions : {
2528 parserOptions : {
@@ -38,7 +41,7 @@ export default tseslint.config(
3841 files : [
3942 "packages/gyp-to-cmake/bin/*.js" ,
4043 "packages/host/bin/*.mjs" ,
41- "packages/host/scripts/*.mjs"
44+ "packages/host/scripts/*.mjs" ,
4245 ] ,
4346 languageOptions : {
4447 globals : {
0 commit comments