|
@@ -307,6 +307,7 @@ export default typescript.config([
|
|
'import/no-anonymous-default-export': 'error',
|
|
'import/no-anonymous-default-export': 'error',
|
|
'import/no-duplicates': 'error',
|
|
'import/no-duplicates': 'error',
|
|
'import/no-named-default': 'error',
|
|
'import/no-named-default': 'error',
|
|
|
|
+ 'import/no-nodejs-modules': 'error',
|
|
'import/no-webpack-loader-syntax': 'error',
|
|
'import/no-webpack-loader-syntax': 'error',
|
|
|
|
|
|
// https://github.com/import-js/eslint-plugin-import/blob/main/config/recommended.js
|
|
// https://github.com/import-js/eslint-plugin-import/blob/main/config/recommended.js
|
|
@@ -597,13 +598,17 @@ export default typescript.config([
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: 'files/*.config.*',
|
|
name: 'files/*.config.*',
|
|
- files: ['*.config.*'],
|
|
|
|
|
|
+ files: ['**/*.config.*'],
|
|
languageOptions: {
|
|
languageOptions: {
|
|
globals: {
|
|
globals: {
|
|
...globals.commonjs,
|
|
...globals.commonjs,
|
|
...globals.node,
|
|
...globals.node,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ rules: {
|
|
|
|
+ 'import/no-nodejs-modules': 'off',
|
|
|
|
+ },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: 'files/scripts',
|
|
name: 'files/scripts',
|
|
@@ -617,6 +622,8 @@ export default typescript.config([
|
|
},
|
|
},
|
|
rules: {
|
|
rules: {
|
|
'no-console': 'off',
|
|
'no-console': 'off',
|
|
|
|
+
|
|
|
|
+ 'import/no-nodejs-modules': 'off',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -625,7 +632,9 @@ export default typescript.config([
|
|
'tests/js/jest-pegjs-transform.js',
|
|
'tests/js/jest-pegjs-transform.js',
|
|
'tests/js/sentry-test/echartsMock.js',
|
|
'tests/js/sentry-test/echartsMock.js',
|
|
'tests/js/sentry-test/importStyleMock.js',
|
|
'tests/js/sentry-test/importStyleMock.js',
|
|
|
|
+ 'tests/js/sentry-test/loadFixtures.ts',
|
|
'tests/js/sentry-test/svgMock.js',
|
|
'tests/js/sentry-test/svgMock.js',
|
|
|
|
+ 'tests/js/setup.ts',
|
|
],
|
|
],
|
|
languageOptions: {
|
|
languageOptions: {
|
|
sourceType: 'commonjs',
|
|
sourceType: 'commonjs',
|
|
@@ -633,7 +642,9 @@ export default typescript.config([
|
|
...globals.commonjs,
|
|
...globals.commonjs,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- rules: {},
|
|
|
|
|
|
+ rules: {
|
|
|
|
+ 'import/no-nodejs-modules': 'off',
|
|
|
|
+ },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: 'files/devtoolbar',
|
|
name: 'files/devtoolbar',
|