Fix ESLint warnings, add Windows dev exclusion
This commit is contained in:
parent
49663d3973
commit
fef99782d0
3 changed files with 15 additions and 6 deletions
|
@ -19,4 +19,18 @@ module.exports = {
|
||||||
'@typescript-eslint/no-shadow': ['error'],
|
'@typescript-eslint/no-shadow': ['error'],
|
||||||
'no-only-tests/no-only-tests': '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',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
module.exports = {
|
|
||||||
rules: {
|
|
||||||
'no-console': 'off',
|
|
||||||
},
|
|
||||||
};
|
|
|
@ -68,7 +68,7 @@ describe('Special chars in component import paths', () => {
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// if (isWindows) return;
|
if (isWindows) return;
|
||||||
|
|
||||||
describe('dev', () => {
|
describe('dev', () => {
|
||||||
let devServer;
|
let devServer;
|
||||||
|
|
Loading…
Add table
Reference in a new issue