Skip to content

Commit 19d7787

Browse files
move lint and prettier config out of package.json
1 parent ed6edee commit 19d7787

3 files changed

Lines changed: 32 additions & 40 deletions

File tree

.eslintrc.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": ["@typescript-eslint"],
5+
"extends": [
6+
"eslint:recommended",
7+
"plugin:@typescript-eslint/recommended",
8+
"plugin:react-hooks/recommended"
9+
],
10+
"rules": {
11+
"semi": ["error", "never"],
12+
"quotes": ["error", "double"],
13+
"no-trailing-spaces": "error",
14+
"react-hooks/exhaustive-deps": "off",
15+
"@typescript-eslint/no-unused-vars": [
16+
"error",
17+
{
18+
"argsIgnorePattern": "^_",
19+
"varsIgnorePattern": "^_"
20+
}
21+
],
22+
"@typescript-eslint/no-var-requires": 0
23+
}
24+
}

.prettierrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"printWidth": 100,
3+
"semi": false,
4+
"trailingComma": "all",
5+
"singleQuote": false,
6+
"bracketSameLine": true,
7+
"bracketSpacing": true
8+
}

package.json

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -72,45 +72,5 @@
7272
"uri-scheme": "^1.0.112",
7373
"vitest": "^4.0.15",
7474
"vitest-react-native": "^0.1.5"
75-
},
76-
"eslintConfig": {
77-
"root": true,
78-
"parser": "@typescript-eslint/parser",
79-
"plugins": [
80-
"@typescript-eslint"
81-
],
82-
"extends": [
83-
"eslint:recommended",
84-
"plugin:@typescript-eslint/recommended",
85-
"plugin:react-hooks/recommended"
86-
],
87-
"rules": {
88-
"semi": [
89-
"error",
90-
"never"
91-
],
92-
"quotes": [
93-
"error",
94-
"double"
95-
],
96-
"no-trailing-spaces": "error",
97-
"react-hooks/exhaustive-deps": "off",
98-
"@typescript-eslint/no-unused-vars": [
99-
"error",
100-
{
101-
"argsIgnorePattern": "^_",
102-
"varsIgnorePattern": "^_"
103-
}
104-
],
105-
"@typescript-eslint/no-var-requires": 0
106-
}
107-
},
108-
"prettier": {
109-
"printWidth": 100,
110-
"semi": false,
111-
"trailingComma": "all",
112-
"singleQuote": false,
113-
"bracketSameLine": true,
114-
"bracketSpacing": true
11575
}
11676
}

0 commit comments

Comments
 (0)