mirror of
https://github.com/remnawave/frontend.git
synced 2026-05-13 12:16:40 +00:00
wip
Co-authored-by: Ivan <84693047+exact01@users.noreply.github.com>
This commit is contained in:
parent
9cdf70e006
commit
802ffc6240
1 changed files with 20 additions and 34 deletions
|
|
@ -1,42 +1,28 @@
|
||||||
// import mantine from 'eslint-config-mantine';
|
module.exports = {
|
||||||
// import tseslint from 'typescript-eslint';
|
root: true,
|
||||||
|
|
||||||
// export default tseslint.config(
|
|
||||||
// ...mantine,
|
|
||||||
// { ignores: ['**/*.{mjs,cjs,js,d.ts,d.mts}', './.storybook/main.ts'] },
|
|
||||||
// );
|
|
||||||
|
|
||||||
export default {
|
|
||||||
env: { browser: true, es2020: true },
|
env: { browser: true, es2020: true },
|
||||||
plugins: ['react-refresh', 'import', 'perfectionist'],
|
|
||||||
extends: [
|
extends: [
|
||||||
'eslint:recommended',
|
'eslint:recommended',
|
||||||
'airbnb-base',
|
'airbnb-base',
|
||||||
'plugin:@typescript-eslint/recommended',
|
'plugin:@typescript-eslint/recommended',
|
||||||
'plugin:react-hooks/recommended',
|
'plugin:react-hooks/recommended',
|
||||||
'plugin:perfectionist/recommended-alphabetical-legacy',
|
'plugin:storybook/recommended',
|
||||||
'prettier'
|
'prettier',
|
||||||
],
|
|
||||||
ignorePatterns: [
|
|
||||||
'dist',
|
|
||||||
'.eslintrc.cjs',
|
|
||||||
'plop',
|
|
||||||
'plop/**',
|
|
||||||
'plopfile.js',
|
|
||||||
'.stylelintrc.js',
|
|
||||||
'eslint.config.js'
|
|
||||||
],
|
],
|
||||||
|
ignorePatterns: ['dist', '.eslintrc.cjs', 'plop', 'plop/**', 'plopfile.js', '.stylelintrc.js'],
|
||||||
parser: '@typescript-eslint/parser',
|
parser: '@typescript-eslint/parser',
|
||||||
|
plugins: ['react-refresh', 'import'],
|
||||||
|
|
||||||
settings: {
|
settings: {
|
||||||
'import/parsers': {
|
'import/parsers': {
|
||||||
'@typescript-eslint/parser': ['.ts', '.tsx']
|
'@typescript-eslint/parser': ['.ts', '.tsx'],
|
||||||
},
|
},
|
||||||
'import/resolver': {
|
'import/resolver': {
|
||||||
node: true,
|
node: true,
|
||||||
typescript: {
|
typescript: {
|
||||||
project: '.'
|
project: '.',
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
indent: ['error', 4, { SwitchCase: 1 }],
|
indent: ['error', 4, { SwitchCase: 1 }],
|
||||||
|
|
@ -51,8 +37,8 @@ export default {
|
||||||
'import/order': [
|
'import/order': [
|
||||||
'error',
|
'error',
|
||||||
{
|
{
|
||||||
'newlines-between': 'never'
|
'newlines-between': 'never',
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
|
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
|
||||||
'no-shadow': ['off'],
|
'no-shadow': ['off'],
|
||||||
|
|
@ -66,8 +52,8 @@ export default {
|
||||||
allowAfterThis: true,
|
allowAfterThis: true,
|
||||||
allowAfterSuper: true,
|
allowAfterSuper: true,
|
||||||
allowAfterThisConstructor: true,
|
allowAfterThisConstructor: true,
|
||||||
enforceInMethodNames: false
|
enforceInMethodNames: false,
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
semi: ['error', 'never'],
|
semi: ['error', 'never'],
|
||||||
'comma-dangle': ['off'],
|
'comma-dangle': ['off'],
|
||||||
|
|
@ -79,9 +65,9 @@ export default {
|
||||||
'error',
|
'error',
|
||||||
{
|
{
|
||||||
types: {
|
types: {
|
||||||
'{}': false
|
'{}': false,
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue