mirror of
https://github.com/jellyfin/jellyfin.org.git
synced 2026-09-03 02:10:04 +03:00
58 lines
1.2 KiB
JavaScript
58 lines
1.2 KiB
JavaScript
import { globalIgnores } from 'eslint/config';
|
|
import react from 'eslint-plugin-react';
|
|
import reactHooks from 'eslint-plugin-react-hooks';
|
|
import ts from 'typescript-eslint';
|
|
import jsxA11yX from 'eslint-plugin-jsx-a11y-x';
|
|
import globals from 'globals';
|
|
|
|
export default ts.config([
|
|
globalIgnores([
|
|
'node_modules',
|
|
'build',
|
|
'**/.docusaurus',
|
|
'**/.cache-loader',
|
|
'**/.DS_Store',
|
|
'**/.env.local',
|
|
'**/.env.development.local',
|
|
'**/.env.test.local',
|
|
'**/.env.production.local',
|
|
'**/npm-debug.log*',
|
|
'**/yarn-debug.log*',
|
|
'**/yarn-error.log*',
|
|
'**/*.json'
|
|
]),
|
|
react.configs.flat.recommended,
|
|
reactHooks.configs.flat.recommended,
|
|
...ts.configs.recommended,
|
|
jsxA11yX.configs.recommended,
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node,
|
|
JSX: 'readonly'
|
|
},
|
|
|
|
ecmaVersion: 12,
|
|
sourceType: 'module',
|
|
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
jsx: true
|
|
}
|
|
}
|
|
},
|
|
|
|
settings: {
|
|
react: {
|
|
version: 'detect'
|
|
}
|
|
},
|
|
|
|
rules: {
|
|
'no-unused-vars': 'off',
|
|
'@typescript-eslint/no-unused-vars': 'error'
|
|
}
|
|
}
|
|
]);
|