Skip to content

Commit 1e064b6

Browse files
author
Ariful Alam
committed
feat: add eslint and prettier
1 parent d841f7c commit 1e064b6

6 files changed

Lines changed: 1432 additions & 4 deletions

File tree

.eslintignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# Misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*

.eslintrc.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// .eslintrc.js
2+
module.exports = {
3+
env: {
4+
browser: true,
5+
es2021: true,
6+
node: true,
7+
},
8+
extends: [
9+
'eslint:recommended',
10+
'plugin:react/recommended',
11+
'plugin:prettier/recommended',
12+
],
13+
settings: {
14+
react: {
15+
version: 'detect',
16+
},
17+
},
18+
parserOptions: {
19+
ecmaFeatures: {
20+
jsx: true,
21+
},
22+
ecmaVersion: 'latest',
23+
sourceType: 'module',
24+
},
25+
plugins: ['react'],
26+
rules: {
27+
'react/react-in-jsx-scope': 'off',
28+
},
29+
};

.prettierignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# Misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"semi": true,
3+
"arrowParens": "always",
4+
"bracketSpacing": true,
5+
"printWidth": 80,
6+
"singleQuote": false,
7+
"tabWidth": 2
8+
}

0 commit comments

Comments
 (0)