Skip to content

Commit 6a28185

Browse files
authored
Merge pull request #15 from netlify/renovate/eslint-config-standard-16.x
2 parents fda9de9 + 9535a2e commit 6a28185

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

.eslintrc.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ module.exports = {
3232
complexity: [2, 5],
3333
'consistent-this': 2,
3434
'default-case': 2,
35-
'default-case-last': 2,
36-
'default-param-last': 2,
3735
'func-name-matching': [2, { considerPropertyDescriptor: true }],
3836
'func-names': [2, 'as-needed'],
3937
'func-style': 2,
@@ -53,7 +51,6 @@ module.exports = {
5351
'no-constructor-return': 2,
5452
'no-duplicate-imports': 2,
5553
'no-else-return': [2, { allowElseIf: false }],
56-
'no-empty': [2, { allowEmptyCatch: true }],
5754
'no-extra-label': 2,
5855
'no-implicit-coercion': 2,
5956
'no-implicit-globals': [2, { lexicalBindings: true }],
@@ -62,7 +59,6 @@ module.exports = {
6259
'no-label-var': 2,
6360
'no-lonely-if': 2,
6461
'no-loop-func': 2,
65-
'no-loss-of-precision': 2,
6662
'no-magic-numbers': [
6763
2,
6864
{
@@ -121,10 +117,8 @@ module.exports = {
121117
'no-return-await': 2,
122118
'no-shadow': 2,
123119
'no-underscore-dangle': [2, { enforceInMethodNames: true }],
124-
'no-unreachable-loop': 2,
125120
'no-undef': [2, { typeof: true }],
126121
'no-unused-vars': [2, {}],
127-
'no-useless-backreference': 2,
128122
'no-useless-computed-key': [2, { enforceForClassMembers: true }],
129123
'no-useless-concat': 2,
130124
'no-var': 2,
@@ -135,7 +129,6 @@ module.exports = {
135129
'prefer-exponentiation-operator': 2,
136130
'prefer-numeric-literals': 2,
137131
'prefer-object-spread': 2,
138-
'prefer-regex-literals': [2, { disallowRedundantWrapping: true }],
139132
'prefer-rest-params': 2,
140133
'prefer-spread': 2,
141134
'prefer-template': 2,
@@ -226,13 +219,13 @@ module.exports = {
226219
],
227220

228221
'node/no-sync': 2,
229-
'node/handle-callback-err': 2,
230-
'node/no-new-require': 2,
231222
'node/callback-return': 2,
232223
'node/exports-style': 2,
233224
'node/file-extension-in-import': 2,
234225
'node/global-require': 2,
235226
'node/no-mixed-requires': 2,
227+
// Using path.join() is often not needed when using only core Node.js APIs
228+
'node/no-path-concat': 0,
236229
// Browser globals should not use `require()`. Non-browser globals should
237230
'node/prefer-global/console': 2,
238231
'node/prefer-global/buffer': [2, 'never'],

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"cross-env": "^7.0.2",
7070
"eslint": "^7.11.0",
7171
"eslint-config-prettier": "^6.12.0",
72-
"eslint-config-standard": "^14.1.1",
72+
"eslint-config-standard": "^16.0.0",
7373
"eslint-import-resolver-node": "^0.3.4",
7474
"eslint-plugin-ava": "^11.0.0",
7575
"eslint-plugin-eslint-comments": "^3.2.0",

0 commit comments

Comments
 (0)