mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-02 02:30:40 +08:00

* fix(FE): eslint * chore: run eslint on frontend folder * chore: run eslint on src * chore: eslint fixing is updated * chore: linting errors are updated Co-authored-by: Nidhi Tandon <nidhitandon08@gmail.com>
42 lines
937 B
JavaScript
42 lines
937 B
JavaScript
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
node: true,
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:react/recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:@typescript-eslint/eslint-recommended',
|
|
],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
ecmaVersion: 12,
|
|
sourceType: 'module',
|
|
},
|
|
plugins: ['react', '@typescript-eslint', 'simple-import-sort'],
|
|
rules: {
|
|
'react/jsx-filename-extension': [
|
|
'error',
|
|
{
|
|
extensions: ['.tsx', '.js', '.jsx'],
|
|
},
|
|
],
|
|
'react/prop-types': 'off',
|
|
'@typescript-eslint/explicit-function-return-type': 'error',
|
|
'@typescript-eslint/no-var-requires': 0,
|
|
'linebreak-style': ['error', 'unix'],
|
|
indent: ['error', 'tab'],
|
|
quotes: ['error', 'single'],
|
|
semi: ['error', 'always'],
|
|
|
|
// simple sort error
|
|
'simple-import-sort/imports': 'error',
|
|
'simple-import-sort/exports': 'error',
|
|
},
|
|
};
|