build: establish strict TypeScript workspace
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import eslint from '@eslint/js';
|
||||
import { defineConfig } from 'eslint/config';
|
||||
import tseslint from 'typescript-eslint';
|
||||
|
||||
export default defineConfig(
|
||||
{
|
||||
ignores: ['node_modules/**', 'coverage/**', 'packages/**/test/fixtures/**'],
|
||||
},
|
||||
{
|
||||
files: ['**/*.js'],
|
||||
...eslint.configs.recommended,
|
||||
languageOptions: {
|
||||
...eslint.configs.recommended.languageOptions,
|
||||
globals: {
|
||||
console: 'readonly',
|
||||
process: 'readonly',
|
||||
URL: 'readonly',
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['**/*.ts'],
|
||||
extends: [...tseslint.configs.recommended],
|
||||
languageOptions: {
|
||||
parser: tseslint.parser,
|
||||
parserOptions: {
|
||||
ecmaVersion: 'latest',
|
||||
sourceType: 'module',
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'no-undef': 'off',
|
||||
},
|
||||
},
|
||||
);
|
||||
Reference in New Issue
Block a user