Skip to content

Commit 3b4753d

Browse files
author
faridevnz
committed
feat: removed prettier
1 parent 2744fc7 commit 3b4753d

File tree

5 files changed

+32
-19
lines changed

5 files changed

+32
-19
lines changed

.eslintrc.js

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
/* eslint-disable no-undef */
2+
import { eslintrc } from "@futura-dev/eslint-config-typescript";
23

34
module.exports = {
5+
// parser
46
parser: "@typescript-eslint/parser",
7+
8+
// extensions
9+
plugins: ["react-hooks", "@typescript-eslint", "import"],
510
extends: [
611
"@futura-dev/typescript/.eslintrc.js",
712
"plugin:import/warnings",
813
"plugin:react/recommended",
9-
"plugin:jsx-a11y/recommended"
14+
"plugin:jsx-a11y/recommended",
1015
],
11-
plugins: ["react-hooks", "@typescript-eslint", "import"],
16+
17+
// rules
1218
rules: {
1319
"react/react-in-jsx-scope": "off",
1420
"react/jsx-uses-react": "off",
@@ -18,11 +24,23 @@ module.exports = {
1824
"react/jsx-no-bind": "warn",
1925
"import/default": "warn",
2026
"import/first": "warn",
21-
"import/export": "error"
27+
"import/export": "error",
28+
29+
"prettier/prettier": [
30+
"error",
31+
{
32+
...eslintrc.rules["prettier/prettier"][1],
33+
singleAttributePerLine: true,
34+
bracketSameLine: false,
35+
htmlWhitespaceSensitivity: "css",
36+
},
37+
],
2238
},
39+
40+
// settings
2341
settings: {
2442
react: {
25-
version: 'detect'
26-
}
43+
version: "detect",
44+
},
2745
},
2846
};

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
node_modules
22

33
# Cosmodrome
4-
.cosmodrome.json
4+
.cosmodrome.json
5+
# cosmodrome
6+
.cosmodrome.json

.prettierrc.js

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

index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
/* eslint-disable @typescript-eslint/no-var-requires */
33

44
const eslintrc = require("./.eslintrc.js");
5-
const prettierrc = require("./.prettierrc.js");
65

76
module.exports = {
87
eslintrc,
9-
prettierrc
108
};

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"url": "https://github.com/futura-dev/eslint-config-react"
2020
},
2121
"peerDependencies": {
22-
"@futura-dev/eslint-config-typescript": "^0.1.2",
22+
"@futura-dev/eslint-config-typescript": "1.0.0",
2323
"@typescript-eslint/eslint-plugin": "^5.59.5",
2424
"@typescript-eslint/parser": "^5.59.5",
2525
"eslint": "^8.40.0",
@@ -30,9 +30,10 @@
3030
},
3131
"devDependencies": {
3232
"@commitlint/config-conventional": "^17.6.3",
33-
"@futura-dev/contributing-gen": "^2.0.14",
34-
"@futura-dev/cosmodrome": "^1.2.0",
35-
"@futura-dev/cosmokeeper": "^0.1.7",
36-
"commitlint": "^17.6.3"
33+
"@futura-dev/contributing-gen": "^2.1.0",
34+
"@futura-dev/cosmodrome": "^1.4.1",
35+
"@futura-dev/cosmokeeper": "^0.1.8",
36+
"commitlint": "^17.6.3",
37+
"npm-check-updates": "^16.14.15"
3738
}
3839
}

0 commit comments

Comments
 (0)