Skip to content

Commit cfa797b

Browse files
committed
eslint prettier config
1 parent 7e6f292 commit cfa797b

File tree

5 files changed

+35
-16
lines changed

5 files changed

+35
-16
lines changed

.eslintrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "react-notify",
3+
"plugins": ["prettier"],
4+
"rules": {
5+
"prettier/prettier": "error"
6+
}
7+
}

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@
1818
"now-build": "react-scripts build"
1919
},
2020
"eslintConfig": {
21-
"extends": "react-app"
21+
"extends": "react-notify"
2222
},
2323
"browserslist": [
2424
">0.2%",
2525
"not dead",
2626
"not ie <= 11",
2727
"not op_mini all"
28-
]
28+
],
29+
"devDependencies": {
30+
"eslint-plugin-prettier": "^3.0.1"
31+
}
2932
}

src/.eslintrc

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

src/App.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class App extends Component {
1111
type:"success",
1212
theme:"bootstrap-v4",
1313
layout:"topLeft",
14-
text:"Some Notification text...",
14+
text:"Notification Text Here....",
1515
timeout:"3000"
1616
}).show()
1717
}
@@ -20,7 +20,7 @@ class App extends Component {
2020
type:"error",
2121
theme:"bootstrap-v4",
2222
layout:"topLeft",
23-
text:"Some Notification text...",
23+
text:"Notification Text Here....",
2424
timeout:"3000"
2525
}).show()
2626
}
@@ -29,7 +29,7 @@ class App extends Component {
2929
type:"info",
3030
theme:"bootstrap-v4",
3131
layout:"topLeft",
32-
text:"Some Notification text...",
32+
text:"Notification Text Here....",
3333
timeout:"3000"
3434
}).show()
3535
}
@@ -38,7 +38,7 @@ class App extends Component {
3838
type:"warning",
3939
theme:"bootstrap-v4",
4040
layout:"topLeft",
41-
text:"Some Notification text...",
41+
text:"Notification Text Here....",
4242
timeout:"3000"
4343
}).show()
4444
}

yarn.lock

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3417,6 +3417,13 @@ [email protected]:
34173417
has "^1.0.3"
34183418
jsx-ast-utils "^2.0.1"
34193419

3420+
eslint-plugin-prettier@^3.0.1:
3421+
version "3.0.1"
3422+
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.0.1.tgz#19d521e3981f69dd6d14f64aec8c6a6ac6eb0b0d"
3423+
integrity sha512-/PMttrarPAY78PLvV3xfWibMOdMDl57hmlQ2XqFeA37wd+CJ7WSxV7txqjVPHi/AAFKd2lX0ZqfsOc/i5yFCSQ==
3424+
dependencies:
3425+
prettier-linter-helpers "^1.0.0"
3426+
34203427
34213428
version "7.12.4"
34223429
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.12.4.tgz#b1ecf26479d61aee650da612e425c53a99f48c8c"
@@ -3763,6 +3770,11 @@ fast-deep-equal@^2.0.1:
37633770
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49"
37643771
integrity sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=
37653772

3773+
fast-diff@^1.1.2:
3774+
version "1.2.0"
3775+
resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03"
3776+
integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==
3777+
37663778
fast-glob@^2.0.2:
37673779
version "2.2.6"
37683780
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-2.2.6.tgz#a5d5b697ec8deda468d85a74035290a025a95295"
@@ -7708,6 +7720,13 @@ preserve@^0.2.0:
77087720
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
77097721
integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=
77107722

7723+
prettier-linter-helpers@^1.0.0:
7724+
version "1.0.0"
7725+
resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b"
7726+
integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==
7727+
dependencies:
7728+
fast-diff "^1.1.2"
7729+
77117730
pretty-bytes@^4.0.2:
77127731
version "4.0.2"
77137732
resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-4.0.2.tgz#b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9"

0 commit comments

Comments
 (0)