Skip to content

Commit e43124f

Browse files
author
Carms Ng
committed
[ADD] Install eslint
1 parent 5298b09 commit e43124f

File tree

3 files changed

+539
-343
lines changed

3 files changed

+539
-343
lines changed

.eslintrc.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
},
6+
extends: [
7+
'plugin:react/recommended',
8+
'airbnb',
9+
],
10+
parserOptions: {
11+
ecmaFeatures: {
12+
jsx: true,
13+
},
14+
ecmaVersion: 12,
15+
sourceType: 'module',
16+
},
17+
plugins: [
18+
'react',
19+
],
20+
rules: {
21+
'react/jsx-filename-extension': [
22+
1,
23+
{
24+
extensions: [
25+
'.js',
26+
'.jsx',
27+
],
28+
},
29+
],
30+
'no-param-reassign': 0,
31+
'react/prop-types': 0,
32+
},
33+
};

0 commit comments

Comments
 (0)