Spaces:
Runtime error
Runtime error
Download integrations/github/eslint.config.js from BTankut/Context-Store-LLM: direct link, hf CLI and curl.
- Browser
- Download file 3.15 kB
-
https://huggingface.co/spaces/BTankut/Context-Store-LLM/resolve/main/integrations/github/eslint.config.js
- Command line
-
hf download hf://spaces/BTankut/Context-Store-LLM/integrations/github/eslint.config.js
-
curl -L -o eslint.config.js https://huggingface.co/spaces/BTankut/Context-Store-LLM/resolve/main/integrations/github/eslint.config.js
3.15 kB
| const eslint = require('@eslint/js'); | |
| const tseslint = require('typescript-eslint'); | |
| const reactPlugin = require('eslint-plugin-react'); | |
| const jestPlugin = require('eslint-plugin-jest'); | |
| const importPlugin = require('eslint-plugin-import'); | |
| const prettierPlugin = require('eslint-plugin-prettier'); | |
| const unusedImportsPlugin = require('eslint-plugin-unused-imports'); | |
| const jsxA11yPlugin = require('eslint-plugin-jsx-a11y'); | |
| module.exports = [ | |
| eslint.configs.recommended, | |
| ...tseslint.configs.recommended, | |
| { | |
| files: ['**/*.{js,jsx,ts,tsx}'], | |
| plugins: { | |
| react: reactPlugin, | |
| jest: jestPlugin, | |
| import: importPlugin, | |
| prettier: prettierPlugin, | |
| 'unused-imports': unusedImportsPlugin, | |
| 'jsx-a11y': jsxA11yPlugin, | |
| }, | |
| languageOptions: { | |
| ecmaVersion: 2020, | |
| sourceType: 'module', | |
| parser: tseslint.parser, | |
| parserOptions: { | |
| ecmaFeatures: { | |
| jsx: true, | |
| }, | |
| }, | |
| }, | |
| rules: { | |
| 'jsx-a11y/label-has-associated-control': 'error', | |
| curly: 'warn', | |
| 'dot-location': 'warn', | |
| eqeqeq: 'error', | |
| 'prettier/prettier': 'warn', | |
| 'unused-imports/no-unused-imports': 'warn', | |
| 'no-else-return': 'warn', | |
| 'no-lonely-if': 'warn', | |
| 'no-inner-declarations': 'off', | |
| 'no-unused-vars': 'off', | |
| 'no-useless-computed-key': 'warn', | |
| 'no-useless-return': 'warn', | |
| 'no-var': 'warn', | |
| 'object-shorthand': ['warn', 'always'], | |
| 'prefer-arrow-callback': 'warn', | |
| 'prefer-const': 'warn', | |
| 'prefer-destructuring': ['warn', { AssignmentExpression: { array: true } }], | |
| 'prefer-object-spread': 'warn', | |
| 'prefer-template': 'warn', | |
| 'spaced-comment': ['warn', 'always', { markers: ['/'] }], | |
| yoda: 'warn', | |
| 'import/order': [ | |
| 'warn', | |
| { | |
| 'newlines-between': 'always', | |
| groups: ['type', 'builtin', 'external', 'internal', ['parent', 'sibling'], 'index'], | |
| pathGroupsExcludedImportTypes: ['builtin'], | |
| pathGroups: [], | |
| alphabetize: { | |
| order: 'asc', | |
| caseInsensitive: true, | |
| }, | |
| }, | |
| ], | |
| '@typescript-eslint/array-type': ['warn', { default: 'array-simple' }], | |
| '@typescript-eslint/ban-ts-comment': [ | |
| 'warn', | |
| { | |
| 'ts-expect-error': 'allow-with-description', | |
| }, | |
| ], | |
| '@typescript-eslint/consistent-indexed-object-style': ['warn', 'record'], | |
| '@typescript-eslint/consistent-type-definitions': ['warn', 'interface'], | |
| '@typescript-eslint/no-unused-vars': 'warn', | |
| 'react/function-component-definition': [ | |
| 'warn', | |
| { | |
| namedComponents: 'arrow-function', | |
| unnamedComponents: 'arrow-function', | |
| }, | |
| ], | |
| 'react/jsx-boolean-value': 'warn', | |
| 'react/jsx-curly-brace-presence': 'warn', | |
| 'react/jsx-fragments': 'warn', | |
| 'react/jsx-no-useless-fragment': ['warn', { allowExpressions: true }], | |
| 'react/self-closing-comp': 'warn', | |
| }, | |
| }, | |
| { | |
| files: ['scripts/**/*'], | |
| rules: { | |
| '@typescript-eslint/no-var-requires': 'off', | |
| }, | |
| }, | |
| ]; | |