mirror of
https://github.com/jupyter/notebook.git
synced 2024-11-21 01:11:21 +08:00
7903de83e8
* Update JupyterLab and Lumino packages * fix resolutions * Update to TypeScript 5 final * Reuse upstream sessionDialogs plugin * update gitpod setup * Update UI tests setup * Update npmClient * try without immutable * add explicit playwright dep * Update mathjax package * update yarn.lock * update dev dependencies * lint * update yarn.lock * Fix typescript dependency * fix metapackage
58 lines
1.4 KiB
JavaScript
58 lines
1.4 KiB
JavaScript
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
es6: true,
|
|
commonjs: true,
|
|
node: true,
|
|
'jest/globals': true,
|
|
},
|
|
root: true,
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/eslint-recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:prettier/recommended',
|
|
'plugin:react/recommended',
|
|
'plugin:jest/recommended',
|
|
],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
project: 'tsconfig.eslint.json',
|
|
sourceType: 'module',
|
|
},
|
|
plugins: ['@typescript-eslint', 'jest'],
|
|
rules: {
|
|
'@typescript-eslint/naming-convention': [
|
|
'error',
|
|
{
|
|
selector: 'interface',
|
|
format: ['PascalCase'],
|
|
custom: {
|
|
regex: '^I[A-Z]',
|
|
match: true,
|
|
},
|
|
},
|
|
],
|
|
'@typescript-eslint/no-unused-vars': ['warn', { args: 'none' }],
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/no-namespace': 'off',
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
'@typescript-eslint/no-use-before-define': 'off',
|
|
'@typescript-eslint/no-empty-interface': 'off',
|
|
'@typescript-eslint/quotes': [
|
|
'error',
|
|
'single',
|
|
{ avoidEscape: true, allowTemplateLiterals: false },
|
|
],
|
|
'jest/no-done-callback': 'off',
|
|
curly: ['error', 'all'],
|
|
eqeqeq: 'error',
|
|
'prefer-arrow-callback': 'error',
|
|
},
|
|
settings: {
|
|
react: {
|
|
version: 'detect',
|
|
},
|
|
},
|
|
};
|