Fix ESLint warnings, add Windows dev exclusion

This commit is contained in:
hippotastic 2022-08-11 15:38:11 +02:00
parent 49663d3973
commit fef99782d0
3 changed files with 15 additions and 6 deletions

View file

@ -19,4 +19,18 @@ module.exports = {
'@typescript-eslint/no-shadow': ['error'],
'no-only-tests/no-only-tests': 'error',
},
overrides: [
{
files: ['packages/**/test/*.js', 'packages/**/*.test.js'],
env: {
mocha: true,
},
globals: {
globalThis: false, // false means read-only
},
rules: {
'no-console': 'off',
},
},
],
};

View file

@ -1,5 +0,0 @@
module.exports = {
rules: {
'no-console': 'off',
},
};

View file

@ -68,7 +68,7 @@ describe('Special chars in component import paths', () => {
});
// if (isWindows) return;
if (isWindows) return;
describe('dev', () => {
let devServer;