Skip to content

Commit 4b8505f

Browse files
committed
chore: better eslint is here
1 parent 1761de6 commit 4b8505f

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.eslintrc.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = {
22
root: true,
33
extends: "@react-native-community",
44
parser: "@typescript-eslint/parser",
5-
plugins: ["import", "eslint-plugin-import", "@typescript-eslint"],
5+
plugins: ["import", "eslint-plugin-import", "@typescript-eslint", "prettier"],
66
settings: {
77
"import/resolver": {
88
node: {
@@ -36,6 +36,19 @@ module.exports = {
3636
avoidEscape: true,
3737
},
3838
],
39+
"import/extensions": [
40+
"error",
41+
"never",
42+
{
43+
svg: "always",
44+
model: "always",
45+
style: "always",
46+
png: "always",
47+
jpg: "always",
48+
json: "always",
49+
constant: "always",
50+
},
51+
],
3952
"max-len": ["error", 120],
4053
"@typescript-eslint/ban-ts-comment": 2,
4154
"@typescript-eslint/no-explicit-any": 1,
@@ -79,5 +92,11 @@ module.exports = {
7992
endOfLine: "auto",
8093
},
8194
],
95+
"prettier/prettier": [
96+
"error",
97+
{
98+
endOfLine: "auto",
99+
},
100+
],
82101
},
83102
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-typescript-boilerplate",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "React Native Template/Boilerplate for awesome applications, using Typescript with a lot of built-in ready features.",
55
"dependencies": {
66
"@freakycoder/react-native-bounceable": "^0.2.5",

0 commit comments

Comments
 (0)