Skip to content

Commit

Permalink
fix(eslint): rectify lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi committed Jul 23, 2021
1 parent 1b9c938 commit 0f7828f
Show file tree
Hide file tree
Showing 18 changed files with 1,887 additions and 1,810 deletions.
28 changes: 28 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
parser: '@babel/eslint-parser',
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'plugin:react/recommended',
'airbnb',
'prettier',
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
plugins: [
'react',
],
rules: {
'react/prop-types': 0,
'react/jsx-props-no-spreading': 0,
'no-plusplus': 0,
},
};
12 changes: 0 additions & 12 deletions .eslintrc.json

This file was deleted.

11 changes: 11 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"arrowParens": "always",
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"endOfLine": "lf"
}
Loading

0 comments on commit 0f7828f

Please sign in to comment.