2
2
3
3
import { globalIgnores } from "eslint/config" ;
4
4
import 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" ;
7
8
8
9
export 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
+ ] ) ,
15
17
eslint . configs . recommended ,
16
18
tseslint . configs . recommended ,
19
+ eslintConfigPrettier ,
17
20
{
18
21
files : [
19
22
"apps/test-app/*.js" ,
20
23
"packages/node-addon-examples/*.js" ,
21
24
"packages/host/babel-plugin.js" ,
22
- "packages/host/react-native.config.js"
25
+ "packages/host/react-native.config.js" ,
23
26
] ,
24
27
languageOptions : {
25
28
parserOptions : {
@@ -38,7 +41,7 @@ export default tseslint.config(
38
41
files : [
39
42
"packages/gyp-to-cmake/bin/*.js" ,
40
43
"packages/host/bin/*.mjs" ,
41
- "packages/host/scripts/*.mjs"
44
+ "packages/host/scripts/*.mjs" ,
42
45
] ,
43
46
languageOptions : {
44
47
globals : {
0 commit comments