Skip to content

Commit 8af29dc

Browse files
author
devgioele
authored
Merge pull request #13 from aboutbits/fix-package-structure
Fix package structure and use shared Prettier, ESLint, TypeScript configs
2 parents 632cbe2 + 18b38c6 commit 8af29dc

24 files changed

Lines changed: 3748 additions & 2016 deletions

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.json

Lines changed: 3 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,7 @@
11
{
2-
"parser": "@typescript-eslint/parser",
3-
"env": {
4-
"browser": true,
5-
"node": true
6-
},
7-
"plugins": ["@typescript-eslint", "react", "react-hooks"],
8-
"extends": [
9-
"eslint:recommended",
10-
"plugin:@typescript-eslint/recommended",
11-
"plugin:react/recommended",
12-
"plugin:react/jsx-runtime",
13-
"plugin:import/recommended",
14-
"plugin:import/typescript",
15-
"plugin:prettier/recommended"
16-
],
2+
"extends": "@aboutbits/eslint-config/ts-react",
173
"parserOptions": {
18-
"sourceType": "module",
19-
"ecmaVersion": 2018
20-
},
21-
"settings": {
22-
"react": {
23-
"version": "detect"
24-
},
25-
"import/resolver": {
26-
"node": {
27-
"paths": ["./"]
28-
}
29-
}
4+
"project": true
305
},
31-
"rules": {
32-
"react-hooks/rules-of-hooks": "error",
33-
"react-hooks/exhaustive-deps": "error",
34-
"@typescript-eslint/no-unused-vars": [
35-
"error",
36-
{
37-
"ignoreRestSiblings": true,
38-
"varsIgnorePattern": "^[iI]gnored",
39-
"argsIgnorePattern": "^_",
40-
"caughtErrorsIgnorePattern": "^ignore"
41-
}
42-
],
43-
"@typescript-eslint/member-delimiter-style": "off",
44-
"@typescript-eslint/explicit-function-return-type": "off",
45-
"@next/next/no-img-element": "off",
46-
"import/order": [
47-
"error",
48-
{
49-
"groups": [
50-
"builtin",
51-
"external",
52-
"unknown",
53-
"parent",
54-
"sibling",
55-
"index"
56-
]
57-
}
58-
],
59-
"no-console": [
60-
"error",
61-
{
62-
"allow": ["warn", "error", "assert"]
63-
}
64-
]
65-
}
6+
"ignorePatterns": ["node_modules", "dist"]
667
}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@
1111

1212
# ESLint
1313
.eslintcache
14+
15+
# TypeScript
16+
*.tsbuildinfo

.prettierrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)