Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
doZennn committed Dec 2, 2019
1 parent d3e02b5 commit 053df2f
Show file tree
Hide file tree
Showing 37 changed files with 3,413 additions and 2,915 deletions.
80 changes: 9 additions & 71 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,82 +5,20 @@
"node": true,
"browser": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"extends": ["airbnb"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"BigInt": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"indent": [
"error",
4
],
"prefer-template": "error",
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"array-bracket-newline": [
"error",
"consistent"
],
"no-console": "error",
"function-paren-newline": ["error", "consistent"],
"prefer-arrow-callback": [
"error",
{
"allowNamedFunctions": false,
"allowUnboundThis": true
}
],
"arrow-spacing": [
"error",
{
"before": true,
"after": true
}
],
"arrow-body-style": [
"error",
"as-needed",
{
"requireReturnForObjectLiteral": false
}
],
"arrow-parens": [
"error",
"always",
{
"requireForBlockBody": true
}
],
"no-var": "error",
"prefer-const": [
"error",
{
"destructuring": "any",
"ignoreReadBeforeAssign": true
}
],
"react/jsx-no-bind": "warn"
"indent": ["error", 2],
"react/jsx-indent": ["error", 2],
"class-methods-use-this": ["off"],
"no-underscore-dangle": ["off"],
"no-param-reassign": ["error", { "props": false }],
"react/forbid-prop-types": ["off"],
"jsx-a11y/click-events-have-key-events": ["off"],
"jsx-a11y/no-static-element-interactions": ["off"]
}
}
Loading

0 comments on commit 053df2f

Please sign in to comment.