Skip to content

Commit 182dcb0

Browse files
chore(deps): update dependency @netlify/eslint-config-node to v7 (#1473)
1 parent 7d8bfa8 commit 182dcb0

File tree

8 files changed

+1068
-952
lines changed

8 files changed

+1068
-952
lines changed

.eslintrc.js

+12-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ module.exports = {
1212
'id-length': 0,
1313
'max-statements': 0,
1414
'no-await-in-loop': 0,
15-
'node/exports-style': 0,
16-
'node/global-require': 0,
17-
'node/prefer-global/process': 0,
15+
'n/exports-style': 0,
16+
'n/global-require': 0,
17+
'n/prefer-global/process': 0,
1818
// Allow a single word inline so that it can do language tags for syntax highlighting
1919
// ['error', { ignorePattern: /^ (\w+) $/ }],
2020
'no-inline-comments': 0,
@@ -38,6 +38,15 @@ module.exports = {
3838
},
3939
overrides: [
4040
...overrides,
41+
{
42+
files: ['**/*.ts'],
43+
rules: {
44+
// This is disabled because TypeScript transpiles some features currently
45+
// unsupported by Node 12, i.e. optional chaining
46+
// TODO: re-enable after dropping support for Node 12
47+
'n/no-unsupported-features/es-syntax': 'off',
48+
},
49+
},
4150
{
4251
files: ['cypress/**/*.spec.ts'],
4352
rules: {

demos/plugin-wrapper/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// eslint-disable-next-line node/no-unpublished-require
1+
// eslint-disable-next-line n/no-unpublished-require
22
module.exports = require('../../plugin/lib')

0 commit comments

Comments
 (0)