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

Commit

Permalink
Add ESLint package and generate configuration. (#7598)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdauria authored Jun 11, 2019
1 parent bc858b0 commit 5bca74b
Show file tree
Hide file tree
Showing 5 changed files with 1,292 additions and 911 deletions.
212 changes: 0 additions & 212 deletions .eslintrc

This file was deleted.

22 changes: 22 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module.exports = {
env: {
browser: true,
es6: true,
},
extends: ['airbnb', 'plugin:prettier/recommended'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['react'],
rules: {
'prettier/prettier': 'error',
},
};
5 changes: 5 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
trailingComma: 'es5',
arrowParens: 'always',
singleQuote: true,
}
Loading

0 comments on commit 5bca74b

Please sign in to comment.