Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Commit 1244feb

Browse files
authored
Merge pull request #45 from JasonBoy/eslint
Add ESLint
2 parents c8bddaf + a7ed5bc commit 1244feb

File tree

6 files changed

+1035
-250
lines changed

6 files changed

+1035
-250
lines changed

.eslintrc.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
module.exports = {
2+
root: true,
3+
extends: [
4+
'eslint:recommended',
5+
'plugin:react/recommended',
6+
'plugin:prettier/recommended',
7+
'prettier/react',
8+
],
9+
parser: 'babel-eslint',
10+
parserOptions: {
11+
ecmaVersion: 2018,
12+
sourceType: 'module',
13+
ecmaFeatures: {
14+
jsx: true,
15+
},
16+
},
17+
env: {
18+
es6: true,
19+
browser: true,
20+
node: true,
21+
jest: true,
22+
},
23+
plugins: ['react', 'react-hooks'],
24+
rules: {
25+
eqeqeq: 'off',
26+
'no-prototype-builtins': 'off',
27+
'no-unused-vars': 'warn',
28+
'require-atomic-updates': 'warn',
29+
//react stuff
30+
'react/display-name': 'off',
31+
'react/prop-types': 'off',
32+
'react-hooks/rules-of-hooks': 'error',
33+
'react-hooks/exhaustive-deps': 'warn',
34+
},
35+
settings: {
36+
react: {
37+
version: 'detect',
38+
},
39+
},
40+
};

0 commit comments

Comments
 (0)