DocsGPT/frontend/.eslintrc.cjs

45 lines
893 B
JavaScript
Raw Normal View History

2023-02-09 02:31:22 +00:00
module.exports = {
env: {
browser: true,
es2021: true,
2023-02-09 17:21:08 +00:00
node: true,
2023-02-09 02:31:22 +00:00
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:prettier/recommended',
],
2023-02-09 17:21:08 +00:00
overrides: [],
2023-02-09 02:31:22 +00:00
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
2023-02-09 17:21:08 +00:00
sourceType: 'module',
2023-02-09 02:31:22 +00:00
},
plugins: ['react', 'unused-imports'],
2023-02-09 02:31:22 +00:00
rules: {
'unused-imports/no-unused-imports': 'error',
2023-02-09 17:21:08 +00:00
'react/react-in-jsx-scope': 'off',
2023-02-16 19:47:43 +00:00
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
2023-02-09 02:31:22 +00:00
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
react: {
2023-02-09 17:21:08 +00:00
version: 'detect',
2023-02-09 02:31:22 +00:00
},
'import/resolver': {
node: {
paths: ['src'],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
2023-02-16 19:47:43 +00:00
};