Skip to content

Commit

Permalink
Enforce “use strict”
Browse files Browse the repository at this point in the history
  • Loading branch information
eaviles committed Aug 2, 2018
1 parent fa5c1ad commit 8083948
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ This package provides Lifion's base JS .eslintrc as an extensible shared config.

2. Add `"extends": "lifion"` to your .eslintrc

3. Make sure to also cover JSON files when running ESLint: `eslint --ext .js,.json .`

4. [Configure prettier](https://prettier.io/docs/en/configuration.html) with: `--print-width 100 --single-quote`

## License

[MIT](LICENSE)
6 changes: 5 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ module.exports = {
'plugin:security/recommended',
'plugin:unicorn/recommended'
],
plugins: ['es6-recommended', 'jsdoc', 'node', 'security', 'unicorn'],
parserOptions: {
sourceType: 'script'
},
plugins: ['es6-recommended', 'jsdoc', 'json', 'node', 'security', 'unicorn'],
rules: {
'import/no-extraneous-dependencies': [
'error',
Expand All @@ -29,6 +32,7 @@ module.exports = {
],
'jsdoc/require-hyphen-before-param-description': 'warn',
'security/detect-object-injection': 'off',
strict: ['error', 'global'],
'unicorn/catch-error-name': ['error', { name: 'err' }]
},
settings: {
Expand Down

0 comments on commit 8083948

Please sign in to comment.