Skip to content

Commit 62a5019

Browse files
author
Cezar Sampaio
committed
build: add eslint for react and prettier + git hooks
1 parent 5b05d94 commit 62a5019

File tree

3 files changed

+2747
-1912
lines changed

3 files changed

+2747
-1912
lines changed

Diff for: .eslintrc.js

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
module.exports = {
2+
globals: {
3+
__PATH_PREFIX__: true,
4+
},
5+
extends: [
6+
'react-app',
7+
'plugin:react/recommended',
8+
'plugin:prettier/recommended',
9+
],
10+
parserOptions: {
11+
module: '',
12+
ecmaVersion: 2018,
13+
ecmaFeatures: {
14+
jsx: true,
15+
},
16+
},
17+
rules: {},
18+
settings: {
19+
react: {
20+
version: 'detect',
21+
},
22+
},
23+
env: {
24+
browser: true,
25+
jest: true,
26+
es6: true,
27+
},
28+
};

0 commit comments

Comments
 (0)