eslint-plugin: refactor to ES2021 and add no-undeclared-imports rule

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-02-03 11:10:38 +01:00
parent 98b2bd1b51
commit 4d05d5bf83
8 changed files with 339 additions and 84 deletions
+4 -3
View File
@@ -17,8 +17,9 @@
// Custom lint config here since source is ES5
module.exports = {
plugins: ['import'],
parserOptions: {
ecmaVersion: 5,
env: {
node: true,
es2021: true,
},
rules: {
'import/no-extraneous-dependencies': [
@@ -30,6 +31,6 @@ module.exports = {
bundledDependencies: true,
},
],
'no-unused-expressions': 'off',
// 'no-unused-expressions': 'off',
},
};