mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-17 23:47:12 +00:00
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',
|
||
|
|
},
|
||
|
|
};
|