Skip to content

Commit

Permalink
chore(.eslintrc.js): clean up config props
Browse files Browse the repository at this point in the history
Some properties are unnecessary/unused. Others can be updated to target
latest EMCAScript code. A brace was reformatted to follow the brace
style guide.
  • Loading branch information
bryan-hoang committed Aug 28, 2023
1 parent 3ba13c1 commit efb7229
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,17 @@ module.exports = {
},
'extends': 'eslint:recommended',
'parserOptions': {
'ecmaVersion': 13,
'ecmaVersion': 'latest',
'sourceType': 'script',
},
globals: {
dcpConfig: true
},
'plugins': [
'@distributive',
'jsdoc',
],
'rules': {
'indent': [
'warn',
2,
{
2, {
'SwitchCase': 1,
'ignoredNodes': ['CallExpression', 'ForStatement']
}
Expand Down Expand Up @@ -62,9 +58,6 @@ module.exports = {
'no-multi-spaces': [
'off',
],
'prettier/prettier': [
'off',
],
'vars-on-top': [
'error',
],
Expand All @@ -74,9 +67,6 @@ module.exports = {
'spaced-comment': [
'warn',
],
'brace-style': [
'off',
],
'no-eval': [
'error',
],
Expand Down Expand Up @@ -128,6 +118,7 @@ module.exports = {
allow: ['!!'] /* really only want to allow if(x) and if(!x) but not if(!!x) */
}],
'strict': [ 'error', 'safe' ],
'brace-style': 'off',
'@distributive/brace-style': 'warn',
'jsdoc/require-file-overview': [
'error', {
Expand Down

0 comments on commit efb7229

Please sign in to comment.