Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Commit

Permalink
Starter files for eslint and husky formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam A. Zerella committed Apr 5, 2019
1 parent d8ecf8a commit 2beb197
Show file tree
Hide file tree
Showing 5 changed files with 1,507 additions and 4,471 deletions.
6 changes: 6 additions & 0 deletions .eslint/module.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
'env': {
'browser': true
},
'parserOptions': {
'ecmaVersion': 5
10 changes: 10 additions & 0 deletions .eslint/react.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
'plugins': [
'react'
],
'extends': 'plugin:react/recommended',
'parser': 'babel-eslint',
'parserOptions': {
'sourceType': 'module',
}
};
45 changes: 45 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
module.exports = {
'root': true,
'env': {
'node': true,
'commonjs': true,
'es6': true,
},
'extends': 'eslint:recommended',
'globals': {
'Atomics': 'readonly',
'SharedArrayBuffer': 'readonly',
},
'parserOptions': {
'ecmaVersion': 2018,
},
'rules': {
'no-console': 'off',
'no-unused-vars': ['warn', { 'ignoreRestSiblings': true }],
'no-var': 'error',
'no-return-assign': 'error',
'no-return-await': 'error',
'no-multi-assign': 'error',
'eqeqeq': 'error',
'require-await': 'error',
'wrap-iife': ["error", "inside"],
'curly': ['error', 'all'],
'semi': 'error',
'func-style': ['error', 'expression'],
'newline-per-chained-call': 'warn',
'array-bracket-spacing': ['error', 'always'],
'object-curly-spacing': ['error', 'always'],
'space-in-parens': ['error', 'always', { 'exceptions': ['empty'] }],
'block-spacing': ['error', 'always'],
'brace-style': ['error', 'stroustrup'],
'indent': ['error', 'tab', {
'ignoreComments': true,
}],
'arrow-spacing': 'error',
'space-before-function-paren': ['error', {
'anonymous': 'never',
'named': 'never',
'asyncArrow': 'always',
}],
}
};
Loading

0 comments on commit 2beb197

Please sign in to comment.