mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-09-07 20:13:28 +00:00
43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
JavaScript
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'prettier',
|
|
'plugin:prettier/recommended',
|
|
],
|
|
overrides: [],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
},
|
|
plugins: ['simple-import-sort', '@typescript-eslint'],
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/ban-ts-comment': 'off',
|
|
'simple-import-sort/imports': [
|
|
'error',
|
|
{
|
|
groups: [
|
|
// Packages `react` related packages come first.
|
|
['^react', '^@?\\w'],
|
|
// Internal packages.
|
|
['^(@|components)(/.*|$)'],
|
|
// Side effect imports.
|
|
['^\\u0000'],
|
|
// Parent imports. Put `..` last.
|
|
['^\\.\\.(?!/?$)', '^\\.\\./?$'],
|
|
// Other relative imports. Put same-folder imports and `.` last.
|
|
['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'],
|
|
// Style imports.
|
|
['^.+\\.?(css)$'],
|
|
],
|
|
},
|
|
],
|
|
},
|
|
};
|