38 lines
1.0 KiB
JavaScript
38 lines
1.0 KiB
JavaScript
// .eslintrc.cjs
|
|
module.exports = {
|
|
root: true,
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: [
|
|
'@typescript-eslint',
|
|
'import',
|
|
'unused-imports',
|
|
'simple-import-sort',
|
|
],
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:@typescript-eslint/strict-type-checked',
|
|
'plugin:@typescript-eslint/stylistic-type-checked',
|
|
'plugin:import/recommended',
|
|
'plugin:import/typescript',
|
|
'plugin:prettier/recommended',
|
|
],
|
|
env: {
|
|
es2022: true,
|
|
node: true,
|
|
browser: true,
|
|
},
|
|
rules: {
|
|
'prettier/prettier': 'error',
|
|
'import/order': 'off',
|
|
'simple-import-sort/imports': 'error',
|
|
'simple-import-sort/exports': 'error',
|
|
'unused-imports/no-unused-imports': 'error',
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'error',
|
|
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
|
|
],
|
|
},
|
|
ignorePatterns: ['dist', 'node_modules', 'public'],
|
|
};
|