Skip to content

Commit

Permalink
Adding ESLint Config
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Apr 14, 2018
1 parent 7959e87 commit 949608e
Show file tree
Hide file tree
Showing 12 changed files with 1,013 additions and 23 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scripts/*/build
34 changes: 34 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"prettier",
"prettier/react"
],
"plugins": ["prettier", "react"],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"wp": true,
"document": true,
"console": true
},
"settings": {
"react": {
"pragma": "wp"
}
},
"env": {
"es6": true
},
"rules": {
"prettier/prettier": "error",
"react/prop-types": [0],
"react/display-name": [0]
}
}
Loading

0 comments on commit 949608e

Please sign in to comment.